从用户组删除用户

最近更新时间:2017-12-21 21:17:58

从用户组删除用户(RemoveUserFromGroup)

描述

请求参数

名称 类型 必填 长度限制 格式 描述
GroupName string 1-128 [\w+=,.@-]+ 用户组名称
UserName string 1-128 [\w+=,.@-]+ 用户名称

返回元素

错误码

错误码 错误信息 HTTP Status Code
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
UserGroupRelationNoSuchEntity The request was rejected because the user does not belong to the group. 404
ServiceFailure The request processing has failed because of an unknown error, exception or failure. 500

示例

请求示例
http://10.146.16.202:8008/?Action=RemoveUserFromGroup&Version=2015-11-01&GroupName=admin&UserName=iam
返回示例

xml格式

<RemoveUserFromGroupResponse>
    <result>1</result>
    <ResponseMetadata>
        <RequestId>302bac0c-ed89-4e02-b641-1ec4c9d8d953</RequestId>
    </ResponseMetadata>
</RemoveUserFromGroupResponse>

json格式

金山云,开启您的云计算之旅

立即注册