Authorizing a Resource Aggregator Account
Function
This API is used to authorize a resource aggregator account to collect data from source accounts.
Calling Method
For details, see Calling APIs.
URI
PUT /v1/resource-manager/domains/{domain_id}/aggregators/aggregation-authorization
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| domain_id | Yes | String | Specifies tags. Maximum: 36 |
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 |
|---|---|---|---|
| authorized_account_id | Yes | String | Specifies the ID of the resource aggregator account to be authorized. Minimum: 1 Maximum: 36 |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| aggregation_authorization_urn | String | Specifies the authorization identifier of the resource aggregator account. |
| authorized_account_id | String | Specifies the ID of the authorized resource aggregator account. |
| created_at | String | Specifies the time when the resource aggregator account was authorized. |
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
Authorizing a resource aggregator account
PUT https://{endpoint}/v1/resource-manager/domains/{domain_id}/aggregators/aggregation-authorization
{
"authorized_account_id" : "3fd23817bd85480e8dc4f520075de348"
} Example Responses
Status code: 200
Operation succeeded.
{
"aggregation_authorization_urn" : "rms::e74e043fab784a45ad88f5ef6a4bcffc:aggregationAuthorization:fb51a91e798a4beb831c9be365aba4db",
"authorized_account_id" : "3fd23817bd85480e8dc4f520075de348",
"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