Queries the access control policies that are attached to a folder or member.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TargetId | string | Yes | The ID of the object whose access control policies you want to query. Access control policies can be attached to the following objects:
| fd-ZDNPiT**** |
Language | string | No | The language in which you want to return the descriptions of the access control policies. Valid values:
Note
This parameter is valid only for system access control policies.
| zh-CN |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C276B600-7B7A-49E8-938C-E16CFA955A82",
"ControlPolicyAttachments": {
"ControlPolicyAttachment": [
{
"Description": "ExampleControlPolicy",
"EffectScope": "RAM",
"PolicyName": "ExampleControlPolicy",
"PolicyId": "cp-jExXAqIYkwHN****",
"AttachDate": "2021-03-19T02:56:24Z",
"PolicyType": "Custom"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | EntityNotExists.Target | The specified target does not exist in the resource directory. | The specified object does not exist in the resource directory. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history