Stops multiple applications at a time.
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/batchStopApplications HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
NamespaceId | String | Query | Yes | cn-shanghai | The ID of the namespace. |
AppIds | String | Query | No | ebf491f0-c1a5-45e2-b2c4-710dbe2a****,ebf491f0-c1a5-45e2-b2c4-71025e2a**** | The IDs of the applications that you want to stop. Separate multiple IDs with commas (,). |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 7BD8F4C7-D84C-4D46-9885-8212997E**** | 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 applications are stopped. Valid values:
|
Examples
Sample requests
PUT /pop/v1/sam/app/batchStopApplications?NamespaceId=cn-shanghai&AppIds=ebf491f0-c1a5-45e2-b2c4-710dbe2a****,ebf491f0-c1a5-45e2-b2c4-71025e2a**** 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
<BatchStopApplicationsResponse>
<RequestId>7BD8F4C7-D84C-4D46-9885-8212997E****</RequestId>
<Message>success</Message>
<TraceId>0bc3b6e215637275918588187d****</TraceId>
<Data>
<ChangeOrderId>4a815998-b468-4bea-b7d8-59f52a44****</ChangeOrderId>
</Data>
<Code>200</Code>
<Success>true</Success>
</BatchStopApplicationsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "7BD8F4C7-D84C-4D46-9885-8212997E****",
"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 | 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 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | The error message returned because the value of the %s parameter is invalid. |
400 | Invalid.App.List.Not.Same.Namespace | The selected applications do not belong to the same namespace. | The error message returned because the specified applications do not belong to the same namespace. |
400 | Mamespace.Have.No.Applications | There are no applications in this namespace. | The error message returned because no applications were found in the specified namespace. |
400 | user.indebt | The user has an outstanding payment. | The error message returned because an overdue payment exists for the user. |
For a list of error codes, visit the API Error Center.