UpdateAppMode
Updates the idle mode of an application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:UpdateAppMode |
update |
*All Resource
|
None | None |
Request syntax
PUT /pop/v1/sam/app/updateAppMode HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EnableIdle |
boolean |
No |
Specifies whether to enable the idle mode. Valid values:
|
true |
| AppId |
string |
No |
The ID of the application. |
7171a6ca-d1cd-4928-8642-7d5cfe69**** |
| NamespaceId |
string |
No |
The ID of the namespace. |
cn-shanghai |
| AppIds |
string |
No |
The ID of the application. |
7171a6ca-d1cd-4928-8642-7d5cfe69****,7802c49a-67bc-4167-8369-9a9c003c**** |
| IdleHour |
string |
No |
The idle duration. |
[{"startTime":"1:00","endTime":"16:00"}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The additional information. Valid values:
|
success |
| TraceId |
string |
The trace ID used to query invocation details. |
0a98a02315955564772843261e**** |
| ErrorCode |
string |
The error code. Valid values:
|
InvalidParameter.NotEmpty |
| Code |
string |
The API status code or POP error code. Valid values:
|
200 |
| Success |
string |
Indicates whether the application is created successfully. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"ErrorCode": "InvalidParameter.NotEmpty",
"Code": "200",
"Success": "true"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.