Modifies the configurations of an account group.
The sample request in this topic shows you how to add a member account to the account
group whose ID is ca-dacf86d8314e00eb****
. The member account ID is 173808452267****
and the member account name is Tony
. The member account belongs to ResourceDirectory
.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateAggregator |
The operation that you want to perform. Set the value to UpdateAggregator. |
AggregatorId | String | Yes | ca-dacf86d8314e00eb**** |
The ID of the account group. For more information about how to obtain the ID of an account group, see ListAggregators. |
AggregatorName | String | No | Test_Group |
The name of the account group. For more information about how to obtain the name of an account group, see ListAggregators. |
Description | String | No | Test account group |
The description of the account group. For more information about how to obtain the description of an account group, see ListAggregators. |
AggregatorAccounts | Array | No |
The information about the member accounts in the account group. Note When you modify the configurations of an account group, this parameter can be left
empty. In this case, the member account list is not updated. If you want to update
the member account list, you must set the
AccountId , AccountName and AccountType parameters.
|
|
AccountId | Long | No | 173808452267**** |
The member account ID, which indicates the Alibaba Cloud account ID of the member account. For more information about how to obtain the ID of a member account, see ListAccounts. Note If you want to update the member account list, you must set the
AccountId , AccountName and AccountType parameters.
|
AccountName | String | No | Tony |
The member account name, which indicates the name of the Alibaba Cloud account that corresponds to the member account. For more information about how to obtain the name of a member account, see ListAccounts. Note If you want to update the member account list, you must set the
AccountId , AccountName and AccountType parameters.
|
AccountType | String | No | ResourceDirectory |
The affiliation of the member account. You can set this parameter to only ResourceDirectory. Note If you want to update the member account list, you must set the
AccountId , AccountName and AccountType parameters.
|
ClientToken | String | No | 1594295238-f9361358-5843-4294-8d30-b5183fac**** |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
For information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 8195B664-9565-4685-89AC-8B5F04B44B92 |
The ID of the request. |
AggregatorId | String | ca-dacf86d8314e00eb**** |
The ID of the account group. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpdateAggregator
&AggregatorId=ca-dacf86d8314e00eb****
&AggregatorAccounts=[{"AccountId":"173808452267****","AccountName":"Tony","AccountType":"ResourceDirectory"}]
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateAggregatorResponse>
<RequestId>8195B664-9565-4685-89AC-8B5F04B44B92</RequestId>
<AggregatorId>ca-dacf86d8314e00eb****</AggregatorId>
</UpdateAggregatorResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "8195B664-9565-4685-89AC-8B5F04B44B92",
"AggregatorId" : "ca-dacf86d8314e00eb****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Invalid.AggregatorAccounts.Empty | You must specify AggregatorAccounts. | The error message returned because no member account is specified. |
400 | AggregatorAccountExceedMaxCount | The maximum number of aggregator account is exceeded. | The error message returned because the number of specified member accounts exceeds the upper limit. |
400 | AggregatorAccountListDuplicated | The aggregator account list is duplicated. | The error message returned because an existing account group contains the same member accounts that you specify for this account group. |
400 | AggregatorAccountListItemDuplicated | The aggregator account list item is duplicated. | The error message returned because two or more specified member accounts are duplicated. |
400 | AggregatorAlreadyPending | The aggregator has a pending operation and cannot be updated. | The error message returned because the creation of the account group is not complete and it cannot be modified. |
400 | AggregatorNameDuplicated | The aggregator name is duplicated. | The error message returned because the specified group name already exists. |
400 | DefaultAggregatorDeleteNotSupport | The default aggregator cannot be deleted. | The error message returned because the default account group cannot be deleted. |
400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | The error message returned because the specified account group ID does not exist or you are not authorized to use the account group. |
400 | Invalid.AccountType.Value | The specified AccountType is invalid. | The error message returned because the AccountType parameter in the request is invalid. |
400 | Invalid.AggregatorAccounts.Value | The specified AggregatorAccounts is invalid. | The error message returned because one or more specified member accounts are invalid. |
403 | AggregatorMemberNoPermission | The aggregator member is not authorized to perform the operation. | The error message returned because you are using a member account and you are not authorized to perform the specified operation. |
404 | AccountNotExisted | Your account does not exist. | The error message returned because your account does not exist. |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | The error message returned because the service is unavailable. |
For a list of error codes, visit the API Error Center.