Restarts applications in batches.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:BatchRestartApplications |
none |
*All Resource
|
None | None |
Request syntax
PUT /pop/v1/sam/app/batchRestartApplications HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NamespaceId |
string |
Yes |
The namespace ID. |
cn-shanghai |
| AppIds |
string |
Yes |
The application IDs. Separate multiple IDs with commas (,). |
00893b3a-0e24-45ed-be0c-1f20e07b**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The additional information. Value description: If the request succeeds, a success message is returned. If the request fails, an error code is returned. |
success |
| TraceId |
string |
The ID of the trace, which is used to query the exact call information. |
0a98a02315955564772843261e**** |
| Data |
object |
The response. |
|
| ChangeOrderId |
string |
The ID of the change process. |
01db03d3-3ee9-48b3-b3d0-dfce2d88**** |
| ErrorCode |
string |
The error code. Value description: If the request succeeds, this field is not returned. It is returned only if the request fails. For more information, see the "Error codes" section in this topic. |
System.Upgrading |
| Code |
string |
The API status or POP error code. Value description: 2xx: The request was successful. 3xx: The request was redirected. 4xx: The request was invalid. 5xx: A server error occurred. |
200 |
| Success |
boolean |
Indicates whether the applications were started. Valid values: true and false |
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"ChangeOrderId": "01db03d3-3ee9-48b3-b3d0-dfce2d88****"
},
"ErrorCode": "System.Upgrading",
"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. | |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | |
| 400 | Mamespace.Have.No.Applications | There are no applications in this namespace. | There are no applications in this namespace. |
| 400 | Invalid.App.List.Not.Same.Namespace | The selected applications do not belong to the same namespace. | The selected applications does not belong to the same namespace. |
| 400 | user.indebt | The user has an outstanding payment. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.