EnableControlPolicy
Enables the control policy feature by calling EnableControlPolicy.
Operation description
A resource directory control policy is an access control policy based on the resource structure (resource folders or member accounts). You can use control policies to manage permission borders for resource access at each level of the resource directory and establish overall or localized access control principles for your enterprise. Control policies only define permission borders and do not actually grant permissions. You must also set permissions in Settings of Resource Access Management (RAM) in a member account before the corresponding identity has access permissions to resources. For more information, see Control policy overview.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcemanager:EnableControlPolicy |
update |
*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. Valid values:
|
PendingEnable |
| RequestId |
string |
The request ID. |
8CE7BD95-EFFA-4911-A1E0-BD4412697FEB |
| ControlPolicyType |
string |
The type of the control policy. Valid values:
|
RESOURCE_CONTROL_POLICY |
Examples
Success response
JSON format
{
"EnablementStatus": "PendingEnable",
"RequestId": "8CE7BD95-EFFA-4911-A1E0-BD4412697FEB",
"ControlPolicyType": "RESOURCE_CONTROL_POLICY"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 409 | Throttling.EnableControlPolicy | The enable operation is too frequent. Please try again in %s minute(s). | The operation is frequently performed. Wait %s minutes and try again. |
| 409 | Throttling.EnableResourceControlPolicy | The enable operation is too frequent. Please try again in %s minute(s). |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.