Queries the namespace to which Microservices Governance belongs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:QueryNamespace |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
The region to which the namespace belongs. |
cn-hangzhou |
| Name |
string |
No |
The name of the namespace that you want to query. |
default |
| AcceptLanguage |
string |
No |
The language in which you want the results to be displayed. Valid values: zh (default): Chinese. en: English. |
zh |
Response elements
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The error message returned. |
|
| RequestId |
string |
The request ID. |
abcde-fg |
| ErrorCode |
string |
The error code. |
Success |
| Success |
boolean |
Indicates whether the request is successful. |
true |
| Data |
array |
The data that is returned. |
|
|
object |
|||
| Region |
string |
The region to which the namespace belongs. |
cn-hangzhou |
| Namespace |
string |
The name of the namespace. |
default |
Examples
Success response
JSON format
{
"Message": "",
"RequestId": "abcde-fg",
"ErrorCode": "Success",
"Success": true,
"Data": [
{
"Region": "cn-hangzhou",
"Namespace": "default"
}
]
}
Error codes
|
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 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.