Liveness test

NameTypeDescription
LivenessTestObjectLiveness tests, which run periodically to determine whether your servers respond to requests, as discussed in API concepts.
alternateCACertificatesArrayFrom v1.5. Alternate trust anchors, Base64-encoded CA certificates. Available for livenessTests that use secure protocols.
answersRequiredBooleanFrom v1.3. If testObjectProtocol is DNS, DOH or DOT, requires an answer to the DNS query to be considered a success. The default is false.
disableNonstandardPortWarningBooleanDisables warnings when non-standard ports are used. For example, GTM doesn't emit a warning to specify port 1234 when the testObjectProtocol is http, as HTTP typically uses port 80. The default is false.
disabledBooleanFrom v1.4. Disables the liveness test. When disabled, GTM stops running the test, treating it as if it no longer exists. The default is false.
domainNameStringPre-v1.0. The full GTM domain name.
errorPenaltyNumberFrom v1.2. Specifies the score that's reported if the liveness test encounters an error other than timeout, such as connection refused, and 404. The default value is 75.
hostHeaderStringSent if the testObjectProtocol is http or https, up to 256 non-space, alphanumeric characters. Obsolete as of version 1.4. You should use hostHeaders instead.
httpError3xxBooleanTreats a 3xx HTTP response as a failure if the testObjectProtocol is http, https, or ftp.
httpError4xxBooleanTreats a 4xx HTTP response as a failure if the testObjectProtocol is http, https, or ftp.
httpError5xxBooleanTreats a 5xx HTTP response as a failure if the testObjectProtocol is http, https, or ftp.
httpHeadersArrayFrom v1.4. HTTP headers to send if the testObjectProtocol is http or https. This hostHeader is deprecated as of version 1.4.
httpHeaders[]ObjectFrom v1.4. TBD.
httpMethodStringFrom v1.5. The HTTP method to send if the testObjectProtocol is http or https. Supported values are TRACE, HEAD, OPTIONS, GET, PUT, POST, PATCH, DELETE. When omitted or null, this value defaults to GET.
httpRequestBodyStringFrom v1.5. The Base64-encoded HTTP request body to send if the testObjectProtocol is http or https. When omitted or null, omits the request body from the request.
nameStringA descriptive name for the liveness test.
peerCertificateVerificationBooleanFrom v1.3. Validates the origin certificate. Applies only to tests with testObjectProtocol of https. The default is false.
pre2023SecurityPostureBooleanFrom v1.6. Indicates whether the system uses a security posture configuration from before 2023. Defaults to false.
recursionRequestedBooleanFrom v1.3. Indicates that if testObjectProtocol is DNS, DOH or DOT, the DNS query is recursive. The default is false.
requestStringStringSpecifies a request string. Required if testObjectProtocol is tcp or tcps. The value is a maximum of 4000 non-space, alphanumeric characters.
resourceTypeStringFrom v1.3. Specifies the query type, if testObjectProtocol is DNS. Types include: A, AAAA, AFSDB, CNAME, HINFO, LOC, MX, NAPTR, NS, PTR, RP, SOA, SPF, SRV, SSHFP, TXT, DNSKEY, DS, NSEC3, NSEC3PARAM, or RRSIG. Additional support for unknown types TYPENNNNN where NNNNN is an integer from 1 through 65535.
responseStringStringSpecifies a response string. Required if testObjectProtocol is tcp or tcps. Maximum 4000 characters.
resultStringPre-v1.0. Liveness Test results.
sslClientCertificateStringIndicates a Base64-encoded certificate. SSL client certificates are available for livenessTests that use secure protocols.
sslClientPrivateKeyStringIndicates a Base64-encoded private key. The private key used to generate or request a certificate for livenessTests can't have a passphrase nor be used for any other purpose.
testIntervalIntegerIndicates the interval at which the liveness test is run, in seconds. Requires a minimum of 10 seconds.
testObjectStringSpecifies the static text that acts as a stand-in for the data that you're sending on the network.
testObjectPasswordStringSpecifies the test object's password. It's required if testObjectProtocol is ftp. Maximum is 128 characters.
testObjectPortIntegerSpecifies the port number for the testObject. Value from 1 to 65535.
testObjectProtocolStringSpecifies the test protocol. Either DNS, DOH, DOT, HTTP, HTTPS, HTTP2, HTTP2S, FTP, POP, POPS, SMTP, SMTPS, TCP, or TCPS. To enable testObjectProtocol for DNS, DOH, or DOT requires application/vnd.config-gtm.v1.3+json.
testObjectUsernameStringA descriptive name for the testObject. If testObjectProtocol is ftp, then you need to specify a testObjectUsername. The value is a maximum of 256 non-space, alphanumeric characters.
testTimeoutNumberSpecifies the duration of the liveness test before it fails. The range is from 0.001 to 60 seconds.
timeoutPenaltyNumberFrom v1.2. Specifies the score reported if the liveness test times out. This is independent of the liveness testTimeout value. The default value is 25 seconds.
LivenessTest.httpHeaders[]
nameStringFrom v1.4. Name of the HTTP header.
valueStringFrom v1.4. Value of the HTTP header.