Enables a scenario-specific policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:EnableCustomScenePolicy |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyId |
integer |
Yes |
The policy ID, which can be obtained by calling the DescribeCustomScenePolicies operation. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
65C66B7B-671A-8297-9187-2R5477247B76 |
| PolicyId |
integer |
The policy ID. |
1 |
Examples
Success response
JSON format
{
"RequestId": "65C66B7B-671A-8297-9187-2R5477247B76",
"PolicyId": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | PolicyNotExist | The policy does not exist. | The policy does not exist. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.