文档

UpdateAggregator - 更新账号组

更新时间:

更新账号组的配置。

接口说明

本文将提供一个示例,在账号组ca-dacf86d8314e00eb****中添加一个成员账号,成员账号 ID 为173808452267****,成员账号名称为Tony,成员账号归属为ResourceDirectory

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
config:UpdateAggregatorWrite
  • 全部资源
    *

请求参数

名称类型必填描述示例值
AggregatorIdstring

账号组 ID。

关于如何获取账号组 ID,请参见 ListAggregators

ca-dacf86d8314e00eb****
AggregatorNamestring

账号组名称。

关于如何获取账号组名称,请参见 ListAggregators

Test_Group
Descriptionstring

账号组描述。

关于如何获取账号组描述,请参见 ListAggregators

测试组
AggregatorAccountsobject []

账号组内的成员账号列表。

说明 更新账号组时,该参数可以为空,为空表示不更新成员账号列表。如果您需要更新成员账号列表,则AccountIdAccountNameAccountType必须同时设置。
AccountIdlong

成员账号 ID。

关于如何获取成员账号 ID,请参见 ListAccounts

说明 如果您需要更新成员账号列表,则AccountIdAccountNameAccountType必须同时设置。
173808452267****
AccountNamestring

成员账号名称。

关于如何获取成员账号名称,请参见 ListAccounts

说明 如果您需要更新成员账号列表,则AccountIdAccountNameAccountType必须同时设置。
Tony
AccountTypestring

成员账号归属。仅支持 ResourceDirectory(资源目录)。

说明 如果您需要更新成员账号列表,则AccountIdAccountNameAccountType必须同时设置。
ResourceDirectory
ClientTokenstring

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。

1594295238-f9361358-5843-4294-8d30-b5183fac****

关于公共请求参数的详情,请参见公共参数

返回参数

名称类型描述示例值
object

RequestIdstring

请求 ID。

8195B664-9565-4685-89AC-8B5F04B44B92
AggregatorIdstring

账号组 ID。

ca-dacf86d8314e00eb****

示例

正常返回示例

JSON格式

{
  "RequestId": "8195B664-9565-4685-89AC-8B5F04B44B92",
  "AggregatorId": "ca-dacf86d8314e00eb****"
}

错误码

HTTP status code错误码错误信息描述
400Invalid.AggregatorAccounts.EmptyYou must specify AggregatorAccounts.账号组内的成员账号列表不能为空。
400AggregatorAccountExceedMaxCountThe maximum number of aggregator account is exceeded.账号组内的成员账号数量超出限制。
400AggregatorAccountListDuplicatedThe aggregator account list is duplicated.存在相同成员账号的账号组。
400AggregatorAccountListItemDuplicatedThe aggregator account list item is duplicated.账号组内的成员账号重复。
400AggregatorAlreadyPendingThe aggregator has a pending operation and cannot be updated.如果账号组的状态非“创建完成”,不能被更新。
400AggregatorNameDuplicatedThe aggregator name is duplicated.账号组名称重复。
400DefaultAggregatorDeleteNotSupportThe default aggregator cannot be deleted.默认创建的账号组不能被删除。
400Invalid.AggregatorId.ValueThe specified AggregatorId is invalid.账号组ID不存在或无权限使用该账号组。
400Invalid.AccountType.ValueThe specified AccountType is invalid.账号来源类型不符合要求。
400Invalid.AggregatorAccounts.ValueThe specified AggregatorAccounts is invalid.账号组内成员账号信息错误。
403AggregatorMemberNoPermissionThe aggregator member is not authorized to perform the operation.账号组内的成员账号无权限执行此操作。
404AccountNotExistedYour account does not exist.您的账号不存在。
503ServiceUnavailableThe request has failed due to a temporary failure of the server.服务不可用。

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈