Deleting a Dark Launch Policy
Function
This API is used to delete a dark launch policy.
URI
DELETE /v3/{project_id}/govern/route-rule/microservices/{service_name}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID, which must be unique. The value contains 1 to 64 characters. |
service_name |
Yes |
String |
Microservice name. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
environment |
No |
String |
Environment. If this parameter is left blank, <empty> is used. |
app_id |
No |
String |
Application. If this parameter is left blank, default is used. |
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Set it to application/json;charset=UTF-8. |
X-Auth-Token |
Yes |
String |
User token. |
x-engine-id |
Yes |
String |
Instance ID of an exclusive microservice engine. |
X-Enterprise-Project-ID |
Yes |
String |
Enterprise project ID. |
Response
Parameter |
Type |
Description |
---|---|---|
result |
String |
Result. |
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
detail |
String |
Location details. |
Example Request
DELETE https://{endpoint}/v3/{project_id}/govern/route-rule/microservices/{service_name}
Example Response
Status code: 200
Response structure for deleting a dark launch policy.
{ "Result" : "string" }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
Error Code
See 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