参数名称 | 类型 | 必填 | 描述 |
---|
Action | String | 是 | 公共参数,本接口取值:AttachGroupPolicy。 |
Version | String | 是 | 公共参数,本接口取值:2015-11-01。 |
GroupName | String | 是 | 用户组名称 |
PolicyKrn | String | 是 | 要附加的策略krn |
参数名称 | 类型 | 描述 |
---|
result | Int | 示例值:82239 |
RequestId | String | 示例值:60cf6055-81ee-48d1-9b54-a6d1624a984d |
JSON格式
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码
错误码 | 错误信息 | Http状态码 | 描述 |
---|
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 |
纯净模式