接口描述

为组撤销指定的授权

请求参数

Action
  • 类型:String
  • 必须:是
  • 描述:系统规定参数,取值:DetachPolicyFromGroup
PolicyType
  • 类型:String
  • 必须:是
  • 描述:指定Policy的类型, 取值System或Custom
PolicyName
  • 类型:String
  • 必须:是
  • 描述:指定授权策略名称
GroupName
  • 类型:String
  • 必须:是
  • 描述:指定组名。例:dev

返回参数

只有公共返回参数,详见公共参数

需要的权限

Action
ram:DetachPolicyFromGroup
Resource
acs:ram:*:${AccountId}:group/${GroupName}

acs:ram:*:${AccountId} or system:policy/${PolicyName}

错误信息

InvalidParameter.PolicyType
  • HTTP Status:400
  • Error Message:The parameter - "PolicyType" is incorrect.
InvalidParameter.GroupName.InvalidChars
  • HTTP Status:400
  • Error Message:The parameter - "GroupName" contains invalid chars.
InvalidParameter.GroupName.Length
  • HTTP Status:400
  • Error Message:The parameter - "GroupName" beyond the length limit.
InvalidParameter.PolicyName.InvalidChars
  • HTTP Status:400
  • Error Message:The parameter - "PolicyNam" contains invalid chars.
InvalidParameter.PolicyName.Length
  • HTTP Status:400
  • Error Message:The parameter - "PolicyName" beyond the length limit.
EntityNotExist.Group
  • HTTP Status:404
  • Error Message:The group does not exist.
EntityNotExist.Policy
  • HTTP Status:404
  • Error Message:The policy does not exist.
EntityNotExist.Group.Policy
  • HTTP Status:404
  • Error Message:The indicate policy attached to the group does not exist.

操作示例

请求示例

https://ram.aliyuncs.com/?Action=DetachPolicyFromGroup
&PolicyType=Custom
&PolicyName=OSS-Administrator
&GroupName=dev
&<公共请求参数>

返回示例

  • XML格式
    <DetachPolicyFromGroupResponse>
        <RequestId>697852FB-50D7-44D9-9774-530C31EAC572</RequestId>
    </DetachPolicyFromGroupResponse>
  • JSON格式
    {
        "RequestId": "697852FB-50D7-44D9-9774-530C31EAC572"
    }