Updating a Resource Aggregator
Function
This API is used to update a resource aggregator.
Calling Method
For details, see Calling APIs.
URI
PUT /v1/resource-manager/domains/{domain_id}/aggregators/{aggregator_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| domain_id | Yes | String | Specifies tags. Maximum: 36 |
| aggregator_id | Yes | String | Specifies the resource aggregator ID. Maximum: 32 |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Security-Token | No | String | Security token (session token) for temporary security credentials. This parameter is mandatory when you make an API call using temporary security credentials. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| aggregator_name | Yes | String | Specifies the name of a resource aggregator. Minimum: 1 Maximum: 64 |
| aggregator_type | Yes | String | Specifies the resource aggregator type, which can be ACCOUNT or ORGANIZATION. |
| account_aggregation_sources | No | AccountAggregationSource object | Specifies the source account of the aggregated data. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| aggregator_name | String | Specifies the name of a resource aggregator. |
| aggregator_id | String | Specifies the resource aggregator ID. |
| aggregator_urn | String | Specifies the resource aggregator identifier. |
| aggregator_type | String | Specifies the resource aggregator type. |
| account_aggregation_sources | AccountAggregationSource object | Specifies the source account of the aggregated data. |
| updated_at | String | Specifies the time when the resource aggregator was updated. |
| created_at | String | Specifies the time when the resource aggregator was created. |
| Parameter | Type | Description |
|---|---|---|
| domain_ids | Array of strings | Specifies the account list. Minimum: 1 Maximum: 36 Array Length: 1 - 30 |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Example Requests
Updating a resource aggregator
PUT https://{endpoint}/v1/resource-manager/domains/{domain_id}/aggregators/{aggregator_id}
{
"aggregator_name" : "example_aggregator",
"aggregator_type" : "ACCOUNT",
"account_aggregation_sources" : {
"domain_ids" : [ "3fd23817bd85480e8dc4f520075de348" ]
}
} Example Responses
Status code: 200
Operation succeeded.
{
"aggregator_name" : "example_aggregator",
"aggregator_id" : "7ca3447830bd49c9b630a99680eaf90f",
"aggregator_urn" : "rms::e74e043fab784a45ad88f5ef6a4bcffc:aggregationAggregator:7ca3447830bd49c9b630a99680eaf90f",
"aggregator_type" : "ACCOUNT",
"account_aggregation_sources" : {
"domain_ids" : [ "3fd23817bd85480e8dc4f520075de348" ]
},
"updated_at" : "2020-01-18T02:49:12.465Z",
"created_at" : "2020-01-18T02:49:12.465Z"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Operation succeeded. |
| 400 | Invalid parameters. |
| 403 | Authentication failed or you do not have the operation permissions. |
| 500 | Server error. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot