All Products
Search
Document Center

Resource Management:ListTargetAttachmentsForControlPolicy

Last Updated:Jun 25, 2024

Queries the objects to which an access control policy is attached.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PolicyIdstringYes

The ID of the access control policy.

cp-jExXAqIYkwHN****
PageNumberintegerNo

The number of the page to return.

Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page.

Valid values: 1 to 100. Default value: 10.

10

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

TotalCountinteger

The total number of objects to which the access control policy is attached.

1
RequestIdstring

The ID of the request.

B32BD3D6-1089-41F3-8E70-E0079BC7D760
PageSizeinteger

The number of entries returned per page.

10
PageNumberinteger

The page number of the returned page.

1
TargetAttachmentsobject []

The information about the objects to which the access control policy is attached.

TargetIdstring

The ID of the object.

fd-ZDNPiT****
TargetNamestring

The name of the object.

Dev_Department
AttachDatestring

The time when the access control policy was attached to the object.

2021-03-19T02:56:24Z
TargetTypestring

The type of the object. Valid values:

  • Root: Root folder
  • Folder: subfolder of the Root folder
  • Account: member
Folder

Examples

Sample success responses

JSONformat

{
  "TotalCount": 1,
  "RequestId": "B32BD3D6-1089-41F3-8E70-E0079BC7D760",
  "PageSize": 10,
  "PageNumber": 1,
  "TargetAttachments": {
    "TargetAttachment": [
      {
        "TargetId": "fd-ZDNPiT****",
        "TargetName": "Dev_Department",
        "AttachDate": "2021-03-19T02:56:24Z",
        "TargetType": "Folder"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history