Modifying the Extended Information About a Microservice Instance
Function
This API is used to add or update the extended information about a microservice instance based on the instance ID after the instance is registered.
URI
PUT /v4/{project_id}/registry/microservices/{serviceId}/instances/{instanceId}/properties
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
Request parameters
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
properties |
Map<String, String> |
No |
Extended attribute of the microservice instance. You can customize a key and value. |
Response
Response parameters
None
Example
Example request
{ "properties": { "attr1": "value1" } }
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