参数名称 | 类型 | 必填 | 描述 |
---|
Action | String | 是 | 公共参数,本接口取值:AddUserToGroup。 |
Version | String | 是 | 公共参数,本接口取值:2015-11-01。 |
GroupName | String | 是 | 用户组名称 |
UserName | String | 是 | 要添加的IAM子用户名称 |
参数名称 | 类型 | 描述 |
---|
result | Boolean | 示例值:true |
RequestId | String | 示例值:6c897139-3904-4776-a056-451e4a597494 |
JSON格式
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码
错误码 | 错误信息 | Http状态码 | 描述 |
---|
GroupNameInvalidParameterValue | An invalid or out-of-range value was supplied for the ‘GroupName’ parameter. | 400 | |
UsernameInvalidParameterValue | An invalid or out-of-range value was supplied for the ‘Username’ parameter. | 400 | |
GroupNoSuchEntity | The request was rejected because it referenced ‘Group’ that does not exist. The error message describes the entity. | 404 | |
UserNoSuchEntity | The request was rejected because it referenced ‘User’ that does not exist. | 404 | |
UserGroupRelationAlreadyExists | The request was rejected because it attempted to add user to a group that had joined. | 409 |
纯净模式