Queries the details or aggregate information of a configuration checklist.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:SearchInventory |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| NextToken |
string |
No |
The pagination token. |
gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC |
| MaxResults |
integer |
No |
The page size. Valid values: 1 to 100. Default value: 50. |
50 |
| Filter |
array<object> |
No |
The component filter rules. |
|
|
object |
No |
|||
| Value |
array |
No |
The list of component property query values. |
i-bp1cpoxxxxxxxxxxxxxx |
|
string |
No |
The component property query value. |
i-bp1cpoxxxxxxxxxxxxxx |
|
| Operator |
string |
No |
The comparison operator for the component property query value (N ranges from 1 to 5). Valid values:
|
Equal |
| Name |
string |
No |
The property name of the component (N ranges from 1 to 5). Different components have different internal property names. Use GetInventorySchema to query the property names of different components. For example, the ACS:InstanceInformation component has a property named InstanceId, so you set this parameter to ACS:InstanceInformation.InstanceId. |
ACS:InstanceInformation.InstanceId |
| Aggregator |
array |
No |
The aggregators. You can use one or more aggregators to query instance aggregate information. Valid values:
|
ACS:Application.Name |
|
string |
No |
The aggregator. |
ACS:Application.Name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The pagination token. |
gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC |
| RequestId |
string |
The request ID. |
A81E4B2E-6B33-4BAE-9856-55DB7C893E01 |
| MaxResults |
integer |
The page size. |
50 |
| Entities |
array<object> |
The entities. |
|
|
object |
The detailed configuration checklist or aggregate information returned by the component query. |
[ { "ACS:InstanceInformation": { "CaptureTime": "2020-10-13T08:55:06Z", "SchemaVersion": "1.0", "Content": { "PlatformName": "ubuntu", "PlatformVersion": "20.04", "Status": "Running", "InstanceId": "i-bp1cpoxxxxxxxxxxxxxx", "AgentVersion": "v1.5", "ComputerName": "iZbp1cpoxxxw111jcv94drZ", "IpAddress": "192.168.10.245", "AgentName": "oosutil", "PlatformType": "linux" }, "RegionId": "cn-hangzhou" }, "Id": "i-bp1cpoxxxxxxxxxxxxxx" } ]} |
Examples
Success response
JSON format
{
"NextToken": "gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC",
"RequestId": "A81E4B2E-6B33-4BAE-9856-55DB7C893E01",
"MaxResults": 50,
"Entities": [
{
"test": "test",
"test2": 1
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.