Query one or more data sources bound to a policy, or query one or more policies bound to a data source.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
hbr:DescribePolicyBindings | list | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
NextToken | string | No | Token required to fetch the next page of policy and data source associations. | caeba0bbb2be03f84eb48b699f0a |
MaxResults | integer | No | Number of results per query. Range: 10~100. Default: 10. | 10 |
PolicyId | string | No | Policy ID. | po-000************hky |
DataSourceIds | array | No | List of data source IDs. | |
string | No | Data source ID. | i-uf6************68n | |
SourceType | string | No | Data source type. Possible values:
| UDM_ECS |
Filters | array<object> | No | Query filters. | |
object | No | Query filters. | ||
Key | string | No | Key in the query filter. Possible values include:
| DataSourceType |
Operator | string | No | Matching method. Default is IN. This refers to the matching operation (Operator) supported by the Key and Value in the filter. Possible values include:
| IN |
Values | array | No | Values to be matched in the query filter. | |
string | No | Values to be matched in the query filter. | UDM_ECS |
Response parameters
Examples
Sample success responses
JSON
format
{
"PolicyBindings": [
{
"CreatedTime": 1661399570,
"UpdatedTime": 1653611573,
"PolicyBindingId": "pd-000************slc",
"PolicyBindingDescription": "po-000************eslc-i-uf6************y5g",
"PolicyId": "po-000************56y",
"DataSourceId": "i-8vb************5ly",
"Disabled": true,
"Source": "backup/",
"Include": "[\\\"*.doc\\\",\\\"*.xltm\\\"]",
"Exclude": "[\\\"*.doc\\\",\\\"*.xltm\\\"]",
"SpeedLimit": "0:24:10240",
"AdvancedOptions": {
"UdmDetail": {
"ExcludeDiskIdList": [
"d-bp1************apo\n"
],
"DiskIdList": [
"d-bp1************apo\n"
],
"SnapshotGroup": true,
"AppConsistent": false,
"RamRoleName": "AliyunECSInstanceForHbrRole",
"PreScriptPath": "/tmp/prescript.sh",
"PostScriptPath": "/tmp/postscript.sh",
"EnableFsFreeze": true,
"TimeoutInSeconds": 30,
"EnableWriters": true,
"DestinationKmsKeyId": "4ed37b1e-da51-4187-aceb-9db4f9b7148b"
},
"OssDetail": {
"InventoryId": "inventory_test",
"InventoryCleanupPolicy": "DELETE_CURRENT_AND_PREVIOUS",
"IgnoreArchiveObject": true
},
"FileDetail": {
"UseVSS": false,
"AdvPolicy": false
},
"CommonNasDetail": {
"FullOnIncrementFail": true,
"FetchSliceSize": 100000,
"ClientId": "c-0001eg6mcvjs93f46s2d",
"ClusterId": "cl-000gkcofngi04j6k680a"
},
"CommonFileSystemDetail": {
"FullOnIncrementFail": true,
"FetchSliceSize": 100000
}
},
"SourceType": "UDM_ECS",
"CrossAccountType": "CROSS_ACCOUNT",
"CrossAccountUserId": 0,
"CrossAccountRoleName": "hbrcrossrole",
"CreatedByTag": false,
"HitTags": [
{
"Key": "env",
"Value": "prod",
"Operator": "EQUAL"
}
]
}
],
"NextToken": "caeba0bbb2be03f84eb48b699f0a",
"MaxResults": 10,
"TotalCount": 38,
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "5225929A-4EBD-55EE-9FE1-4A130E582A76"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-11-13 | The response structure of the API has changed | View Change Details |
2024-09-25 | The response structure of the API has changed | View Change Details |
2024-03-13 | The response structure of the API has changed | View Change Details |
2024-01-05 | The response structure of the API has changed | View Change Details |
2023-12-12 | The response structure of the API has changed | View Change Details |
2023-08-16 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2023-03-29 | The response structure of the API has changed | View Change Details |