Retrieves the most recently generated resource inventory from the Global Resources page for the specified account group.
Operation description
Prerequisites
Call the GenerateAggregateResourceInventory operation to generate a resource inventory before you call this operation to obtain the download URL.
Description
The following example retrieves the most recently generated resource inventory for the account group ca-a91d626622af0035****.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:GetAggregateResourceInventory |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AggregatorId |
string |
Yes |
The ID of the account group. For more information about how to obtain the ID of an account group, see ListAggregators. |
ca-a91d626622af0035**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
1A6D3604-EF1A-5798-A576-2A5FB855493C |
| ResourceInventory |
object |
The resource inventory details. |
|
| DownloadUrl |
string |
The download URL of the resource inventory. |
https://cloud-config-compliance-report.oss-cn-shanghai.aliyuncs.com/RESOURCE_INVENTORY/100931896542****/100931896542****-RESOURCE_INVENTORY-202306251432.csv?Expires=1687678374&OSSAccessKeyId=STS.NUQ2xAAne87hVWG8WGx5f***&Signature=xudDN69simKLcCOguj5%2FgrWIw%2FM%3D&security-token=CAISiQJ1q6Ft5B2yfSjIr5bkecL1r**** |
| Status |
string |
The generation status of the resource inventory. Valid values:
|
COMPLETE |
| ResourceInventoryGenerateTime |
integer |
The timestamp when the resource inventory was generated. Unit: milliseconds. |
1687674774123 |
Examples
Success response
JSON format
{
"RequestId": "1A6D3604-EF1A-5798-A576-2A5FB855493C",
"ResourceInventory": {
"DownloadUrl": "https://cloud-config-compliance-report.oss-cn-shanghai.aliyuncs.com/RESOURCE_INVENTORY/100931896542****/100931896542****-RESOURCE_INVENTORY-202306251432.csv?Expires=1687678374&OSSAccessKeyId=STS.NUQ2xAAne87hVWG8WGx5f***&Signature=xudDN69simKLcCOguj5%2FgrWIw%2FM%3D&security-token=CAISiQJ1q6Ft5B2yfSjIr5bkecL1r****",
"Status": "COMPLETE",
"ResourceInventoryGenerateTime": 1687674774123
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.