名前空間リストを表示します。各名前空間のオンラインノード数とアプリケーション総数を表示します。このインターフェイスは、名前空間名に基づいたあいまい検索もサポートしています。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:ListNamespaces |
list |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Region |
string |
必須 |
リージョン。 |
cn-hangzhou |
| PageNumber |
integer |
任意 |
ページングクエリのページ番号。 |
1 |
| PageSize |
integer |
任意 |
ページングクエリの各ページのエントリ数。デフォルトは 5 です。より多くのデータを返すには、この値を増やしてください。 |
10 |
| Name |
string |
任意 |
あいまい検索用の名前空間名。指定しない場合、デフォルトですべての名前空間がクエリされます。 |
myNamespace |
| Tag |
array<object> |
任意 |
Alibaba Cloud タグ。 |
|
|
object |
任意 |
タグリスト。最大 20 個のサブキーを含みます。 |
||
| Key |
string |
任意 |
タグキー。 |
key |
| Value |
string |
任意 |
タグ値。 |
value |
| AcceptLanguage |
string |
任意 |
結果を表示する言語。値: zh (デフォルト): 中国語、en: 英語 |
zh |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
RestResult<PageResult> |
||
| RequestId |
string |
リクエスト ID。 |
D1F1A6F3-7E03-5EAD-B3F1-123456789ABC |
| Data |
object |
返された結果。 |
|
| PageNumber |
integer |
結果のページ番号。 |
1 |
| TotalSize |
integer |
クエリ結果の合計数。 |
7 |
| PageSize |
integer |
クエリのページサイズ。 |
10 |
| Result |
array<object> |
返された結果。 |
|
|
array<object> |
結果セット。 |
||
| UserId |
string |
ユーザー ID。 |
178******* |
| Region |
string |
リージョン。 |
cn-hangzhou |
| Namespace |
string |
名前空間。 |
myNamespace |
| Version |
integer |
バージョン。Basic Edition は 0、Professional Edition は 1、Enterprise Edition は 2 です。 |
1 |
| Describe |
string |
名前空間の説明。 |
namespace 1 for testing |
| InstanceCount |
integer |
オンラインノード数。 |
6 |
| AppCount |
integer |
アプリケーション数。 |
3 |
| CreateTime |
integer |
作成時間。 |
2024-09-02T09:49:48.000+0000 |
| UpdateTime |
integer |
更新時間。 |
2024-09-02T09:49:48.000+0000 |
| Tags |
object |
Alibaba Cloud タグ。 |
{"1":"1","2":"2"} |
| Results |
array<object> |
結果セット。 |
|
|
object |
結果コレクション。 |
||
| UserId |
string |
ユーザー ID。 |
178******* |
| Region |
string |
リージョン。 |
cn-hangzhou |
| Namespace |
string |
名前空間。 |
myNamespace |
| Version |
integer |
バージョン。Basic Edition は 0、Professional Edition は 1、Enterprise Edition は 2 です。 |
1 |
| Describe |
string |
名前空間の説明。 |
namespace 1 for testing |
| InstanceCount |
integer |
オンラインノード数。 |
6 |
| AppCount |
integer |
アプリケーション数。 |
3 |
| CreateTime |
integer |
作成時間。 |
2024-09-02T09:49:48.000+0000 |
| UpdateTime |
integer |
更新時間。 |
2024-09-02T09:49:48.000+0000 |
例
成功レスポンス
JSONJSON
{
"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
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。