Melakukan kueri namespace dari instance Nacos.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:ListEngineNamespaces |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
ID instance. |
mse-cn-st21ri2**** |
| AcceptLanguage |
string |
No |
Bahasa respons. Nilai yang valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Struktur data. |
||
| HttpCode |
string |
Kode status HTTP. |
202 |
| TotalCount |
integer |
Jumlah total instance yang dikembalikan. |
7 |
| RequestId |
string |
ID permintaan. |
062D13C5-DEA3-4921-8918-C49A0F1B**** |
| Message |
string |
Pesan yang dikembalikan. |
The request was successfully processed. |
| PageSize |
integer |
Jumlah entri yang dikembalikan per halaman. |
10 |
| PageNumber |
integer |
Nomor halaman yang dikembalikan. |
1 |
| Data |
array<object> |
Detail data. |
|
|
object |
Detail data. |
||
| Type |
integer |
Tipe namespace. Nilai yang valid:
|
0 |
| NamespaceShowName |
string |
Nama namespace. |
public |
| Quota |
integer |
Kuota. |
200 |
| Namespace |
string |
Namespace. |
DEFAULT |
| NamespaceDesc |
string |
Deskripsi namespace. |
mytest |
| ConfigCount |
integer |
Nilai kuota. |
1 |
| ServiceCount |
string |
Jumlah layanan aktif. |
3 |
| SourceType |
string |
Sumber dari mana namespace dibuat. |
mse |
| ErrorCode |
string |
Kode error yang dikembalikan jika permintaan gagal. |
mse-100-000 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"HttpCode": "202",
"TotalCount": 7,
"RequestId": "062D13C5-DEA3-4921-8918-C49A0F1B****",
"Message": "The request was successfully processed.\n",
"PageSize": 10,
"PageNumber": 1,
"Data": [
{
"Type": 0,
"NamespaceShowName": "public",
"Quota": 200,
"Namespace": "DEFAULT",
"NamespaceDesc": "mytest",
"ConfigCount": 1,
"ServiceCount": "3",
"SourceType": "mse"
}
],
"ErrorCode": "mse-100-000",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationNotSupport | The current cluster does not support this operation, %s. | The current cluster does not support this operation |
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.