Mengkueri namespace tempat Microservices Governance berada.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:QueryNamespace |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
Wilayah tempat namespace berada. |
cn-hangzhou |
| Name |
string |
No |
Nama namespace yang ingin Anda kueri. |
default |
| AcceptLanguage |
string |
No |
Bahasa yang digunakan untuk menampilkan hasil. Nilai valid: zh (default): Bahasa Tionghoa. en: Bahasa Inggris. |
zh |
Elemen respons
|
Element |
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<object> |
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 |
Contoh
Respons sukses
JSONformat
{
"Message": "请求处理成功",
"RequestId": "abcde-fg",
"ErrorCode": "Success",
"Success": true,
"Data": [
{
"Region": "cn-hangzhou",
"Namespace": "default"
}
]
}
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.