Mengkueri namespace instans Pusat Registrasi Nacos.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetEngineNamepace |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
No |
ID tujuan. |
0e958d79-****-b282-b702d66362b5 |
| InstanceId |
string |
No |
ID instans. |
mse.cn-hangzhou.aliyuncs.com |
| ClusterId |
string |
No |
ID kluster. |
mse-98s**** |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| HttpCode |
string |
The HTTP status code returned. |
202 |
| Type |
string |
The type of the namespace. Valid values:
|
1 |
| Quota |
string |
The quota of configurations. |
200 |
| RequestId |
string |
The ID of the request. |
FA8F966F-420C-52F5-B49E-6ED7CCE02697 |
| Message |
string |
The message returned. |
success |
| ConfigCount |
string |
The number of configurations. |
1 |
| NamespaceShowName |
string |
The display name of the namespace. |
public |
| ErrorCode |
string |
The error code returned if the request failed. |
mse-100-000 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| NamespaceDesc |
string |
The description of the namespace. |
mytest |
| Namespace |
string |
The ID of the namespace. |
public |
Contoh
Respons sukses
JSONformat
{
"HttpCode": "202",
"Type": "1",
"Quota": "200",
"RequestId": "FA8F966F-420C-52F5-B49E-6ED7CCE02697",
"Message": "success",
"ConfigCount": "1",
"NamespaceShowName": "public",
"ErrorCode": "mse-100-000",
"Success": true,
"NamespaceDesc": "mytest",
"Namespace": "public"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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.