接口请求域名: cam.intl.tencentcloudapi.com 。
本接口(AttachGroupPolicy)可用于绑定策略到用户组。
默认接口请求频率限制:10次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:AttachGroupPolicy。 |
| Version | 是 | String | 公共参数,本接口取值:2019-01-16。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| PolicyId | 是 | Integer | 策略 id |
| AttachGroupId | 是 | Integer | 用户组 id |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
绑定策略ID为524497的策略到组ID为3449的用户组
https://cam.intl.tencentcloudapi.com/?Action=AttachGroupPolicy
&PolicyId=524497
&AttachGroupId=3449
&<公共请求参数>
{
"Response": {
"RequestId": "1a21f666-d00e-4df8-92f7-7121f9012e43"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| FailedOperation.OrganizationPolicyOperateError | 集团策略不允许操作。 |
| FailedOperation.PolicyFull | 用户策略数超过上限。 |
| InternalError.SystemError | 内部错误。 |
| InvalidParameter.AttachmentFull | principal字段的授权对象关联策略数已达到上限。 |
| InvalidParameter.ParamError | 非法入参。 |
| InvalidParameter.PolicyIdError | 输入参数PolicyId不合法。 |
| InvalidParameter.PolicyIdNotExist | 策略ID不存在。 |
| InvalidParameter.UserNotExist | 用户对象不存在。 |
| ResourceNotFound.GroupNotExist | 用户组不存在。 |
| ResourceNotFound.PolicyIdNotFound | PolicyId指定的资源不存在。 |
| ResourceNotFound.UserNotExist | 用户不存在。 |
文档反馈