domain
Retrieve a single domain by ID or name.
domain(
id: Int
name: String
): Domain
Example
- Query
- Variables
- Response
query ($id: Int, $name: String, $after: String, $first: Int) {
domain(id: $id, name: $name) {
active
certificate {
active
beginsTimestamp
certificateId
commonName
created
csr
expiresTimestamp
hasCertificate
san
valid
}
certificates(after: $after, first: $first) {
nextCursor
total
}
createdAt
dns {
hasVIPHeaders
ip
isVIP
}
emailDeliverabilityLastCheckedAt
environment {
active
appId
backupPolicyId
backupsSqlDumpTool
branch
createdAt
currentCommit
datacenter
dbOperationInProgress
defaultDomain
deploymentStrategy
id
isDBPartitioningEnabled
isFedramp
isHipaa
isK8sResident
isLiveBackupCopyAllowed
isMultisite
isOnLatestCode
isSubdirectoryMultisite
launchModeEndAt
launched
name
repo
type
uniqueLabel
wpcliStrategy
}
hasSSL
id
isDefault
isDkimValid
isDmarcValid
isLetsEncrypt
isPrimary
isSpfValid
isVerified
letsEncryptCompatibility {
actionable
code
domain
explanation
isDNSIssue
isFatal
title
}
letsEncryptStatus {
broken
errorMessage
expirationDate
failCount
lastErrorDateTime
name
retryDate
}
name
verificationCode
wildcard
}
}
{
"id": 42,
"name": "A name",
"after": "after",
"first": 42
}
{
"data": {
"domain": {
"active": true,
"certificate": {
"active": true,
"beginsTimestamp": "beginsTimestamp",
"certificateId": 42,
"commonName": "commonName",
"created": "created",
"csr": "csr",
"expiresTimestamp": "expiresTimestamp",
"hasCertificate": true,
"san": [
"san"
],
"valid": true
},
"certificates": {
"nextCursor": "nextCursor",
"total": 42
},
"createdAt": "createdAt",
"dns": {
"hasVIPHeaders": true,
"ip": [
"ip"
],
"isVIP": true
},
"emailDeliverabilityLastCheckedAt": "emailDeliverabilityLastCheckedAt",
"environment": {
"active": true,
"appId": 42,
"backupPolicyId": 42,
"backupsSqlDumpTool": "backupsSqlDumpTool",
"branch": "branch",
"createdAt": "createdAt",
"currentCommit": "currentCommit",
"datacenter": "datacenter",
"dbOperationInProgress": true,
"defaultDomain": "defaultDomain",
"deploymentStrategy": "deploymentStrategy",
"id": 42,
"isDBPartitioningEnabled": true,
"isFedramp": true,
"isHipaa": true,
"isK8sResident": true,
"isLiveBackupCopyAllowed": true,
"isMultisite": true,
"isOnLatestCode": true,
"isSubdirectoryMultisite": true,
"launchModeEndAt": "launchModeEndAt",
"launched": true,
"name": "A name",
"repo": "repo",
"type": "type",
"uniqueLabel": "uniqueLabel",
"wpcliStrategy": "ssh"
},
"hasSSL": true,
"id": 42,
"isDefault": true,
"isDkimValid": true,
"isDmarcValid": true,
"isLetsEncrypt": true,
"isPrimary": true,
"isSpfValid": true,
"isVerified": true,
"letsEncryptCompatibility": [
{
"actionable": "actionable",
"code": "code",
"domain": "domain",
"explanation": "explanation",
"isDNSIssue": true,
"isFatal": true,
"title": "title"
}
],
"letsEncryptStatus": [
{
"broken": true,
"errorMessage": "errorMessage",
"expirationDate": "expirationDate",
"failCount": 42,
"lastErrorDateTime": "lastErrorDateTime",
"name": "A name",
"retryDate": "retryDate"
}
],
"name": "A name",
"verificationCode": "verificationCode",
"wildcard": "wildcard"
}
}
}
Arguments
domain.id ● Int scalar common
The domain ID.
domain.name ● String scalar common
The domain name.
Type
Domain object common
A domain for an environment