Mengkueri daftar namespace, termasuk jumlah node online dan total aplikasi di setiap namespace. Operasi ini juga mendukung kueri fuzzy berdasarkan nama namespace.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:ListNamespaces |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
Wilayah. |
cn-hangzhou |
| PageNumber |
integer |
No |
Nomor halaman untuk kueri berpaginasi. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman untuk kueri berpaginasi. Nilai default: 5. Untuk mengembalikan lebih banyak data, tingkatkan nilai ini. |
10 |
| Name |
string |
No |
Nama namespace untuk kueri fuzzy. Jika tidak ditentukan, semua namespace dikueri secara default. |
myNamespace |
| Tag |
array<object> |
No |
Tag Alibaba Cloud. |
|
|
object |
No |
Tag list, containing a maximum of 20 subkeys. |
||
| Key |
string |
No |
Tag key. |
key |
| Value |
string |
No |
Tag value. |
value |
| AcceptLanguage |
string |
No |
Bahasa tampilan hasil. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
RestResult<PageResult> |
||
| RequestId |
string |
Request ID. |
D1F1A6F3-7E03-5EAD-B3F1-123456789ABC |
| Data |
object |
Return results. |
|
| PageNumber |
integer |
Result page number. |
1 |
| TotalSize |
integer |
Total number of query results. |
7 |
| PageSize |
integer |
Page size for the query. |
10 |
| Result |
array<object> |
Return results. |
|
|
array<object> |
Result set. |
||
| UserId |
string |
User ID. |
178******* |
| Region |
string |
Region. |
cn-hangzhou |
| Namespace |
string |
Namespace. |
myNamespace |
| Version |
integer |
Version. Basic Edition 0, Professional Edition 1, Enterprise Edition 2. |
1 |
| Describe |
string |
Namespace description. |
namespace 1 for testing |
| InstanceCount |
integer |
Number of online nodes. |
6 |
| AppCount |
integer |
Number of applications. |
3 |
| CreateTime |
integer |
Creation time. |
2024-09-02T09:49:48.000+0000 |
| UpdateTime |
integer |
Update time. |
2024-09-02T09:49:48.000+0000 |
| Tags |
object |
Alibaba Cloud tags. |
{"1":"1","2":"2"} |
| Results |
array<object> |
Result set. |
|
|
object |
Result collection. |
||
| UserId |
string |
User ID. |
178******* |
| Region |
string |
Region. |
cn-hangzhou |
| Namespace |
string |
Namespace. |
myNamespace |
| Version |
integer |
Version. Basic Edition 0, Professional Edition 1, Enterprise Edition 2. |
1 |
| Describe |
string |
Namespace description. |
namespace 1 for testing |
| InstanceCount |
integer |
Number of online nodes. |
6 |
| AppCount |
integer |
Number of applications. |
3 |
| CreateTime |
integer |
Creation time. |
2024-09-02T09:49:48.000+0000 |
| UpdateTime |
integer |
Update time. |
2024-09-02T09:49:48.000+0000 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "D1F1A6F3-7E03-5EAD-B3F1-123456789ABC",
"Data": {
"PageNumber": 1,
"TotalSize": 7,
"PageSize": 10,
"Result": [
{
"UserId": "178*******",
"Region": "cn-hangzhou",
"Namespace": "myNamespace",
"Version": 1,
"Describe": "namespace 1 for testing",
"InstanceCount": 6,
"AppCount": 3,
"CreateTime": 0,
"UpdateTime": 0,
"Tags": {
"1": "1",
"2": "2"
}
}
],
"Results": [
{
"UserId": "178*******",
"Region": "cn-hangzhou",
"Namespace": "myNamespace",
"Version": 1,
"Describe": "namespace 1 for testing",
"InstanceCount": 6,
"AppCount": 3,
"CreateTime": 0,
"UpdateTime": 0
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | |
| 400 | InvalidParameter | Parameter error:%s | |
| 500 | InternalError | Console error. Try again later:%s | |
| 403 | NoPermission | You are not authorized to perform this operation:%s | |
| 404 | NotFound | Not found:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.