Queries a list of health check templates based on specified parameters.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
alidns:ListCloudGtmMonitorTemplates | list | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AcceptLanguage | string | No | The language of the response. Valid values:
| en-US |
PageNumber | integer | Yes | Current page number, starting from 1, default is 1. | 1 |
PageSize | integer | Yes | The number of rows per page when paginating queries, with a maximum value of 100 and a default of 20. | 20 |
Name | string | No | The name of the health check probe template, which is recommended to be distinguishable for configuration personnel to differentiate and remember, ideally indicating the health check protocol. | IPv4-Ping |
IpVersion | string | No | The IP address type of health check nodes. Valid values:
| IPv4 |
Protocol | string | No | Protocol types for initiating probes to the target IP address:
| ping |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "75446CC1-FC9A-4595-8D96-089D73D7A63D",
"TotalPages": 2,
"TotalItems": 30,
"PageSize": 20,
"PageNumber": 1,
"Templates": {
"Template": [
{
"TemplateId": "mtp-89518052425100**80",
"CreateTime": "2024-03-23T13:09Z",
"CreateTimestamp": 1527690629357,
"UpdateTime": "2024-03-29T13:20Z",
"UpdateTimestamp": 1527690629357,
"Name": "IPv4-Ping",
"IpVersion": "IPv4",
"Protocol": "ping",
"Interval": 60,
"Timeout": 5000,
"EvaluationCount": 2,
"FailureRate": 50,
"ExtendInfo": "{\\\"code\\\":200,\\\"path\\\":\\\"\\\\index.htm\\\",\\\"host\\\":\\\"aliyun.com\\\"}\n",
"IspCityNodes": {
"IspCityNode": [
{
"CountryCode": "629",
"CountryName": "China",
"CityCode": "738",
"CityName": "Beijing",
"GroupType": "BGP",
"GroupName": "BGP Nodes",
"IspCode": "465",
"IspName": "Alibaba"
}
]
},
"Remark": "test"
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.