閱讀70 返回首頁    go 人物


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

接口描述

 創建用戶組

請求參數

Action
  • 類型:String
  • 必須:是
  • 描述:操作名稱,取值:CreateGroup
GroupName
  • 類型:String
  • 必須:是
  • 描述:組名稱,最大長度64個字符
  • 格式:^[a-zA-Z0-9-]+$
Comments
  • 類型:String
  • 必須:否
  • 描述:備注信息, 最大長度128個字符。

返回參數

Group

需要的權限

Action

ram:CreateGroup

Resource

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

錯誤信息

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.Comments.Length
  • HTTP Status:400
  • Error Message:The parameter - "Comments" beyond the length limit.
EntityAlreadyExists.Group
  • HTTP Status:409
  • Error Message:The group does already EXIST.
LimitExceeded.Group
  • HTTP Status:409
  • Error Message:The count of groups beyond the current limits.

操作示例

請求示例

https://ram.aliyuncs.com/?Action=CreateGroup
&GroupName=Dev-Team
&Comments=開發團隊
&<公共請求參數>

返回示例

XML格式

<CreateGroupResponse>
    <RequestId>D3F0679E-9757-95DB-AF2D-04D5188C69C5</RequestId>
    <Group>
        <GroupName>Dev-Team</GroupName>
        <Comments>開發團隊</Comments>
        <CreateDate>2015-01-23T12:33:18Z</CreateDate>
    </Group>
</CreateGroupResponse>

JSON格式

{
    "RequestId": "D3F0679E-9757-95DB-AF2D-04D5188C69C5",
    "Group": {
        "GroupName": "Dev-Team",
        "Comments": "開發團隊",
        "CreateDate": "2015-01-23T12:33:18Z"
    }
}

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

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