Queries health checks that are associated with a Smart Access Gateway (SAG) instance.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the SAG instance. | cn-shanghai |
SmartAGId | string | Yes | The ID of the SAG instance. | sag-qi0p07ld5q86k3**** |
HcInstanceId | string | No | The ID of the health check. | hc-ifflm5ygj3diwiu**** |
Name | string | No | The name of the health check. The name must be 2 to 100 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. | ddd3333 |
PageNumber | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 10. Maximum value: 50. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 5,
"PageSize": 10,
"RequestId": "0B275FE6-FC86-4921-BC70-1B3DF68B078F",
"PageNumber": 1,
"HealthChecks": {
"HealthCheck": [
{
"Type": "ICMP_ECHO",
"ProbeTimeout": 1000,
"Status": "unknown",
"DstIpAddr": "110.XX.XX.1",
"RelationCount": 3,
"RttFailThreshold": 3,
"SmartAGId": "sag-qi0p07ld5q86k3****",
"DstPort": 33,
"FailCountThreshold": 3,
"RttThreshold": 45,
"SrcPort": 334,
"ProbeCount": 2,
"Description": "Health Check",
"SrcIpAddr": "192.XX.XX.1",
"ProbeInterval": 2000,
"Name": "doctest",
"HcInstanceId": "hc-ifflm5ygj3diwi****"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | SAG.InstanceIdEmpty | You must specify the SAG instance ID. | You must specify the SAG instance ID. |
400 | SAG.InstanceNoFound | The specified SAG instance does not exist. | The specified SAG instance does not exist. |
For a list of error codes, visit the Service error codes.