Mengkueri informasi tentang kategori tertentu dan daftar subkategorinya (kategori anak langsung).
Deskripsi operasi
Mengkueri informasi kategori dan subkategori berdasarkan ID kategori dan tipe kategori.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetCategories |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| CateId |
integer |
No |
ID kategori. Anda dapat memperoleh ID kategori dengan menggunakan salah satu metode berikut:
|
33 |
| PageNo |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Ukuran halaman. Nilai minimum: 10. Nilai maksimum: 100. |
10 |
| SortBy |
string |
No |
Metode pengurutan hasil. Nilai valid:
|
CreationTime:Desc |
| Type |
string |
No |
Tipe kategori. Nilai valid:
|
default |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| SubTotal |
integer |
Jumlah total subkategori. |
100 |
| RequestId |
string |
ID permintaan. |
******3B-0E1A-586A-AC29-742247****** |
| Category |
object |
Informasi kategori aset media. |
|
| Type |
string |
Tipe kategori. Nilai valid:
|
default |
| CateName |
string |
Nama kategori. |
一级分类 |
| ParentId |
integer |
ID kategori induk. |
-1 |
| CateId |
integer |
ID kategori. |
46 |
| Level |
integer |
Level kategori. Kategori tingkat pertama memiliki level 0, kategori tingkat kedua memiliki level 1, dan kategori tingkat ketiga memiliki level 2. |
0 |
| SubCategories |
object |
||
| Category |
array<object> |
Daftar subkategori. |
|
|
object |
Daftar subkategori. |
||
| Type |
string |
The type of the category. Valid values:
|
default |
| CateName |
string |
The category name.
|
二级子分类 |
| ParentId |
integer |
The ID of the parent category. |
46 |
| CateId |
integer |
The category ID. |
129 |
| SubTotal |
integer |
The total number of subcategories. |
100 |
| Level |
integer |
The level of the category. A value of 0 indicates a level-1 category, a value of 1 indicates a level-2 category, and a value of 2 indicates a level-3 category. |
1 |
Contoh
Respons sukses
JSONformat
{
"SubTotal": 100,
"RequestId": "******3B-0E1A-586A-AC29-742247******",
"Category": {
"Type": "default",
"CateName": "一级分类",
"ParentId": -1,
"CateId": 46,
"Level": 0
},
"SubCategories": {
"Category": [
{
"Type": "default",
"CateName": "二级子分类",
"ParentId": 46,
"CateId": 129,
"SubTotal": 100,
"Level": 1
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.