Viewing the Details of a Health Check
Function
This API is used to view the details of a health check.
Calling Method
For details, see Calling APIs.
URI
GET /v3/{project_id}/elb/healthmonitors/{healthmonitor_id}
Parameter | Mandatory | Type | Description |
|---|---|---|---|
project_id | Yes | String | Definition: Specifies the project ID. For details about how to obtain a project ID, see Obtaining a Project ID. Constraints: N/A Range: The value can contain a maximum of 32 characters, including digits and lowercase letters. Default value: N/A |
healthmonitor_id | Yes | String | Definition: Specifies the health check ID. Constraints: N/A Range: N/A Default value: N/A |
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
X-Auth-Token | Yes | String | Definition: Specifies the token used for IAM authentication. Constraints: N/A Range: N/A Default value: N/A |
Response Parameters
Status code: 200
Parameter | Type | Description |
|---|---|---|
request_id | String | Definition: Specifies the request ID. Range: The value is automatically generated, and can contain characters including digits, lowercase letters, and hyphens (-). |
healthmonitor | HealthMonitor object | Definition: Specifies the health check. |
Parameter | Type | Description |
|---|---|---|
admin_state_up | Boolean | Definition: Specifies the administrative status of the health check. Range:
|
delay | Integer | Definition: Specifies the interval between health checks, in seconds. Range: 1 to 50 |
domain_name | String | Definition: Specifies the domain name that HTTP requests are sent to during the health check. Range: The value can contain only digits, letters, hyphens (-), and periods (.) and must start with a digit or letter. |
expected_codes | String | Definition: Specifies the expected HTTP status code. Range:
|
http_method | String | Definition: Specifies the HTTP method. Range: GET, HEAD, or POST |
id | String | Specifies the health check ID. Default value: N/A |
max_retries | Integer | Definition: Specifies the number of consecutive health checks when the health check result of a backend server changes from OFFLINE to ONLINE. Range: 1 to 10 |
max_retries_down | Integer | Definition: Specifies the number of consecutive health checks when the health check result of a backend server changes from ONLINE to OFFLINE. Range: 1 to 10 |
monitor_port | Integer | Definition: Specifies the health check port. Range: 1 to 65535, or null (the port of a backend server will be used by default). |
name | String | Definition: Specifies the health check name. Range: N/A |
pools | Array of PoolRef objects | Specifies the IDs of the backend server groups for which the health check is configured. Only one ID will be returned. Range: N/A |
project_id | String | Definition: Specifies the project ID. Range: N/A |
timeout | Integer | Definition: Specifies the maximum time required for waiting for a response from the health check, in seconds. Range: N/A |
type | String | Definition: Specifies the health check protocol. Range: The value can be TCP, UDP_CONNECT, HTTP, HTTPS, GRPC, or TLS. |
url_path | String | Definition: Specifies the HTTP request path for the health check. The value must start with a slash (/), and the default value is /. Range: The value can contain letters, digits, hyphens (-), slashes (/), periods (.), percentage signs (%), question marks (?), pound signs (#), ampersand signs (&), and the extended character set: _;~!()*[]@$^:',+. |
created_at | String | Definition: Specifies the creation time. Range: The value must be a UTC time in the format of yyyy-MM-dd'T'HH:mm:ss'Z'. |
updated_at | String | Definition: Specifies the update time. Range: The value must be a UTC time in the format of yyyy-MM-dd'T'HH:mm:ss'Z'. |
Example Requests
Querying the details of a health check
GET https://{ELB_Endpoint}/v3/99a3fff0d03c428eac3678da6a7d0f24/elb/healthmonitors/c2b210b2-60c4-449d-91e2-9e9ea1dd7441 Example Responses
Status code: 200
Successful request.
{
"healthmonitor" : {
"name" : "my-healthmonitor",
"monitor_port" : null,
"id" : "00b42a6a-0a16-47af-be4e-dc821fc316a3",
"project_id" : "0c1503d710984bad92306faea3654dfd",
"domain_name" : null,
"delay" : 1,
"max_retries" : 1,
"max_retries_down" : 1,
"pools" : [ {
"id" : "c73600be-e3af-4d9f-bec2-f7c4ccf84b33"
} ],
"admin_state_up" : true,
"timeout" : 1,
"type" : "HTTP",
"expected_codes" : "200",
"url_path" : "/",
"http_method" : "HEAD",
"created_at" : "2024-08-08T09:00:34Z",
"updated_at" : "2024-08-08T09:00:34Z"
},
"request_id" : "08660101bcaff627f2f48730cf837e5f"
} Status Codes
Status Code | Description |
|---|---|
200 | Successful request. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
