Queries the namespaces of a Nacos instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:ListEngineNamespaces |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The ID of the instance. |
mse-cn-st21ri2**** |
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| HttpCode |
string |
The HTTP status code. |
202 |
| TotalCount |
integer |
The total number of returned instances. |
7 |
| RequestId |
string |
The ID of the request. |
062D13C5-DEA3-4921-8918-C49A0F1B**** |
| Message |
string |
The response message. |
The request was successfully processed. |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| Data |
array<object> |
The details of the data. |
|
|
object |
The details of the data. |
||
| Type |
integer |
The type of the namespace. Valid values:
|
0 |
| NamespaceShowName |
string |
The name of the namespace. |
public |
| Quota |
integer |
The quota. |
200 |
| Namespace |
string |
The namespace. |
DEFAULT |
| NamespaceDesc |
string |
The description of the namespace. |
mytest |
| ConfigCount |
integer |
The quota value. |
1 |
| ServiceCount |
string |
The number of active services. |
3 |
| SourceType |
string |
The source from which the namespace was created. |
mse |
| ErrorCode |
string |
The error code returned if the request failed. |
mse-100-000 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"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
}
Error codes
|
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 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.