Stops an application.
Debugging
Request headers
This operation uses only common request headers. For more information, see Common request and response headers.
Request syntax
PUT /pop/v1/sam/app/stopApplication HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
AppId | String | Query | Yes | 0099b7be-5f5b-4512-a7fc-56049ef1**** | The ID of the application. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** | The ID of the request. |
Message | String | success | The returned message.
|
TraceId | String | 0bc3b6e215637275918588187d**** | The ID of the trace. It can be used to query the details of a request. |
Data | Object | The returned data. |
|
ChangeOrderId | String | 4a815998-b468-4bea-b7d8-59f52a44**** | The ID of the change order. |
ErrorCode | String | The error code.
|
|
Code | String | 200 | The HTTP status code. Valid values:
|
Success | Boolean | true | Indicates whether the specified application is stopped. Valid values:
|
Examples
Sample requests
PUT /pop/v1/sam/app/stopApplication?AppId=0099b7be-5f5b-4512-a7fc-56049ef1**** HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<StopApplicationResponse>
<RequestId>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</RequestId>
<Message>success</Message>
<TraceId>0bc3b6e215637275918588187d****</TraceId>
<Data>
<ChangeOrderId>4a815998-b468-4bea-b7d8-59f52a44****</ChangeOrderId>
</Data>
<Code>200</Code>
<Success>true</Success>
</StopApplicationResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message" : "success",
"TraceId" : "0bc3b6e215637275918588187d****",
"Data" : {
"ChangeOrderId" : "4a815998-b468-4bea-b7d8-59f52a44****"
},
"Code" : "200",
"Success" : true
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidApplication.NotFound | The current application does not exist. | The error message returned because the specified application is not found. |
400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | The error message returned because the value of the %s parameter is invalid. This parameter cannot be left empty. |
400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | The error message returned because the value of the %s parameter is invalid. |
400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | The error message returned because the value of the %s parameter is invalid: %s. |
400 | System.Upgrading | The system is being upgraded. Please try again later. | The error message returned because the system is being upgraded. Try again later. |
400 | Application.ChangerOrderRunning | An application change process is in progress. Please try again later. | The error message returned because an application change is in progress. Try again later. |
400 | Application.InvalidStatus | The application status is abnormal. Please try again later. | The error message returned because the application status is abnormal. Try again later. |
400 | Application.NotDeployYet | The application has not been deployed. Please deploy it and try again. | The error message returned because the application is not deployed. Deploy the application and try again. |
For a list of error codes, visit the API Error Center.