资源目录中的管理账号或委派管理员账号可以修改账号组的名称和描述,也可以添加或移除成员。
接口说明
本文将提供一个示例,在账号组ca-dacf86d8314e00eb****中添加一个成员,成员 ID 为173808452267****,成员名称为Tony,成员归属为ResourceDirectory。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
config:UpdateAggregator |
update |
*Aggregator
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| AggregatorId |
string |
是 |
账号组 ID。 关于如何获取账号组 ID,请参见 ListAggregators 。 |
ca-dacf86d8314e00eb**** |
| AggregatorName |
string |
否 |
账号组名称。 关于如何获取账号组名称,请参见 ListAggregators 。 |
Test_Group |
| FolderId |
string |
否 |
FolderId, 支持半角逗号分隔的多值输入 |
fd-brHdgv****,fd-brHdgk**** |
| Description |
string |
否 |
账号组描述。 关于如何获取账号组描述,请参见 ListAggregators 。 |
测试组 |
| AggregatorAccounts |
array<object> |
否 |
账号组内的成员列表。 说明
更新账号组时,该参数可以为空,为空表示不更新成员列表。如果您需要更新成员列表,则 |
|
|
object |
否 |
无 |
||
| AccountId |
integer |
否 |
成员 ID。 关于如何获取成员 ID,请参见 ListAccounts 。 说明
如果您需要更新成员列表,则 |
173808452267**** |
| AccountName |
string |
否 |
成员名称。 关于如何获取成员名称,请参见 ListAccounts 。 说明
如果您需要更新成员列表,则 |
Tony |
| AccountType |
string |
否 |
成员归属。仅支持 ResourceDirectory(资源目录)。 说明
如果您需要更新成员列表,则 |
ResourceDirectory |
| ClientToken |
string |
否 |
保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。 |
1594295238-f9361358-5843-4294-8d30-b5183fac**** |
Tag
deprecated
|
array<object> |
否 |
资源的标签。该入参已弃用,请忽略,传入不会生效。 最多支持绑定 20 个标签。 |
|
|
object |
否 |
资源的标签。 最多支持绑定 20 个标签。 |
||
| Key |
string |
否 |
实例的标签键。N 的取值范围:1~20。一旦输入该值,则不允许为空字符串。 最多支持 64 个字符,不能以 |
key-1 |
| Value |
string |
否 |
资源的标签值。N 的取值范围:1~20。一旦传入该值,可以为空字符串。最多支持 128 个字符,不能以 |
value-1 |
关于公共请求参数的详情,请参见公共参数。
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
无 |
||
| RequestId |
string |
请求 ID。 |
8195B664-9565-4685-89AC-8B5F04B44B92 |
| AggregatorId |
string |
账号组 ID。 |
ca-dacf86d8314e00eb**** |
示例
正常返回示例
JSON格式
{
"RequestId": "8195B664-9565-4685-89AC-8B5F04B44B92",
"AggregatorId": "ca-dacf86d8314e00eb****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Invalid.AggregatorAccounts.Empty | You must specify AggregatorAccounts. | 账号组内的成员账号列表不能为空。 |
| 400 | AggregatorAccountExceedMaxCount | The maximum number of aggregator account is exceeded. | 账号组内的成员账号数量超出限制。 |
| 400 | AggregatorAccountListDuplicated | The aggregator account list is duplicated. | 存在相同成员账号的账号组。 |
| 400 | AggregatorAccountListItemDuplicated | The aggregator account list item is duplicated. | 账号组内的成员账号重复。 |
| 400 | AggregatorAlreadyPending | The aggregator has a pending operation and cannot be updated. | 如果账号组的状态非“创建完成”,不能被更新。 |
| 400 | AggregatorNameDuplicated | The aggregator name is duplicated. | 账号组名称重复。 |
| 400 | DefaultAggregatorDeleteNotSupport | The default aggregator cannot be deleted. | |
| 400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | 账号组ID不存在或无权限使用该账号组。 |
| 400 | Invalid.AccountType.Value | The specified AccountType is invalid. | 账号来源类型不符合要求。 |
| 400 | Invalid.AggregatorAccounts.Value | The specified AggregatorAccounts is invalid. | 账号组内成员账号信息错误。 |
| 403 | AggregatorMemberNoPermission | The aggregator member is not authorized to perform the operation. | 账号组内的成员账号无权限执行此操作。 |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 服务不可用。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。