Deleting Static Information About a Microservice
Function
This API is used to delete the definition and related information about a microservice, and deregister all instances of the microservice.
URI
DELETE /v4/{project_id}/registry/microservices/{serviceId}
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: ^.*$ |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
force |
Boolean |
No |
Whether to forcibly delete information about a microservice. Options:
If the value is true, all service instances are automatically deregistered and related service dependencies are deleted. If the value is not specified and the microservice has instances, the microservice cannot be deleted. |
Request
None
Response
Response parameters
None
Example
Example request
DELETE /v4/default/registry/microservices/e0f0da073f2c91e8979a89ff2d7c69t6
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