All Products
Search
Document Center

Cloud Config:UpdateAggregator

Last Updated:Dec 12, 2024

The management account or delegated administrator account of a resource directory can be used to modify the name and description of an account group. The management account or delegated administrator account can also be used to add or remove members from the account group.

Operation description

This topic provides an example on how to add a member to the account group ca-dacf86d8314e00eb****. The member ID is 173808452267****, the member name is Tony, and the member belongs to the resource directory ResourceDirectory.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
config:UpdateAggregatorupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AggregatorIdstringYes

The ID of the account group.

For more information about how to obtain the ID of an account group, see ListAggregators .

ca-dacf86d8314e00eb****
AggregatorNamestringNo

The name of the account group.

For more information about how to obtain the name of an account group, see ListAggregators .

Test_Group
DescriptionstringNo

The description of the account group.

For more information about how to obtain the description of an account group, see ListAggregators .

Test_Aggregator_Description
AggregatorAccountsarray<object>No

The members 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 list is not updated. If you want to update the member list, you must configure both the AccountId and AccountType parameters.
objectNo
AccountIdlongNo

The ID of the member.

For more information about how to obtain the ID of a member, see ListAccounts .

Note If you want to update the member list, you must configure both the AccountId and AccountType parameters.
173808452267****
AccountNamestringNo

The display name of the member.

For more information about how to obtain the name of a member, see ListAccounts .

Note If you want to update the member list, you must configure both the AccountId and AccountType parameters.
Tony
AccountTypestringNo

The resource directory to which the member belongs. Valid value: ResourceDirectory. ResourceDirectory indicates that the member belongs to a resource directory.

Note If you want to update the member list, you must configure both the AccountId and AccountType parameters.
ResourceDirectory
ClientTokenstringNo

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.

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

For information about common request parameters, see Common parameters.

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

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

The ID of the account group.

ca-dacf86d8314e00eb****

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400Invalid.AggregatorAccounts.EmptyYou must specify AggregatorAccounts.You must specify AggregatorAccounts.
400AggregatorAccountExceedMaxCountThe maximum number of aggregator account is exceeded.The maximum number of aggregator account is exceeded.
400AggregatorAccountListDuplicatedThe aggregator account list is duplicated.The aggregator account list is duplicated.
400AggregatorAccountListItemDuplicatedThe aggregator account list item is duplicated.The aggregator account list item is duplicated.
400AggregatorAlreadyPendingThe aggregator has a pending operation and cannot be updated.The aggregator has a pending operation and cannot be updated.
400AggregatorNameDuplicatedThe aggregator name is duplicated.The aggregator name is duplicated.
400DefaultAggregatorDeleteNotSupportThe default aggregator cannot be deleted.-
400Invalid.AggregatorId.ValueThe specified AggregatorId is invalid.The specified aggregator ID does not exist or you are not authorized to use the aggregator.
400Invalid.AccountType.ValueThe specified AccountType is invalid.The specified account type is invalid.
400Invalid.AggregatorAccounts.ValueThe specified AggregatorAccounts is invalid.The specified AggregatorAccounts is invalid.
403AggregatorMemberNoPermissionThe aggregator member is not authorized to perform the operation.The 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.The request has failed due to a temporary failure of the server.

For a list of error codes, visit the Service error codes.