Mengkueri semua pusat biaya dalam node saat ini dari pohon pusat biaya. Jika parameter ParentUnitId diatur ke -1, semua pusat biaya akan dikueri.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:QueryCostUnit |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| OwnerUid |
integer |
Yes |
ID pengguna pemilik pusat biaya. |
28394563429587 |
| ParentUnitId |
integer |
Yes |
ID pusat biaya induk. Nilai -1 menunjukkan pusat biaya root. |
-1 |
| PageNum |
integer |
No |
Nomor halaman yang akan dikembalikan. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Maksimum 300 entri dapat dikembalikan per halaman. |
20 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The status code. |
Success |
| Message |
string |
The error message returned. |
Successful! |
| RequestId |
string |
The ID of the request. |
6000EE23-274B-4E07-A697-FF2E999520A4 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Data |
object |
The data returned. |
|
| PageNum |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries returned on each page. |
20 |
| TotalCount |
integer |
The total number of returned entries. |
1 |
| CostUnitDtoList |
array<object> |
The cost centers. |
|
|
object |
|||
| ParentUnitId |
integer |
The ID of the parent cost center. A value of -1 indicates the root cost center. |
-1 |
| UnitName |
string |
The name of the cost center. |
test |
| UnitId |
integer |
The ID of the cost center. |
23534 |
| OwnerUid |
integer |
The user ID of the cost center owner. |
2343464 |
Contoh
Respons sukses
JSONformat
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
"Success": true,
"Data": {
"PageNum": 1,
"PageSize": 20,
"TotalCount": 1,
"CostUnitDtoList": [
{
"ParentUnitId": -1,
"UnitName": "test",
"UnitId": 23534,
"OwnerUid": 2343464
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.