Sets the status of the health check feature for an address pool of a Global Traffic Manager (GTM) instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetDnsGtmMonitorStatus

The operation that you want to perform. Set the value to SetDnsGtmMonitorStatus.

MonitorConfigId String Yes MonitorConfigId1

The ID of the health check task.

Status String Yes open

Specifies whether to enable the health check feature. Valid values:

  • OPEN: enable
  • CLOSE: disable
Lang String No en

The language to return some response parameters. Default value: en. Valid values: en, zh, and ja.

Response parameters

Parameter Type Example Description
RequestId String 6856BCF6-11D6-4D7E-AC53-FD579933522B

The ID of the request.

Examples

Sample requests

http(s)://alidns.aliyuncs.com/? Action=SetDnsGtmMonitorStatus
&MonitorConfigId=MonitorConfigId1
&Status=open
&<Common request parameters>

Sample success responses

XML format

<RequestId>6856BCF6-11D6-4D7E-AC53-FD579933522B</RequestId>

JSON format

{
    "RequestId": "6856BCF6-11D6-4D7E-AC53-FD579933522B"
}

Error codes

For a list of error codes, visit the API Error Center.