You need to enable JavaScript to run this app.
导航

AttachServiceControlPolicy - 绑定管控策略

最近更新时间2024.01.11 17:42:36

首次发布时间2024.01.11 17:42:36

绑定管控策略

请求参数

名称
类型
是否必填
示例值
描述
Action
String

AttachServiceControlPolicy

要执行的操作,取值:AttachServiceControlPolicy

Version
String

2022-01-01

API的版本,取值:2022-01-01

TargetType
Integer

目标类型 1. OU 2. Account

PolicyID
String

策略ID

TargetID
String

绑定策略的目标节点ID

响应数据

名称
类型
示例值
描述
暂无数据

示例

请求

响应

错误码

下表提供了该接口业务逻辑相关的错误码。公共错误码请参见公共错误码

HttpCode
错误码
错误信息
描述
400
TargetNotFoundException
所选绑定目标不存在

所选绑定目标不存在

400
InvalidParam
The parameter %v[%v] is invalid.

参数不合法

500
InternalError
Unknown internal error: %v

未知错误,根据错误信息判断详情

400
PermissionError
No permission to perform action[%s] on resource %s

无权限,没有对该资源进行该操作的权限

400
ConcurrentException
concurrent request exception

并发请求异常

400
DuplicatePolicyAttachmentException
当前策略已绑定在所选目标上

当前策略已绑定在所选目标上

400
PolicyNotFoundException
该策略不存在

该策略不存在

404
RecordNotExists
record %s not exists

记录不存在

400
PolicyTypeNotEnabledException
管控策略功能已关闭

管控策略功能已关闭

400
ReachedQuotaLimit
%s %d reached quota limit %d

已超出资源限额