调用DetachControlPolicy解绑管控策略。
接口说明
解绑成功后,原绑定的资源夹或成员将会立即失去管控策略的管控。请务必确定解绑操作的结果是符合预期的,以免影响您的业务正常运行。
系统策略和自定义管控策略都可以解绑,但资源夹或成员上绑定的最后一条管控策略不允许解绑。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
resourcemanager:DetachControlPolicy |
update |
*Account
*ControlPolicy
*Folder
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| PolicyId |
string |
是 |
管控策略 ID。 |
cp-jExXAqIYkwHN**** |
| TargetId |
string |
是 |
目标节点。取值:
|
fd-ZDNPiT**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
9EA4F962-1A2E-4AFE-BE0C-B14736FC46CC |
示例
正常返回示例
JSON格式
{
"RequestId": "9EA4F962-1A2E-4AFE-BE0C-B14736FC46CC"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | NotSupport.DetachLastControlPolicy | It is not detach the last control policy on the target node. | 不允许解绑目标节点上的最后一个管控策略。 |
| 400 | NotSupport.DetachLastResourceControlPolicy | It is not supported to detach the last resource control policy. | 不允许解绑目标节点上的最后一个资源管控策略。 |
| 400 | NotSupport.DetachSystemResourceControlPolicy | It is not supported to detach system resource control policy. | 不允许解绑目标节点上的系统资源管控策略。 |
| 404 | EntityNotExists.Target | The specified target does not exist in the resource directory. | 关联目标在资源目录中不存在。 |
| 404 | EntityNotExists.ResourceControlPolicy | The specified resource control policy does not exist. | 资源管控策略不存在。 |
| 404 | EntityNotExists.ResourceControlPolicyAttachment | The specified resource control policy attachment does not exist. | 指定目标上的指定资源管控策略不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。