Stops an application in a Container Service for Kubernetes (ACK) cluster or a Serverless 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

POST /pop/v5/k8s/acs/stop_k8s_app HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
AppId String Yes 93fdd228-d237-*******8de18d

The ID of the application. You can call the ListApplication operation to query the application ID. For more information, see ListApplication.

Timeout Integer No 60

The timeout interval of the change process. Unit: seconds.

Response parameters

Parameter Type Example Description
ChangeOrderId String *******27-a4f4-ed2ae98de18d

The change process ID for this operation.

Code Integer 200

The HTTP status code.

Message String success

The returned message.

RequestId String 03FD1520-0FD6-436A-****-265318D7****

The ID of the request.

Examples

Sample requests

POST /pop/v5/k8s/acs/stop_k8s_app HTTP/1.1
Common request header
{
"AppId": "93fdd228-d237-*******8de18d"
}

Sample success responses

XML format

<RequestId>03FD1520-0FD6-436A-****-265318D7****</RequestId>
<Message>success</Message>
<ChangeOrderId>*******27-a4f4-ed2ae98de18d</ChangeOrderId>
<Code>200</Code>

JSON format

{
    "RequestId": "03FD1520-0FD6-436A-****-265318D7****",
    "Message": "success",
    "ChangeOrderId": "*******27-a4f4-ed2ae98de18d",
    "Code": 200
}

Error codes

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