environment
Retrieve a single environment.
environment(
id: Int
): AppEnvironment
Example
- Query
- Variables
- Response
query (
$id: Int
$networkSiteId: Int
$url: String
$anomalyId: Int
$after: String
$endDate: String
$first: Int
$id2: Float
$startDate: String
$limit: Int
$after2: String
$first2: Int
$order: String
$page: Int
$sort: String
$status: String
$first3: Int
$fileNames: [String]
$first4: Int
$id3: Int
$nextCursor: String
$page2: Int
$first5: Int
$after3: String
$exclude: [String]
$first6: Int
$isVerified: Boolean
$matching: String
$page3: Int
$after4: String
$afterTs: String
$beforeTs: String
$excludeAnomalyEvents: Boolean
$excludeEventTypePrefixes: String
$excludeWPCLI: Boolean
$first7: Int
$search: String
$types: String
$from: String
$to: String
$types2: [String]
$size: Int
$fromDate: Date!
$toDate: Date!
$networkSiteId2: Int
$slug: String
$jobTypes: [AppEnvironmentJobType!]
$types3: [String!]
$after5: String
$limit2: Int
$type: AppEnvironmentLogType
$nextCursor2: String
$algorithmVersion: String
$excludeCustomAnomalies: Boolean
$fromDate2: Date
$metricName: String
$toDate2: Date
$metricName2: String
$aggregate: Boolean
$fromDate3: Date
$includeBaseline: Boolean
$metricName3: String
$toDate3: Date
$active: Boolean
$after6: String
$first8: Int
$notificationRecipientId: Int
$permissions: [String]
$primaryDomainSwitchId: Int
$date: String
$days: Int
$from2: String
$months: Int
$to2: String
$after7: String
$limit3: Int
$sync: Int
$after8: String
$first9: Int
$after9: String
$blogId: Int
$first10: Int
$launchStatus: WPSiteLaunchStatus
$matching2: String
$order2: String
$page4: Int
$sort2: String
) {
environment(id: $id) {
active
activeBackup {
createdAt
environmentId
filename
id
size
sqlDumpTool
type
}
agentforce {
categories(networkSiteId: $networkSiteId, url: $url)
}
allowedIPs {
ips
total
}
anomalyContext(anomalyId: $anomalyId) {
algorithmVersion
endTime
endValue
id
startTime
startValue
}
appId
backupPolicyId
backupShippingConfigV2 {
dailyHour
enabled
path
provider
schedule
}
backups(
after: $after
endDate: $endDate
first: $first
id: $id2
startDate: $startDate
) {
nextCursor
total
}
backupsSqlDumpTool
basicAuth {
total
users
}
branch
branches(limit: $limit) {
nextCursor
pollingDelaySeconds
total
}
buildConfiguration {
buildType
nodeBuildDockerEnv
nodeJSVersion
}
builds {
nextCursor
total
}
commands(
after: $after2
first: $first2
order: $order
page: $page
sort: $sort
status: $status
) {
nextCursor
total
}
commits(first: $first3) {
nextCursor
}
createdAt
currentCommit
customErrorPageConfig {
content
strategy
suggestedContentFromRepo
}
datacenter
dbBackupCopies(fileNames: $fileNames) {
nextCursor
total
}
dbOperationInProgress
defaultDomain
deploymentStrategy
deployments(
first: $first4
id: $id3
nextCursor: $nextCursor
page: $page2
) {
nextCursor
total
}
deploys(first: $first5) {
nextCursor
total
}
domains(
after: $after3
exclude: $exclude
first: $first6
isVerified: $isVerified
matching: $matching
page: $page3
) {
nextCursor
total
}
edgeWorkers {
active
createdAt
id
name
onFailure
phases
source
updatedAt
wasmBinary
}
elasticsearchIndexStatus {
created_at
error
finished_at
logs_url
status
}
environmentVariables {
total
}
events(
after: $after4
afterTs: $afterTs
beforeTs: $beforeTs
excludeAnomalyEvents: $excludeAnomalyEvents
excludeEventTypePrefixes: $excludeEventTypePrefixes
excludeWPCLI: $excludeWPCLI
first: $first7
search: $search
types: $types
) {
nextCursor
total
}
eventsCounts(from: $from, to: $to, types: $types2) {
count
type
}
getIntegrationsDevEnvConfig {
data
}
hstsSettings {
enabled
includeSubdomains
maxAge
preload
sslEverywhere
}
icon(size: $size) {
height
type
url
width
}
id
importStatus {
dbOperationInProgress
importInProgress
}
insightsOverview(fromDate: $fromDate, toDate: $toDate) {
insights
metrics
}
integration(networkSiteId: $networkSiteId2, slug: $slug) {
appId
config
envId
id
orgId
requires
slug
status
}
integrations {
total
}
ips {
ipv4
ipv6
}
isDBPartitioningEnabled
isFedramp
isHipaa
isK8sResident
isLiveBackupCopyAllowed
isMultisite
isOnLatestCode
isSubdirectoryMultisite
jobs(jobTypes: $jobTypes, types: $types3) {
completedAt
createdAt
id
inProgressLock
type
}
latestBackup {
createdAt
environmentId
filename
id
size
sqlDumpTool
type
}
latestMediaExport {
createdAt
environmentId
expiresAt
filesProcessed
filesTotal
id
status
totalArchiveFiles
totalSizeInBytes
}
launchModeEndAt
launched
liveBackupCopies {
copyId
createdAt
error
expiresAt
finishedAt
size
status
}
logShippingConfig {
enabled
last_failed_shipping_time
last_shipping_error_message
path
provider
type
}
logs(after: $after5, limit: $limit2, type: $type) {
nextCursor
pollingDelaySeconds
total
}
mediaExports(nextCursor: $nextCursor2) {
nextCursor
total
}
mediaImportStatus {
failureDetailsUrl
filesProcessed
filesTotal
importId
siteId
status
}
metricAnomalies(
algorithmVersion: $algorithmVersion
excludeCustomAnomalies: $excludeCustomAnomalies
fromDate: $fromDate2
metricName: $metricName
toDate: $toDate2
) {
environmentId
metricName
queryId
siteId
totalAnomalies
}
metricThresholds(metricName: $metricName2) {
id
metricName
operator
value
}
metrics(
aggregate: $aggregate
fromDate: $fromDate3
includeBaseline: $includeBaseline
metricName: $metricName3
toDate: $toDate3
) {
aggrFunction
currTotalAggr
measurementUnit
metricDisplayName
metricName
prevTotalAggr
queryId
resolution
}
name
newRelic {
canManageUsers
dashboardUrl
deactivationTimestamp
enabled
isSetupComplete
samplingPercentage
}
notificationSubscriptions(
active: $active
after: $after6
first: $first8
notificationRecipientId: $notificationRecipientId
) {
nextCursor
total
}
permissions(permissions: $permissions) {
isAllowed
permission
}
phpMyAdminStatus {
status
}
primaryDomain {
active
createdAt
emailDeliverabilityLastCheckedAt
hasSSL
id
isDefault
isDkimValid
isDmarcValid
isLetsEncrypt
isPrimary
isSpfValid
isVerified
name
verificationCode
wildcard
}
primaryDomainSwitchProgress(primaryDomainSwitchId: $primaryDomainSwitchId) {
destinationDomain
primaryDomainSwitchId
sourceDomain
status
}
repo
repository {
fullName
htmlUrl
name
organization
platform
}
requestStats(
date: $date
days: $days
from: $from2
months: $months
to: $to2
) {
total
}
slowlogs(after: $after7, limit: $limit3) {
nextCursor
pollingDelaySeconds
total
}
syncPreview {
canSync
githubCreateSyncFileConfigURL
}
syncProgress(sync: $sync) {
config
finished_at
started_at
status
sync
}
type
uniqueLabel
updateSubsiteDomainStatus {
dbOperationInProgress
updateSubsiteDomainInProgress
}
vipApm {
apmMode
apmPfxPeriodUs
apmSamplePercent
enabled
}
wpInstallation {
environmentName
siteId
timestamp
}
wpSites(after: $after8, first: $first9) {
nextCursor
total
}
wpSitesSDS(
after: $after9
blogId: $blogId
first: $first10
launchStatus: $launchStatus
matching: $matching2
order: $order2
page: $page4
sort: $sort2
) {
nextCursor
total
}
wpcliStrategy
}
}
{
"id": 42,
"networkSiteId": 42,
"url": "https://example.com",
"anomalyId": 42,
"after": "after",
"endDate": "endDate",
"first": 42,
"id2": 30.7,
"startDate": "startDate",
"limit": 42,
"after2": "after",
"first2": 42,
"order": "order",
"page": 42,
"sort": "sort",
"status": "status",
"first3": 42,
"fileNames": [
"fileNames"
],
"first4": 42,
"id3": 42,
"nextCursor": "nextCursor",
"page2": 42,
"first5": 42,
"after3": "after",
"exclude": [
"exclude"
],
"first6": 42,
"isVerified": true,
"matching": "matching",
"page3": 42,
"after4": "after",
"afterTs": "afterTs",
"beforeTs": "beforeTs",
"excludeAnomalyEvents": true,
"excludeEventTypePrefixes": "excludeEventTypePrefixes",
"excludeWPCLI": true,
"first7": 42,
"search": "search",
"types": "types",
"from": "from",
"to": "to",
"types2": [
"types"
],
"size": 42,
"fromDate": "2024-01-15T00:00:00.000Z",
"toDate": "2024-01-15T00:00:00.000Z",
"networkSiteId2": 42,
"slug": "slug",
"jobTypes": [
"db_backup"
],
"types3": [
"types"
],
"after5": "after",
"limit2": 42,
"type": "app",
"nextCursor2": "nextCursor",
"algorithmVersion": "algorithmVersion",
"excludeCustomAnomalies": true,
"fromDate2": "2024-01-15T00:00:00.000Z",
"metricName": "metricName",
"toDate2": "2024-01-15T00:00:00.000Z",
"metricName2": "metricName",
"aggregate": true,
"fromDate3": "2024-01-15T00:00:00.000Z",
"includeBaseline": true,
"metricName3": "metricName",
"toDate3": "2024-01-15T00:00:00.000Z",
"active": true,
"after6": "after",
"first8": 42,
"notificationRecipientId": 42,
"permissions": [
"permissions"
],
"primaryDomainSwitchId": 42,
"date": "2022-03-06",
"days": 42,
"from2": "from",
"months": 42,
"to2": "to",
"after7": "after",
"limit3": 42,
"sync": 42,
"after8": "after",
"first9": 42,
"after9": "after",
"blogId": 42,
"first10": 42,
"launchStatus": "LAUNCHED",
"matching2": "matching",
"order2": "order",
"page4": 42,
"sort2": "sort"
}
{
"data": {
"environment": {
"active": true,
"activeBackup": {
"createdAt": "createdAt",
"environmentId": 42,
"filename": "filename",
"id": 30.7,
"size": 30.7,
"sqlDumpTool": "sqlDumpTool",
"type": "type"
},
"agentforce": {
"categories": [
"categories"
]
},
"allowedIPs": {
"ips": [
"ips"
],
"total": 42
},
"anomalyContext": {
"algorithmVersion": "algorithmVersion",
"endTime": "endTime",
"endValue": 30.7,
"id": 42,
"startTime": "startTime",
"startValue": 30.7
},
"appId": 42,
"backupPolicyId": 42,
"backupShippingConfigV2": {
"dailyHour": 42,
"enabled": true,
"path": "path",
"provider": "aws_s3",
"schedule": "Daily"
},
"backups": {
"nextCursor": "nextCursor",
"total": 42
},
"backupsSqlDumpTool": "backupsSqlDumpTool",
"basicAuth": {
"total": 42,
"users": [
"users"
]
},
"branch": "branch",
"branches": {
"nextCursor": "nextCursor",
"pollingDelaySeconds": 42,
"total": "42"
},
"buildConfiguration": {
"buildType": "buildType",
"nodeBuildDockerEnv": "nodeBuildDockerEnv",
"nodeJSVersion": "nodeJSVersion"
},
"builds": {
"nextCursor": "nextCursor",
"total": 42
},
"commands": {
"nextCursor": "nextCursor",
"total": 42
},
"commits": {
"nextCursor": "nextCursor"
},
"createdAt": "createdAt",
"currentCommit": "currentCommit",
"customErrorPageConfig": {
"content": "content",
"strategy": "CUSTOM_FROM_API",
"suggestedContentFromRepo": "suggestedContentFromRepo"
},
"datacenter": "datacenter",
"dbBackupCopies": {
"nextCursor": "nextCursor",
"total": 42
},
"dbOperationInProgress": true,
"defaultDomain": "defaultDomain",
"deploymentStrategy": "deploymentStrategy",
"deployments": {
"nextCursor": "nextCursor",
"total": 42
},
"deploys": {
"nextCursor": "nextCursor",
"total": 42
},
"domains": {
"nextCursor": "nextCursor",
"total": 42
},
"edgeWorkers": [
{
"active": true,
"createdAt": "2024-01-15T00:00:00.000Z",
"id": 42,
"name": "A name",
"onFailure": "continue",
"phases": [
"client_request"
],
"source": "source",
"updatedAt": "2024-01-15T00:00:00.000Z",
"wasmBinary": "wasmBinary"
}
],
"elasticsearchIndexStatus": {
"created_at": "created_at",
"error": "error",
"finished_at": "finished_at",
"logs_url": "logs_url",
"status": "completed"
},
"environmentVariables": {
"total": "42"
},
"events": {
"nextCursor": "nextCursor",
"total": 42
},
"eventsCounts": [
{
"count": 42,
"type": "type"
}
],
"getIntegrationsDevEnvConfig": {
"data": {
"key": "value"
}
},
"hstsSettings": {
"enabled": true,
"includeSubdomains": true,
"maxAge": 42,
"preload": true,
"sslEverywhere": true
},
"icon": {
"height": 42,
"type": "type",
"url": "https://example.com",
"width": 42
},
"id": 42,
"importStatus": {
"dbOperationInProgress": true,
"importInProgress": true
},
"insightsOverview": {
"insights": {
"key": "value"
},
"metrics": {
"key": "value"
}
},
"integration": {
"appId": 42,
"config": {
"key": "value"
},
"envId": 42,
"id": 42,
"orgId": 42,
"requires": [
"requires"
],
"slug": "slug",
"status": "status"
},
"integrations": {
"total": 42
},
"ips": {
"ipv4": [
"ipv4"
],
"ipv6": [
"ipv6"
]
},
"isDBPartitioningEnabled": true,
"isFedramp": true,
"isHipaa": true,
"isK8sResident": true,
"isLiveBackupCopyAllowed": true,
"isMultisite": true,
"isOnLatestCode": true,
"isSubdirectoryMultisite": true,
"jobs": [
{
"completedAt": "completedAt",
"createdAt": "createdAt",
"id": 42,
"inProgressLock": true,
"type": "type"
}
],
"latestBackup": {
"createdAt": "createdAt",
"environmentId": 42,
"filename": "filename",
"id": 30.7,
"size": 30.7,
"sqlDumpTool": "sqlDumpTool",
"type": "type"
},
"latestMediaExport": {
"createdAt": "createdAt",
"environmentId": 42,
"expiresAt": "expiresAt",
"filesProcessed": 42,
"filesTotal": 42,
"id": "42",
"status": "status",
"totalArchiveFiles": 42,
"totalSizeInBytes": 30.7
},
"launchModeEndAt": "launchModeEndAt",
"launched": true,
"liveBackupCopies": [
{
"copyId": "copyId",
"createdAt": "2024-01-15T00:00:00.000Z",
"error": "error",
"expiresAt": "2024-01-15T00:00:00.000Z",
"finishedAt": "2024-01-15T00:00:00.000Z",
"size": "42",
"status": "completed"
}
],
"logShippingConfig": {
"enabled": true,
"last_failed_shipping_time": "last_failed_shipping_time",
"last_shipping_error_message": "last_shipping_error_message",
"path": "path",
"provider": "aws_s3",
"type": [
"edge"
]
},
"logs": {
"nextCursor": "nextCursor",
"pollingDelaySeconds": 42,
"total": "42"
},
"mediaExports": {
"nextCursor": "nextCursor",
"total": 42
},
"mediaImportStatus": {
"failureDetailsUrl": "failureDetailsUrl",
"filesProcessed": 42,
"filesTotal": 42,
"importId": 42,
"siteId": 42,
"status": "status"
},
"metricAnomalies": {
"environmentId": 42,
"metricName": "metricName",
"queryId": "queryId",
"siteId": 42,
"totalAnomalies": 42
},
"metricThresholds": [
{
"id": 42,
"metricName": "metricName",
"operator": "operator",
"value": 30.7
}
],
"metrics": {
"aggrFunction": "aggrFunction",
"currTotalAggr": 30.7,
"measurementUnit": "measurementUnit",
"metricDisplayName": "metricDisplayName",
"metricName": "metricName",
"prevTotalAggr": 30.7,
"queryId": "queryId",
"resolution": 42
},
"name": "A name",
"newRelic": {
"canManageUsers": true,
"dashboardUrl": "dashboardUrl",
"deactivationTimestamp": "deactivationTimestamp",
"enabled": true,
"isSetupComplete": true,
"samplingPercentage": "42"
},
"notificationSubscriptions": {
"nextCursor": "nextCursor",
"total": "42"
},
"permissions": [
{
"isAllowed": true,
"permission": "permission"
}
],
"phpMyAdminStatus": {
"status": "status"
},
"primaryDomain": {
"active": true,
"createdAt": "createdAt",
"emailDeliverabilityLastCheckedAt": "emailDeliverabilityLastCheckedAt",
"hasSSL": true,
"id": 42,
"isDefault": true,
"isDkimValid": true,
"isDmarcValid": true,
"isLetsEncrypt": true,
"isPrimary": true,
"isSpfValid": true,
"isVerified": true,
"name": "A name",
"verificationCode": "verificationCode",
"wildcard": "wildcard"
},
"primaryDomainSwitchProgress": {
"destinationDomain": "destinationDomain",
"primaryDomainSwitchId": 42,
"sourceDomain": "sourceDomain",
"status": "status"
},
"repo": "repo",
"repository": {
"fullName": "John Doe",
"htmlUrl": "htmlUrl",
"name": "A name",
"organization": "organization",
"platform": "platform"
},
"requestStats": {
"total": 42
},
"slowlogs": {
"nextCursor": "nextCursor",
"pollingDelaySeconds": 42,
"total": "42"
},
"syncPreview": {
"canSync": true,
"githubCreateSyncFileConfigURL": "githubCreateSyncFileConfigURL"
},
"syncProgress": {
"config": {
"key": "value"
},
"finished_at": 42,
"started_at": 42,
"status": "status",
"sync": 42
},
"type": "type",
"uniqueLabel": "uniqueLabel",
"updateSubsiteDomainStatus": {
"dbOperationInProgress": true,
"updateSubsiteDomainInProgress": true
},
"vipApm": {
"apmMode": "pfx",
"apmPfxPeriodUs": 42,
"apmSamplePercent": 42,
"enabled": true
},
"wpInstallation": {
"environmentName": "environmentName",
"siteId": 42,
"timestamp": "42"
},
"wpSites": {
"nextCursor": "nextCursor",
"total": 42
},
"wpSitesSDS": {
"nextCursor": "nextCursor",
"total": 42
},
"wpcliStrategy": "ssh"
}
}
}
Arguments
environment.id ● Int scalar common
The environment ID.
Type
AppEnvironment object common
An application environment in WordPress VIP. This type is the main operational read surface and includes commands, logs, events, backups, deployments, metrics, integrations, and security controls.