Detaches a policy from a RAM role.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DetachPolicyFromRole |
The operation that you want to perform. Set the value to DetachPolicyFromRole. |
PolicyName | String | Yes | OSS-Administrator |
The name of the policy. |
PolicyType | String | Yes | Custom |
The type of the policy. Valid values: |
RoleName | String | Yes | OSSAdminRole |
The name of the RAM role. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 697852FB-50D7-44D9-9774-530C31EAC572 |
The ID of the request. |
Examples
Sample requests
https://ram.aliyuncs.com/?Action=DetachPolicyFromRole
&PolicyType=Custom
&PolicyName=OSS-Administrator
&RoleName=OSSAdminRole
&<Common request parameters>
Sample success responses
XML
format
<DetachPolicyFromRoleResponse>
<RequestId>697852FB-50D7-44D9-9774-530C31EAC572</RequestId>
</DetachPolicyFromRoleResponse>
JSON
format
{
"RequestId":"697852FB-50D7-44D9-9774-530C31EAC572"
}
Error codes
For a list of error codes, visit the API Error Center.