サービスリストを取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:GetServiceListPage |
get |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Region |
string |
任意 |
リージョン。 |
cn-hangzhou |
| Namespace |
string |
任意 |
MSE の名前空間の名前。 |
default |
| AppName |
string |
任意 |
アプリケーション名。 |
example-app |
| ServiceType |
string |
任意 |
サービスタイプ。 |
springCloud |
| AppId |
string |
任意 |
アプリケーション ID。 |
dez4xxxxx@f3f75ed8ffxxxxx |
| ServiceName |
string |
任意 |
サービス名。 |
sc-A |
| PageNumber |
integer |
任意 |
ページ番号。 |
1 |
| PageSize |
integer |
任意 |
ページごとに返すエントリ数。 |
10 |
| Ip |
string |
任意 |
クエリする IP アドレス。 |
223.5.5.5 |
| AcceptLanguage |
string |
任意 |
応答の言語。有効な値は、 |
zh |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Success |
boolean |
リクエストが成功したかどうかを示します。 |
True |
| Message |
string |
応答メッセージ。 |
OK |
| RequestId |
string |
リクエスト ID。 |
A2F946FB-F2E3-5BF4-8CBE-xxxxxxxx |
| Data |
object |
応答データ。 |
|
| Result |
array<object> |
現在のページのサービスリスト。 |
|
|
object |
各サービスの詳細。 |
||
| AppName |
string |
アプリケーションの名前。 |
example-app |
| Version |
string |
サービスのバージョン。 |
1 |
| InstanceNum |
integer |
サービスのノード数。 |
1 |
| GmtModifyTime |
string |
サービスが最後に更新された時刻。 |
123456 |
| AppId |
string |
アプリケーションの ID。 |
dez4xxxxx@f3f75ed8ffxxxxx |
| ServiceName |
string |
サービスの名前。 |
sc-A |
| Group |
string |
サービスグループ。 |
DEFAULT_GROUP |
| ServiceType |
string |
サービスのタイプ。 |
|
| TotalSize |
string |
エントリの総数。 |
100 |
| PageNumber |
string |
現在のページ番号。 |
1 |
| PageSize |
string |
ページごとのエントリ数。 |
10 |
例
成功レスポンス
JSONJSON
{
"Success": true,
"Message": "OK",
"RequestId": "A2F946FB-F2E3-5BF4-8CBE-xxxxxxxx",
"Data": {
"Result": [
{
"AppName": "example-app",
"Version": "1",
"InstanceNum": 1,
"GmtModifyTime": "123456",
"AppId": "dez4xxxxx@f3f75ed8ffxxxxx",
"ServiceName": "sc-A",
"Group": "DEFAULT_GROUP",
"ServiceType": ""
}
],
"TotalSize": "100",
"PageNumber": "1",
"PageSize": "10"
}
}
エラーコード
|
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 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。