Queries the Layer 4 or Layer 7 health check configurations of a port forwarding rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-ddoscoo:DescribeHealthCheckList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NetworkRules |
string |
Yes |
The information about the port forwarding rule. This parameter is a JSON string. The string contains the following fields:
|
[{"InstanceId":"ddoscoo-cn-mp91j1ao****","Protocol":"tcp","FrontendPort":8080}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
83B4AF42-E8EE-4DC9-BD73-87B7733A36F9 |
| HealthCheckList |
array<object> |
An array that consists of information about the health check configuration. |
|
|
array<object> |
|||
| FrontendPort |
integer |
The forwarding port. |
8080 |
| InstanceId |
string |
The ID of the instance. |
ddoscoo-cn-mp91j1ao**** |
| Protocol |
string |
The forwarding protocol. Valid values:
|
tcp |
| HealthCheck |
object |
The health check configuration. |
|
| Timeout |
integer |
The response timeout period. Valid values: 1 to 30. Unit: seconds. |
5 |
| Type |
string |
The type of the protocol. Valid values:
|
tcp |
| Domain |
string |
The domain name. Note
This parameter is returned only when the Layer 7 health check configuration is queried. |
www.aliyun.com |
| Interval |
integer |
The interval at which checks are performed. Valid values: 1 to 30. Unit: seconds. |
15 |
| Up |
integer |
The number of consecutive successful health checks that must occur before a port is declared healthy. Valid values: 1 to 10. |
3 |
| Down |
integer |
The number of consecutive failed health checks that must occur before a port is declared unhealthy. Valid values: 1 to 10. |
3 |
| Port |
integer |
The port that was checked. |
8080 |
| Uri |
string |
The check path. Note
This parameter is returned only when the Layer 7 health check configuration is queried. |
/abc |
Examples
Success response
JSON format
{
"RequestId": "83B4AF42-E8EE-4DC9-BD73-87B7733A36F9",
"HealthCheckList": [
{
"FrontendPort": 8080,
"InstanceId": "ddoscoo-cn-mp91j1ao****",
"Protocol": "tcp",
"HealthCheck": {
"Timeout": 5,
"Type": "tcp",
"Domain": "www.aliyun.com",
"Interval": 15,
"Up": 3,
"Down": 3,
"Port": 8080,
"Uri": "/abc"
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.