GetControlPolicyEnablementStatus
Queries the enablement status of the control policy feature by calling GetControlPolicyEnablementStatus.
Operation description
Queries the current enablement or disablement status of the control policy feature. After the call, you can use the EnablementStatus response parameter to determine whether the control policy feature is enabled, being enabled, disabled, or being disabled.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcemanager:GetControlPolicyEnablementStatus |
get |
*ResourceDirectory
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ControlPolicyType |
string |
No |
The type of the control policy. Valid values:
Default value: |
RESOURCE_CONTROL_POLICY |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| EnablementStatus |
string |
The status of the control policy feature. Valid values:
|
Disabled |
| RequestId |
string |
The request ID. |
1DC39A4E-3B52-4EFE-9F93-4897D7FFA0C4 |
| ControlPolicyType |
string |
The type of the control policy. Valid values:
|
RESOURCE_CONTROL_POLICY |
Examples
Success response
JSON format
{
"EnablementStatus": "Disabled",
"RequestId": "1DC39A4E-3B52-4EFE-9F93-4897D7FFA0C4",
"ControlPolicyType": "RESOURCE_CONTROL_POLICY"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.