Reviewed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com> Co-authored-by: zhoumeng <zhoumeng35@huawei.com> Co-committed-by: zhoumeng <zhoumeng35@huawei.com>
24 KiB
Viewing Details of a Health Check
Function
This API is used to view details of a health check.
URI
GET /v3/{project_id}/elb/healthmonitors/{healthmonitor_id}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
healthmonitor_id |
Yes |
String |
Specifies the health check ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the token used for IAM authentication. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
request_id |
String |
Specifies the request ID. The value is automatically generated. |
healthmonitor |
HealthMonitor object |
Specifies the health check. |
Parameter |
Type |
Description |
|---|---|---|
admin_state_up |
Boolean |
Specifies the administrative status of the health check.
|
delay |
Integer |
Specifies the interval between health checks, in seconds. The value ranges from 1 to 50. Minimum: 1 Maximum: 50 |
domain_name |
String |
Specifies the domain name that HTTP requests are sent to during the health check. The value can contain only digits, letters, hyphens (-), and periods (.) and must start with a digit or letter. The value is left blank by default, indicating that the virtual IP address of the load balancer is used as the destination address of HTTP requests. This parameter is available when type is set to HTTP or HTTPS. |
expected_codes |
String |
Specifies the expected HTTP status code. This parameter will take effect only when type is set to HTTP or HTTPS. The value options are as follows:
The default value is 200. Multiple status codes can be queried in the format of expected_codes=xxx&expected_codes=xxx. |
http_method |
String |
Specifies the HTTP method. The value can be GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, or PATCH. The default value is GET. This parameter is available when type is set to HTTP or HTTPS. This parameter is unsupported. Please do not use it. |
id |
String |
Specifies the health check ID. |
max_retries |
Integer |
Specifies the number of consecutive health checks when the health check result of a backend server changes from OFFLINE to ONLINE. The value ranges from 1 to 10 Minimum: 1 Maximum: 10 |
max_retries_down |
Integer |
Specifies the number of consecutive health checks when the health check result of a backend server changes from ONLINE to OFFLINE. The value ranges from 1 to 10, and the default value is 3. Minimum: 1 Maximum: 10 |
monitor_port |
Integer |
Specifies the port used for the health check. If this parameter is left blank, a port of the backend server will be used by default. The port number ranges from 1 to 65535. Minimum: 1 Maximum: 65535 |
name |
String |
Specifies the health check name. |
pools |
Array of PoolRef objects |
Lists the IDs of backend server groups for which the health check is configured. Only one ID will be returned. |
project_id |
String |
Specifies the project ID. |
timeout |
Integer |
Specifies the maximum time required for waiting for a response from the health check, in seconds. It is recommended that you set the value less than that of parameter delay. Minimum: 1 Maximum: 50 |
type |
String |
Specifies the health check protocol. The value can be TCP, UDP_CONNECT, HTTP, or HTTPS. Note:
|
url_path |
String |
Specifies the HTTP request path for the health check. The value must start with a slash (/), and the default value is /. Note: This parameter is available only when type is set to HTTP. |
created_at |
String |
Specifies the time when the health check was configured. The format is yyyy-MM-dd'T'HH:mm:ss'Z' (UTC time). This is a new field in this version, and it will not be returned for resources associated with existing dedicated load balancers and for resources associated with existing and new shared load balancers. |
updated_at |
String |
Specifies the time when the health check was updated. The format is yyyy-MM-dd'T'HH:mm:ss'Z' (UTC time). This is a new field in this version, and it will not be returned for resources associated with existing dedicated load balancers and for resources associated with existing and new shared load balancers. |
http_version |
String |
Specifies the HTTP version used for health checks. The value can be HTTP/1.0 or HTTP/1.1. By default, this parameter is left blank, indicating that no HTTP version is specified. Note: This parameter is available only when type is set to HTTP or HTTPS. This parameter is unsupported. Please do not use it. |
content_check_enable |
Boolean |
Specifies whether to enable health check content verification. The value can be:
Note: This parameter can be enabled only when type is set to TCP or UDP_CONNECT. This parameter is unsupported. Please do not use it. |
send_content |
String |
Specifies the health check content to be sent. ELB sends the configured content and waits for a response from the backend server. If the backend server returns a content that is the same as that defined by receive_content, the backend server is considered healthy. The value can contain:
Note: This parameter only works when type is set to TCP or UDP_CONNECT and content_check_enable is set to true. This parameter is unsupported. Please do not use it. |
receive_content |
String |
Specifies the health check response content you expect from the backend server. If the backend server returns a content that is the same as that defined by receive_content, the backend server is considered healthy. The value can contain:
Note: This parameter only works when type is set to TCP or UDP_CONNECT and content_check_enable is set to true. This parameter is unsupported. Please do not use it. |
content_format |
String |
Specifies the health check content format. The value can be:
This parameter is unsupported. Please do not use it. |
Example Requests
GET https://{ELB_Endpoint}/v3/99a3fff0d03c428eac3678da6a7d0f24/elb/healthmonitors/c2b210b2-60c4-449d-91e2-9e9ea1dd7441
Example Responses
Status code: 200
Successful request.
{
"healthmonitor" : {
"monitor_port" : null,
"id" : "c2b210b2-60c4-449d-91e2-9e9ea1dd7441",
"project_id" : "99a3fff0d03c428eac3678da6a7d0f24",
"domain_name" : null,
"name" : "My Healthmonitor update",
"delay" : 10,
"max_retries" : 10,
"pools" : [ {
"id" : "488acc50-6bcf-423d-8f0a-0f4184f5b8a0"
} ],
"admin_state_up" : true,
"timeout" : 30,
"type" : "HTTP",
"expected_codes" : "200",
"url_path" : "/",
"http_method" : "GET",
"content_check_enable" : false,
"http_version" : null,
"send_content" : null,
"receive_content" : null,
"content_format" : "TEXT",
"created_at" : "2024-08-08T09:00:34Z",
"updated_at" : "2024-08-08T09:00:34Z"
},
"request_id" : "3702e8f0-f5f0-4d35-9097-fc7160005fae"
}
Status Codes
Status Code |
Description |
|---|---|
200 |
Successful request. |
Error Codes
See Error Codes.