在庫に関する詳細情報または集計情報をクエリします。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
oos:SearchInventory |
get |
*All Resource
|
|
なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
リージョン ID。 |
cn-hangzhou |
| NextToken |
string |
任意 |
次のページの結果を取得するために使用されるトークン。 |
gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC |
| MaxResults |
integer |
任意 |
ページごとに返すエントリ数。有効な値: 1~100。デフォルト値: 50。 |
50 |
| Filter |
array<object> |
任意 |
コンポーネントのフィルタールール。 |
|
|
object |
任意 |
|||
| Value |
array |
任意 |
A list of values for the component property query. |
i-bp1cpoxxxxxxxxxxxxxx |
|
string |
任意 |
A value for the component property query. |
i-bp1cpoxxxxxxxxxxxxxx |
|
| Operator |
string |
任意 |
The comparison operator for the property value. You can specify up to five filters. Valid values:
|
Equal |
| Name |
string |
任意 |
The name of the component property. You can specify up to five filters. Property names vary for different components. Call the GetInventorySchema operation to query the property names of different components. For example, the ACS:InstanceInformation component has the InstanceId property. For this component, set this parameter to ACS:InstanceInformation.InstanceId. |
ACS:InstanceInformation.InstanceId |
| Aggregator |
array |
任意 |
アグリゲーター。1 つ以上のアグリゲーターを使用して、インスタンスに関する集計情報をクエリできます。 有効な値:
|
ACS:Application.Name |
|
string |
任意 |
The aggregator. |
ACS:Application.Name |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| NextToken |
string |
The token that is used to retrieve the next page of results. |
gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC |
| RequestId |
string |
The request ID. |
A81E4B2E-6B33-4BAE-9856-55DB7C893E01 |
| MaxResults |
integer |
The number of entries returned on each page. |
50 |
| Entities |
array<object> |
The entities. |
|
|
object |
The detailed inventory or aggregated information about the component. |
[ { "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" } ]} |
例
成功レスポンス
JSONJSON
{
"NextToken": "gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC",
"RequestId": "A81E4B2E-6B33-4BAE-9856-55DB7C893E01",
"MaxResults": 50,
"Entities": [
{
"test": "test",
"test2": 1
}
]
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。