Deletes an application service from a Kubernetes cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request header. For more information, see Common request parameters.

Request syntax

DELETE /pop/v5/k8s/acs/k8s_service HTTPS|HTTP

Request parameters

Parameter Type Position Required Example Description
AppId String Query Yes 5a166fbd***a286-781659d9f54c

The ID of the application.

Name String Query Yes service-http

The name of the service.

Response parameters

Parameter Type Example Description
ChangeOrderId String b4b37bde-a125-43fc-****-741f7f4a9ae3

The ID of the change process.

Code Integer 200

The HTTP status code.

Message String success

The additional information.

RequestId String 9041389c-*****-459c-8253-724bca7f51f0

The ID of the request.

Examples

Sample requests

DELETE /pop/v5/k8s/acs/k8s_service HTTP/1.1
Common request parameters
{
"AppId": "5a166fbd***a286-781659d9f54c",
"Name": "service-http"
}

Sample success responses

XML format

<RequestId>9041389c-*****-459c-8253-724bca7f51f0</RequestId>
<Message>success</Message>
<ChangeOrderId>b4b37bde-a125-43fc-****-741f7f4a9ae3</ChangeOrderId>
<Code>200</Code>

JSON format

{
    "RequestId": "9041389c-*****-459c-8253-724bca7f51f0",
    "Message": "success",
    "ChangeOrderId": "b4b37bde-a125-43fc-****-741f7f4a9ae3",
    "Code": 200
}

Error codes

HttpCode Error code Error message Description
500 Edas.errorcode.PermissionDenied.message You are not authorized to perform the operation. The error message returned because you are not authorized to perform the operation.

For a list of error codes, visit the API Error Center.