閱讀496 返回首頁    go iPhone_iPad_Mac_apple


DeleteGroup__組管理接口_RAM API文檔_訪問控製-阿裏雲

接口描述

 刪除指定的組

  • 刪除組前,需要保證組不擁有任何授權策略(Policy)
  • 刪除組前,需要保證組不擁有任何用戶(User)

請求參數

Action
  • 類型:String
  • 必須:是
  • 描述:操作名稱,取值:DeleteGroup
GroupName
  • 類型:String
  • 必須:是
  • 描述:指定組名。例:dev
  • 格式:^[a-zA-Z0-9-]+$

返回參數

  隻有公共返回參數,詳見公共返回參數

需要的權限

Action

ram:DeleteGroup

Resource

acs:ram:*:${AccountId}:group/${GroupName}

錯誤信息

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.
EntityNotExist.Group
  • HTTP Status:404
  • Error Message:The group does not exist.
DeleteConflict.Group.User
  • HTTP Status:409
  • Error Message:The group CAN NOT has any user member while deleting the group.
DeleteConflict.Group.Policy
  • HTTP Status:409
  • Error Message:The entity CAN NOT has any attached policy while deleting the group.

操作示例

請求示例

https://ram.aliyuncs.com/?Action=DeleteGroup
&GroupName=Dev-Team
&<公共請求參數>

返回示例

XML格式

<DeleteGroupResponse>
    <RequestId>FCF40AB5-881C-A0F9-334C-B0AD423AA69D</RequestId>
</DeleteGroupResponse>

JSON格式

{
    "RequestId": "FCF40AB5-881C-A0F9-334C-B0AD423AA69D"
}

最後更新:2016-11-23 17:16:05

  上一篇:go ListGroups__組管理接口_RAM API文檔_訪問控製-阿裏雲
  下一篇:go AddUserToGroup__組管理接口_RAM API文檔_訪問控製-阿裏雲