Detaches a data source from a policy. After the data source is detached, the policy no longer protects it. Use this operation with caution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:DeletePolicyBinding |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyId |
string |
Yes |
The policy ID. |
po-000************hgp |
| DataSourceIds |
array |
No |
The IDs of the data sources to detach from the policy. |
|
|
string |
No |
The ID of a data source to detach from the policy. |
i-2ze************quf |
|
| SourceType |
string |
No |
The type of the data source. Valid values:
|
UDM_ECS |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
DeletePolicyBindingResponse |
||
| Success |
boolean |
Indicates whether the request was successful.
|
true |
| Code |
string |
The return code. A value of 200 indicates that the request was successful. |
200 |
| Message |
string |
The returned message. If the request is successful, "successful" is returned. If the request fails, an error message is returned. |
successful |
| RequestId |
string |
The request ID. |
3E961A5E-C5C6-566D-BFC3-0362A6A52EBA |
Examples
Success response
JSON format
{
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "3E961A5E-C5C6-566D-BFC3-0362A6A52EBA"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.