リソースカテゴリのリストを取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
bdrc:ListResourceCategories |
none |
*All Resource
|
なし | なし |
リクエスト構文
GET /api/v1/resource-categories/list HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| MaxResults |
integer |
任意 |
このリクエストで返すレコードの最大値。 |
10 |
| NextToken |
string |
任意 |
ページネーショントークン。次のページに返すエントリがさらにある場合、ページネーショントークンが返されます。このパラメーターがデータを返す場合、次のページが存在します。返された NextToken をリクエストパラメーターとして使用して、次のページのデータを取得します。値が Null になるまで繰り返します。Null はすべてのデータが取得されたことを示します。 |
cae**********699 |
| ResourceCategoryId |
string |
任意 |
rc-123****7890 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Data |
object |
The returned data. |
|
| Content |
array<object> |
The collection of records returned in this request. |
|
|
array<object> |
|||
| ResourceCategoryId |
string |
rc-123***7890 |
|
| ResourceCategoryName |
string |
My***ResourceCategory |
|
| ResourceCategoryType |
string |
CUSTOM |
|
| ProductType |
string |
ecs |
|
| ResourceType |
string |
ACS::ECS::Instance |
|
| ResourceMatcher |
string |
{\"type\":\"BOOL\",\"operator\":\"AND\",\"values\":[{\"type\":\"TAG\",\"key\":\"createdBy\",\"operator\":\"EQUAL\",\"values\":[\"me\"]}]} |
|
| ResourceCount |
array<object> |
||
|
object |
|||
| ResourceType |
string |
ACS::ECS::Instance |
|
| Count |
integer |
1 |
|
| NextToken |
string |
Indicates the position where the current call returns data from. An empty value indicates that all data has been read. |
eKDyCM0zFQ5op7jVMWmNNA== |
| MaxResults |
integer |
The maximum number of records returned in this request. |
10 |
| TotalCount |
integer |
The total number of data entries under the current request conditions. This parameter is optional and can be left unspecified by default. |
5 |
| RequestId |
string |
The unique ID of the request. |
AE43C4CB-8074-5EBD-9806-8CA6D12800B1 |
例
成功レスポンス
JSONJSON
{
"Data": {
"Content": [
{
"ResourceCategoryId": "rc-123***7890",
"ResourceCategoryName": "My***ResourceCategory",
"ResourceCategoryType": "CUSTOM",
"ProductType": "ecs",
"ResourceType": "ACS::ECS::Instance",
"ResourceMatcher": "{\\\"type\\\":\\\"BOOL\\\",\\\"operator\\\":\\\"AND\\\",\\\"values\\\":[{\\\"type\\\":\\\"TAG\\\",\\\"key\\\":\\\"createdBy\\\",\\\"operator\\\":\\\"EQUAL\\\",\\\"values\\\":[\\\"me\\\"]}]}",
"ResourceCount": [
{
"ResourceType": "ACS::ECS::Instance",
"Count": 1
}
]
}
],
"NextToken": "eKDyCM0zFQ5op7jVMWmNNA==",
"MaxResults": 10,
"TotalCount": 5
},
"RequestId": "AE43C4CB-8074-5EBD-9806-8CA6D12800B1"
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。