Deleting Static Information About Microservices in Batches
Function
This API is used to delete the definitions and related information about microservices in batches, and deregister all instances of the microservices.
URI
DELETE /v4/{project_id}/registry/microservices
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Fixed value: default. |
Request
Request parameters
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
serviceIds |
Array of strings |
Yes |
Microservice ID list. |
force |
Boolean |
No |
Whether to forcibly delete static information about microservices. Options:
Default value: false. If the value is true, all service instances are automatically deregistered and related service dependencies are deleted. If the value is not specified and a microservice is the dependent service of other microservices or has instances, the microservice cannot be deleted. |
Example
Example request
{ "serviceIds": [ "string" ], "force": boolean }
Example response
{ "services": [ { "serviceId": "string" } ] }
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