Mengambil daftar kategori sumber daya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bdrc:ListResourceCategories |
none |
*All Resource
|
None | None |
Sintaks permintaan
GET /api/v1/resource-categories/list HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
Jumlah maksimum catatan yang dikembalikan dalam permintaan ini. |
10 |
| NextToken |
string |
No |
Token paginasi. Jika ada entri tambahan yang akan dikembalikan pada halaman berikutnya, token paginasi akan dikembalikan. Catatan: Jika parameter ini mengembalikan data, hal ini menunjukkan adanya halaman berikutnya. Anda dapat menggunakan NextToken yang dikembalikan sebagai parameter permintaan untuk mendapatkan halaman data berikutnya hingga mengembalikan Null, yang menunjukkan bahwa semua data telah diambil. |
cae**********699 |
| ResourceCategoryId |
string |
No |
rc-123****7890 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
object |
Data yang dikembalikan. |
|
| Content |
array<object> |
Kumpulan catatan yang dikembalikan dalam permintaan ini. |
|
|
array<object> |
|||
| ResourceCategoryId |
string |
The resource category ID, which is globally unique. |
rc-123***7890 |
| ResourceCategoryName |
string |
The resource name, which is unique within the namespace. |
My***ResourceCategory |
| ResourceCategoryType |
string |
The resource category type. Valid values:
|
CUSTOM |
| ProductType |
string |
The applicable product type. If this parameter is empty, all products are matched. |
ecs |
| ResourceType |
string |
The applicable resource type. If this parameter is empty, all resources are matched. |
ACS::ECS::Instance |
| ResourceMatcher |
string |
The resource matcher. If this parameter is empty, no resources are matched. |
{\"type\":\"BOOL\",\"operator\":\"AND\",\"values\":[{\"type\":\"TAG\",\"key\":\"createdBy\",\"operator\":\"EQUAL\",\"values\":[\"me\"]}]} |
| ResourceCount |
array<object> |
The number of resources of each type. |
|
|
object |
|||
| ResourceType |
string |
The resource type. |
ACS::ECS::Instance |
| Count |
integer |
The number of resources of each type. |
1 |
| NextToken |
string |
Menunjukkan posisi di mana panggilan saat ini mengembalikan data. Nilai kosong menunjukkan bahwa semua data telah dibaca. |
eKDyCM0zFQ5op7jVMWmNNA== |
| MaxResults |
integer |
Jumlah maksimum catatan yang dikembalikan dalam permintaan ini. |
10 |
| TotalCount |
integer |
Jumlah total entri data berdasarkan kondisi permintaan saat ini. Parameter ini bersifat opsional dan dapat dibiarkan tidak ditentukan secara default. |
5 |
| RequestId |
string |
ID unik permintaan. |
AE43C4CB-8074-5EBD-9806-8CA6D12800B1 |
Contoh
Respons sukses
JSONformat
{
"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"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.