Help Center/
Elastic Load Balance/
API Reference/
Historical APIs/
Getting Started/
Configuring a Health Check
Updated on 2023-12-18 GMT+08:00
Configuring a Health Check
API Format
Method |
URI |
Description |
---|---|---|
POST |
/v2.0/lbaas/healthmonitors |
Configures a health check. |
Constraints
- The security group must have rules to allow access from the 100.125.0.0/16 network segment.
- The value of admin_state_up must be true.
- To use UDP for health checks, the backend server group must use UDP as backend protocol.
Procedure
- Set the request header. Set the header in Postman and place the obtained token in the header.
- Under Body, set the request body.
- Enter the URL.
https://elb.cn-east-2.myhuaweicloud.com/v2.0/lbaas/healthmonitors
- Send the request. Set the POST request method and click Send to wait for response from the server.
{ "healthmonitor": { "monitor_port": null, "name": "", "admin_state_up": true, "tenant_id": "0d0bf0e8fb564cc9abbe526dbdca9248", "delay": 10, "expected_codes": "200", "max_retries": 10, "http_method": "GET", "timeout": 10, "pools": [ { "id": "752c3773-a046-4966-a5d6-0ad7f9a49d0a" } ], "url_path": "/", "type": "HTTP", "id": "9b6d7438-a6eb-4d49-ae77-3c130e3b7ae8" } }
Sample Code
Request body in 2
{ "healthmonitor": { "admin_state_up": true, "pool_id": "752c3773-a046-4966-a5d6-0ad7f9a49d0a", "delay": "10", "max_retries": "10", "timeout": "10", "type": "HTTP" } }
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot