Skip to main content

environment

Retrieve a single environment.

environment(
id: Int
): AppEnvironment

Example​

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
$fromEnvironmentId: 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
automaticSecurityPullRequests {
enabled
notificationsConfigured
}
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) {
duration
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
}
reviewBranch
slowlogs(after: $after7, limit: $limit3) {
nextCursor
pollingDelaySeconds
total
}
syncPreview(fromEnvironmentId: $fromEnvironmentId) {
canSync
githubCreateSyncFileConfigURL
}
syncProgress {
config
error
finished_at
progress_percentage
progress_update_text
skip_media_copy
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
}
}

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.