サービスの一覧を取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
eas:ListServices |
get |
*Service
|
なし | なし |
リクエスト構文
GET /api/v2/services HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Sort |
string |
任意 |
ソート対象のフィールドです。デフォルトでは、タイムスタンプで降順に並べ替えられます。 |
CreateTime |
| Order |
string |
任意 |
並べ替え順序です。有効な値は以下のとおりです。
|
asc |
| Filter |
string |
任意 |
あいまい検索用のフィルターです。サービス名のみによるあいまい検索が可能です。 |
foo |
| PageNumber |
integer |
任意 |
サービス一覧のページ番号です。デフォルト値は 1 です。 |
1 |
| PageSize |
integer |
任意 |
ページングクエリにおける 1 ページあたりのサービス数です。デフォルト値は 100 です。 |
100 |
| GroupName |
string |
任意 |
サービスグループの名称です。詳細については、「ListServices」をご参照ください。 |
foo |
| ParentServiceUid |
string |
任意 |
オーディエンスグループ内のメンバー サービスが属するプライマリ サービスの ID です。 |
eas-m-ijafy3c8cxxxx |
| ServiceType |
string |
任意 |
サービスの種類です。有効な値は以下のとおりです。
列挙値:
|
Standard |
| Label |
object |
任意 |
ラベルによるフィルター処理を行います。 |
|
|
string |
任意 |
ラベルを |
{"key1":"value1","key2":null} |
|
| ServiceStatus |
string |
任意 |
サービスの実行ステータスです。 列挙値:
|
Running |
| ServiceName |
string |
任意 |
サービス名です。 |
echo_test |
| ServiceUid |
string |
任意 |
サービスの UID です。 |
eas-m-c9iw3yitxxxx |
ResourceName
deprecated
|
string |
任意 |
サービスが属するリソースグループの名前または ID です。 |
eas-r-hd0qwy8cxxxx |
| WorkspaceId |
string |
任意 |
ワークスペースの ID です。 |
1234** |
| QuotaId |
string |
任意 |
クォータの ID です。 |
quota1**** |
| Gateway |
string |
任意 |
プライベート ゲートウェイの ID です。 |
gw-1uhcqmsc7x22****** |
| Role |
string |
任意 |
サービスロール。 列挙値:
|
LLMGateway |
| ResourceType |
string |
任意 |
サービスが使用するリソースの種類です。有効な値は以下のとおりです。
列挙値:
|
PublicResource |
| IncludeNoWorkspace |
boolean |
任意 |
ワークスペースに属さないサービスを含めるかどうかを指定します。デフォルト値は true です。 |
true |
| ResourceAliasName |
string |
任意 |
リソースグループのカスタム名です。 |
example |
| ResourceId |
string |
任意 |
リソースグループの ID です。詳細については、「ListResources」をご参照ください。 |
eas-r-asdas**** |
| ResourceBurstable |
boolean |
任意 |
サービスのバースト可能なリソースプールを有効にするかどうかを指定します。 列挙値:
|
true |
| CronscalerEnabled |
boolean |
任意 |
サービスに対してスケジュールされた自動スケーリングを有効化するかどうかを指定します。 列挙値:
|
true |
| AutoscalerEnabled |
boolean |
任意 |
サービスに対して Auto Scaling を有効化するかどうかを指定します。 列挙値:
|
true |
| TrafficState |
string |
任意 |
サービスがグループからのトラフィックを受け付けるかどうかを指定します。このパラメーターは、サービスグループ内のサービスにのみ適用されます。 列挙値:
|
grouping |
| CallerUid |
string |
任意 |
サービスを作成したアカウントの UID です。 |
19989224166xxxxxxx |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答です。 |
||
| RequestId |
string |
リクエスト ID です。 |
40325405-579C-4D82**** |
| Services |
array |
サービスの一覧です。 |
|
| Service |
サービスインスタンスです。 |
||
| PageNumber |
integer |
現在のページのページ番号です。 |
1 |
| PageSize |
integer |
1 ページあたりのサービス数です。 |
100 |
| TotalCount |
integer |
サービスの合計数です。 |
2 |
例
成功レスポンス
JSONJSON
{
"RequestId": "40325405-579C-4D82****",
"Services": [
{
"ServiceGroup": "my_group",
"Memory": 1024,
"Cpu": 1,
"Image": "registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320",
"Gpu": 0,
"TotalInstance": 1,
"AccessToken": "MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********",
"ResourceBurstable": true,
"InternetEndpoint": "http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo",
"ResourceAlias": "my_resource",
"Status": "Running",
"TrafficState": "standalone",
"RequestId": "40325405-579C-4D82********",
"Resource": "eas-r-xxxxxxx",
"SecondaryInternetEndpoint": "http://10123*****.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\n",
"Labels": [
{
"LabelValue": "value1",
"LabelKey": "key1"
}
],
"Namespace": "echo",
"Weight": 100,
"Role": "Queue",
"SecondaryIntranetEndpoint": "http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\n",
"PendingInstance": 0,
"ServiceName": "echo",
"SafetyLock": "dangerous",
"Region": "cn-shanghai",
"AppType": "LLM",
"InstanceCountInResource": {
"Quota": 10,
"Public": 10,
"Dedicated": 10
},
"IntranetEndpoint": "http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo",
"QuotaId": "quotaxxxxx",
"Message": "Service start successfully",
"CurrentVersion": 1,
"RunningInstance": 1,
"WorkspaceId": "123445",
"CallerUid": "20123*******",
"Reason": "RUNNING",
"Source": "dsw",
"ServiceId": "eas-m-xxasdat",
"AppVersion": "v1",
"CronscalerEnabled": true,
"ServiceConfig": "{\"metadata\":{\"cpu\":1,\"instance\":1,\"memory\":1024},\"name\":\"echo\",\"processor_entry\":\"libecho.so\",\"processor_path\":\"http://oss-cn-hangzhou-zmf.aliyuncs.com/059247/echo_processor_release.tar.gz\",\"processor_type\":\"cpp\"}",
"Gateway": "gw-xxxxxx",
"AppSpecName": "llama_7b_fp16",
"GPUCorePercentage": 50,
"GPUMemory": 20,
"AppConfig": "{\"ModelStorage\":\"oss\"}",
"CreateTime": "2021-01-29T11:13:20Z",
"AutoscalerEnabled": true,
"ExtraData": "{\"blue_green_services\":[\"test\",\"testxxxx\"]}",
"LatestVersion": 1,
"UpdateTime": "2021-01-29T11:13:20Z",
"ServiceUid": "eas-m-xxasdat\n",
"ParentUid": "11234*******",
"RoleAttrs": "{\"ApproxMaxLength\":null,\"Length\":null,\"MaxPayloadBytes\":null}"
}
],
"PageNumber": 1,
"PageSize": 100,
"TotalCount": 2
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。