作成済みのサービスグループを一覧表示します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
eas:ListGroups |
get |
*All Resource
|
なし | なし |
リクエスト構文
GET /api/v2/groups HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| PageSize |
string |
任意 |
ページングクエリで各ページに表示するサービスグループの数。ページングの設定項目のデフォルト値は 100 です。 |
20 |
| PageNumber |
string |
任意 |
サービスグループリストの現在のページ番号。デフォルト値: 1。 |
1 |
| Filter |
string |
任意 |
フィルター名。あいまい一致がサポートされています。 |
foo |
| WorkspaceId |
string |
任意 |
ワークスペース ID。 |
123*** |
| TrafficMode |
string |
任意 |
サービスグループをフィルターするために使用されるトラフィック割り当てメソッド。 |
auto |
| Sort |
string |
任意 |
結果をソートするフィールド。 |
CreateTime |
| Order |
string |
任意 |
結果のソート注文。 |
desc |
| Labels |
object |
任意 |
ユーザー定義のラベル。 |
|
|
string |
任意 |
Fill in the {"key":"value"} format. The value can be null or an empty string, which indicates that filtering is performed only by key. The value can be any arbitrary value. |
{"key1":"value1","key2":null} |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答。 |
||
| RequestId |
string |
リクエスト ID。 |
40325405-579C-4D82**** |
| Groups |
array |
サービスグループのリスト。 |
|
| Group |
サービスグループのフォーマット情報。 |
||
| PageSize |
integer |
ページあたりに表示されるグループの数。 |
20 |
| PageNumber |
integer |
返されたグループリストの現在のページ番号。 |
1 |
| TotalCount |
integer |
サービスグループの総数。 |
5 |
例
成功レスポンス
JSONJSON
{
"RequestId": "40325405-579C-4D82****",
"Groups": [
{
"Name": "foo",
"ClusterId": "cn-shanghai",
"CreateTime": "2020-05-19T14:19:42Z",
"UpdateTime": "2021-01-29T11:13:20Z",
"QueueService": "qservice",
"InternetEndpoint": "http://1110*****.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group",
"IntranetEndpoint": "http://1110*****.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group",
"AccessToken": "MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********",
"TrafficMode": "auto",
"Network": {
"VpcId": "",
"VSwitchId": "",
"SecurityGroupId": "",
"GatewayId": ""
},
"ParentUid": "",
"CallerUid": "",
"Labels": [
{
"LabelKey": "",
"LabelValue": ""
}
]
}
],
"PageSize": 20,
"PageNumber": 1,
"TotalCount": 5
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。