閱讀686 返回首頁    go 英雄聯盟


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

接口描述

 更新用戶組信息

請求參數

Action
  • 類型:String
  • 必須:是
  • 描述:操作名稱,取值:UpdateGroup

GroupName

  • 類型:String
  • 必須:是
  • 描述:指定組名稱
  • 格式:^[a-zA-Z0-9-]+$

NewGroupName

  • 類型:String
  • 必須:否
  • 描述:新的組名
  • 格式:^[a-zA-Z0-9-]+$

NewComments

  • 類型:String
  • 必須:否
  • 描述:新的備注信息, 最大長度128個字符。

返回參數

Group

需要的權限

Action

ram:UpdateGroup

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.
InvalidParameter.NewGroupName.InvalidChars
  • HTTP Status:400
  • Error Message:The parameter - "NewGroupName" contains invalid chars.
InvalidParameter.NewGroupName.Length
  • HTTP Status:400
  • Error Message:The parameter - "NewGroupName" beyond the length limit.
InvalidParameter.NewComments.Length
  • HTTP Status:400
  • Error Message:The parameter - "NewComments" beyond the length limit.
EntityNotExist.Group
  • HTTP Status:404
  • Error Message:The group does not exist.
EntityAlreadyExists.Group
  • HTTP Status:409
  • Error Message:The group does already EXIST.

操作示例

請求示例

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

返回示例

XML格式

<UpdateGroupResponse>
    <RequestId>EC6647CC-0A36-EC7A-BA72-CC81BF3DE182</RequestId>
    <Group>
        <GroupName>NewDev-Team</GroupName>
        <Comments>開發團隊</Comments>
        <CreateDate>2015-01-23T12:33:18Z</CreateDate>
        <UpdateDate>2015-01-23T12:33:18Z</UpdateDate>
    </Group>
</UpdateGroupResponse>

JSON格式

{
    "RequestId": "EC6647CC-0A36-EC7A-BA72-CC81BF3DE182",
    "Group": {
        "GroupName": "NewDev-Team",
        "Comments": "開發團隊",
        "CreateDate" : "2015-01-23T12:33:18Z",
        "UpdateDate" : "2015-01-23T12:33:18Z"
    }
}

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

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