Querying the nacos Namespace
Function
This API is used to query the nacos namespace.
URI
GET /v1/{project_id}/nacos/v1/console/namespaces
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Unique ID of a tenant's sub-project. The value contains 1 to 64 characters. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
Yes |
Integer |
Offset. The value starts from 0. |
limit |
Yes |
Integer |
Page size. Value 0 indicates that all results are displayed on one page. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
IAM-Token. |
x-engine-id |
Yes |
String |
Instance ID of an exclusive microservice engine. |
X-Enterprise-Project-ID |
Yes |
String |
Enterprise project ID. |
Response Parameters
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
detail |
String |
Location details. |
Example Requests
GET https://{endpoint}/v1/{project_id}/nacos/v1/console/namespaces
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
Error Codes
See CSE Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot