Queries the details of an access control policy.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PolicyId | string | Yes | The ID of the access control policy. | cp-SImPt8GCEwiq**** |
Language | string | No | The language in which you want to return the description of the access control policy. Valid values:
Note
This parameter is valid only for system access control policies.
| zh-CN |
Response parameters
Examples
Sample success responses
JSON
format
{
"ControlPolicy": {
"PolicyDocument": "{\\\"Version\\\":\\\"1\\\",\\\"Statement\\\":[{\\\"Effect\\\":\\\"Deny\\\",\\\"Action\\\":[\\\"ram:UpdateRole\\\",\\\"ram:DeleteRole\\\",\\\"ram:AttachPolicyToRole\\\",\\\"ram:DetachPolicyFromRole\\\"],\\\"Resource\\\":\\\"acs:ram:*:*:role/ResourceDirectoryAccountAccessRole\\\"}]}",
"UpdateDate": "2021-03-18T08:51:33Z",
"Description": "ExampleControlPolicy",
"EffectScope": "RAM",
"AttachmentCount": "0",
"PolicyName": "test",
"PolicyId": "cp-SImPt8GCEwiq****",
"CreateDate": "2021-03-18T08:51:33Z",
"PolicyType": "Custom"
},
"RequestId": "AB769936-CDFA-4D52-8CE2-A3581800044A"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history