Removes a policy from an access configuration.
Usage notes
After you remove an inline policy from an access configuration, the policy cannot be restored.
This topic provides an example on how to remove the system policy AliyunECSFullAccess
from the access configuration ac-00jhtfl8thteu6uj****
.
Limits
You can call this operation up to 100 times per second per account. This operation is globally limited to 100 times per second across all accounts. If the number of the calls per second exceeds a limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limits when you call this operation.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | RemovePermissionPolicyFromAccessConfiguration |
The operation that you want to perform. Set the value to RemovePermissionPolicyFromAccessConfiguration. |
DirectoryId | String | Yes | d-00fc2p61**** |
The ID of the directory. |
AccessConfigurationId | String | Yes | ac-00jhtfl8thteu6uj**** |
The ID of the access configuration. |
PermissionPolicyType | String | Yes | System |
The type of the policy. Valid values:
|
PermissionPolicyName | String | Yes | AliyunECSFullAccess |
The name of the policy. |
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 9B13E4EE-3853-5852-9165-597C32AD8FB7 |
The ID of the request. |
Examples
Sample requests
https://[Endpoint]/?Action=RemovePermissionPolicyFromAccessConfiguration
&DirectoryId=d-00fc2p61****
&AccessConfigurationId=ac-00jhtfl8thteu6uj****
&PermissionPolicyType=System
&PermissionPolicyName=AliyunECSFullAccess
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<RemovePermissionPolicyFromAccessConfigurationResponse>
<RequestId>9B13E4EE-3853-5852-9165-597C32AD8FB7</RequestId>
</RemovePermissionPolicyFromAccessConfigurationResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "9B13E4EE-3853-5852-9165-597C32AD8FB7"
}
Error codes
For a list of error codes, visit the API Error Center.