Sending Heartbeat Information
Function
This API is used to send heartbeat information. Service providers need to send heartbeat information to the service center, so that the center can check whether service instances are normal.
URI
PUT /v4/{project_id}/registry/microservices/{serviceId}/instances/{instanceId}/heartbeat
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Fixed value: default. |
serviceId |
String |
Yes |
Microservice ID, which must be unique. The value must be 1 to 64 characters long. Regular expression: ^.*$ |
instanceId |
String |
Yes |
Microservice instance ID, which must be unique. The value must be 1 to 64 characters long. Regular expression: ^[A-Za-z0-9_.-]*$ |
Request
None
Response
Response parameters
None
Example
Example request
PUT /v4/default/registry/microservices/a0c572b9ede946712698081a87552a7a87169bcb/instances/2370d7938b7111ebb23100ff14de2ec3/heartbeat
Example response
None
Status Code
See Status Codes.
Error Code
See CSE 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