全部文档
当前文档

暂无内容

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

文档中心

附加策略到用户组

请求参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数
参数名称
类型
必填
描述
Action String
公共参数,本接口取值:AttachGroupPolicy。
Version String
公共参数,本接口取值:2015-11-01。
GroupName String

用户组名称

PolicyKrn String

要附加的策略krn

返回参数

参数名称
类型
描述
result Int
示例值:82239
RequestId String
示例值:60cf6055-81ee-48d1-9b54-a6d1624a984d

请求示例

curl -X GET|POST
'http://iam.api.ksyun.com/?Action=AttachGroupPolicy&Version=2015-11-01'
-H 'authorization: xxx, SignedHeaders=content-type;host;x-amz-date, Signature=xxx'
-H 'cache-control: no-cache'
-H 'content-type: application/x-www-form-urlencoded'
-H 'host: iam.api.ksyun.com'
-H 'x-amz-date: 20170720T022802Z'
-d 'GroupName=xxx&PolicyKrn=xxx'

返回示例

JSON格式

{
"result":82239,
"RequestId":"60cf6055-81ee-48d1-9b54-a6d1624a984d"
}

错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码
错误信息
Http状态码
描述
PolicyKrnInvalidParameterValueAn invalid or out-of-range value was supplied for the ‘PolicyKrn’ parameter.400
GroupNameInvalidParameterValueAn invalid or out-of-range value was supplied for the ‘GroupName’ parameter.400
PolicyAccessDeniedThe request was rejected because it attempted to attach a ‘Policy’ that you have no permission.409
PolicyNoSuchEntityThe request was rejected because it referenced ‘Policy’ that does not exist. The error message describes the entity.404
GroupNoSuchEntityThe request was rejected because it referenced ‘Group’ that does not exist. The error message describes the entity.404
GroupPolicyAlreadyExistsThe request was rejected because it attempted to create a policy that already exists.409
纯净模式常规模式

纯净模式

点击可全屏预览文档内容