全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

附加策略到用户组

最近更新时间:2023-11-21 10:02:14

请求参数

名称 类型 必填 长度限制 格式 描述
GroupName string 1-128 [\w+=,.@-]+ 用户组名称,在一个账号下唯一
PolicyKrn string 20-2048 krn:ksc:iam::account-id:policy/policy-name 策略Krn,系统策略或者是账户的策略

返回元素

错误码

错误码 错误信息 HTTP Status Code
PolicyKrnInvalidParameterValue An invalid or out-of-range value was supplied for the 'PolicyKrn' parameter. 400
GroupNameInvalidParameterValue An invalid or out-of-range value was supplied for the 'GroupName' parameter. 400
PolicyAccessDenied The request was rejected because it attempted to attach a 'Policy' that you have no permission. 409
PolicyNoSuchEntity The request was rejected because it referenced 'Policy' that does not exist. The error message describes the entity. 404
GroupNoSuchEntity The request was rejected because it referenced 'Group' that does not exist. The error message describes the entity. 404
GroupPolicyAlreadyExists The request was rejected because it attempted to create a policy that already exists. 409
ServiceFailure The request processing has failed because of an unknown error, exception or failure. 500

示例

请求示例

http://10.146.16.202:8008/?Action=AttachGroupPolicy&Version=2015-11-01&GroupName=admin&PolicyKrn=krn:ksc:iam::ksc:policy/AdministratorAccess

返回示例

xml格式

<AttachGroupPolicyResponse>
    <result>1774</result>
    <ResponseMetadata>
        <RequestId>c2c217a7-71f8-4a78-be57-f8608a1205d7</RequestId>
    </ResponseMetadata>
</AttachGroupPolicyResponse>

json格式

文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈