Deletes an Alibaba Cloud Service Mesh (ASM) instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteServiceMesh |
The operation that you want to perform. Set the value to DeleteServiceMesh. |
ServiceMeshId | String | Yes | c08ba3fd1e6484b0f8cc1ad8fe10d**** |
The ID of the ASM instance. |
Force | Boolean | No | false |
Specifies whether to forcibly delete the ASM instance. Valid values:
Default value: false. |
RetainResources | String | No | [" lb-bp1fxvl3q8akbj6m*****", "lb-bp1hoxkolggdw0y3*****"] |
A JSON string that can be parsed into a string array. You can use this JSON string to specify the IDs of the resource instances that need to be retained when the ASM instance is deleted. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 11fd0027-c27e-41bb-a565-75583054**** |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteServiceMesh
&ServiceMeshId=c08ba3fd1e6484b0f8cc1ad8fe10d****
&Force=false
&RetainResources=[" lb-bp1fxvl3q8akbj6m*****", "lb-bp1hoxkolggdw0y3*****"]
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteServiceMeshResponse>
<RequestId>11fd0027-c27e-41bb-a565-75583054****</RequestId>
</DeleteServiceMeshResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "11fd0027-c27e-41bb-a565-75583054****"
}
Error codes
For a list of error codes, visit the API Error Center.