Deleting a Service Mesh¶
Function¶
This API is used to delete a service mesh.
URI¶
DELETE /v1/meshes/{mesh_id}
Parameter | Mandatory | Type | Description |
---|---|---|---|
mesh_id | Yes | String | Service mesh ID. |
Request Parameters¶
Parameter | Mandatory | Type | Description |
---|---|---|---|
X-Auth-Token | Yes | String | Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. |
X-Apply-ProjectID | Yes | String | ID of the project that the service mesh belongs to. |
Response Parameters¶
Status code: 200
Parameter | Type | Description |
---|---|---|
apiVersion | String | API version. The value is fixed at v1 and cannot be changed. |
kind | String | API type. The value is fixed at Mesh or mesh and cannot be changed. |
metadata | Table4 MeshMetadata object | Basic information about the service mesh. Metadata is a collection of attributes. |
spec | Table 5 MeshSpec object | Detailed description of the service mesh. ASM creates or updates the service mesh by spec. |
status | Table 12 MeshStatus object | Service mesh status, which is automatically generated by ASM. |
Parameter | Type | Description |
---|---|---|
name | String | Service mesh name. |
uid | String | Service mesh ID, which is unique and automatically generated after the service mesh is created. |
creationTimestamp | String | Time when the service mesh was created. |
Parameter | Type | Description |
---|---|---|
region | String | Region where the control plane components of the service mesh are located. |
type | String | Service mesh type. InCluster: service mesh with an in-cluster control plane. The value is InCluster for the service mesh of the Basic edition. |
version | String | Service mesh version. |
extendParams | Table 6 MeshExtendParams object | Extensions of the service mesh. |
Parameter | Type | Description |
---|---|---|
clusters | Array of Table 7 MeshCluster objects | Information about clusters in service meshes (only for the Basic edition). |
Parameter | Type | Description |
---|---|---|
clusterID | String | Cluster ID, which is unique and can be used to query the cluster to be added. |
projectID | String | ID of the project that the cluster belongs to. |
Parameter | Type | Description |
---|---|---|
phase | String | Service mesh status. The options are as follows:
|
updateTimestamp | String | Time when the service mesh was updated. |
Status code: 400
Parameter | Type | Description |
---|---|---|
errorCode | String | Error code. Minimum length: 8 Maximum length: 36 |
errorMsg | String | Error message. Minimum length: 2 Maximum length: 512 |
Status code: 404
Parameter | Type | Description |
---|---|---|
errorCode | String | Error code. Minimum length: 8 Maximum length: 36 |
errorMsg | String | Error message. Minimum length: 2 Maximum length: 512 |
Status code: 500
Parameter | Type | Description |
---|---|---|
errorCode | String | Error code. Minimum length: 8 Maximum length: 36 |
errorMsg | String | Error message. Minimum length: 2 Maximum length: 512 |
Example Request¶
None
Example Response¶
Status code: 200
The service mesh deletion task is delivered and the service mesh deletion starts.
{
"kind" : "Mesh",
"apiVersion" : "v1",
"metadata" : {
"name" : "mesh-test-api1",
"uid" : "b0906529-5871-xxxx-xxxx-8f93784d267c",
"creationTimestamp" : "2024-12-10T07:29:37Z"
},
"spec" : {
"domainID": "06e6bafb794746xxxxxxxx536497ea95",
"region" : "eu-de-01",
"type" : "InCluster",
"version" : "1.15.7-r4",
"extendParams" : {
"clusters" : [ {
"clusterID" : "8df4c986-b052-xxxx-xxxx-0255ac101231",
"meshID": "b0906529-5871-xxxx-xxxx-8f93784d267c",
"region": "eu-de-01",
"projectID" : "719217bc273743xxxxxxxxae8bc34480" ,
"provider": "CCE",
"proxyMode": "sidecar"
} ]
}
},
"status" : {
"phase" : "Deleting",
"updateTimestamp" : "2024-12-10T07:36:42Z"
}
}
Status Codes¶
Status Code | Description |
---|---|
200 | The service mesh deletion task is delivered and the service mesh deletion starts. |
400 | Verification failed due to incorrect parameters for deleting the specified service mesh. |
404 | The specified service mesh is not found. |
500 | An error occurs during the service mesh deletion. |