AddGtmMonitor
Creates a health check.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:AddGtmMonitor |
create |
*gtminstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language. |
en |
| AddrPoolId |
string |
Yes |
The ID of the address pool. |
xxxx |
| ProtocolType |
string |
Yes |
The check protocol. Valid values:
|
HTTP |
| Interval |
integer |
Yes |
The health check interval. Unit: seconds. Valid value: 60. |
60 |
| EvaluationCount |
integer |
Yes |
The number of consecutive failures. |
3 |
| Timeout |
integer |
Yes |
The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, and 10000. |
3000 |
| MonitorExtendInfo |
string |
Yes |
The extended information. Specify parameters based on the protocol: For HTTP and HTTPS:
For PING:
For TCP:
|
{\"code\":200,\"path\":\"/index.htm\",\"host\":\"aliyun.com\"} |
| IspCityNode |
array<object> |
Yes |
The list of monitored city nodes. |
|
|
object |
No |
The monitored city node. |
||
| CityCode |
string |
No |
The city code. For valid values, refer to the response data of the DescribeGtmMonitorAvailableConfig operation. |
503 |
| IspCode |
string |
No |
For valid values, refer to the response data of the DescribeGtmMonitorAvailableConfig operation.
|
465 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
6856BCF6-11D6-4D7E-AC53-FD579933522B |
| MonitorConfigId |
string |
The ID of the health check configuration. |
1234abc |
Examples
Success response
JSON format
{
"RequestId": "6856BCF6-11D6-4D7E-AC53-FD579933522B",
"MonitorConfigId": "1234abc"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.