単一のリソースカテゴリを取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
bdrc:GetResourceCategory |
get |
*All Resource
|
なし | なし |
リクエスト構文
GET /api/v1/resource-categories/get HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ResourceCategoryId |
string |
必須 |
リソースカテゴリ ID。 |
rc-123***7890 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Data |
object |
The returned data. |
|
| ResourceCategoryId |
string |
Resource category ID, globally unique. |
rc-123***7890 |
| ResourceCategoryName |
string |
Resource name, unique within the namespace. |
My***ResourceCategory |
| ResourceCategoryType |
string |
Resource category type. Valid values:
|
CUSTOM |
| ProductType |
string |
Applicable product type. If empty, matches all products. |
ecs |
| ResourceType |
string |
Applicable resource type. If empty, matches all resources. |
ACS::ECS::Instance |
| ResourceMatcher |
string |
Resource matcher. If empty, no resources are matched. |
{\"type\":\"BOOL\",\"operator\":\"AND\",\"values\":[{\"type\":\"TAG\",\"key\":\"createdBy\",\"operator\":\"EQUAL\",\"values\":[\"me\"]}]} |
| ResourceCount |
array<object> |
Number of resources by type. |
|
|
object |
|||
| ResourceType |
string |
ACS::ECS::Instance |
|
| Count |
integer |
1 |
|
| RequestId |
string |
The unique ID of the request. |
AE43C4CB-8074-5EBD-9806-8CA6D12800B1 |
例
成功レスポンス
JSONJSON
{
"Data": {
"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
}
]
},
"RequestId": "AE43C4CB-8074-5EBD-9806-8CA6D12800B1"
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。