列举专属资源组中已部署的服务列表。
目前该API接口已标记为弃用,推荐使用替代API:eas(2021-07-01) - ListServices。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
eas:ListResourceServices |
get |
*Resource
|
无 | 无 |
请求语法
GET /api/v2/resources/{ClusterId}/{ResourceId}/services HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
资源组所在的集群 ID。 |
cn-shanghai |
| ResourceId |
string |
是 |
资源组的 ID。资源组 ID,如何查询资源组 ID,请参见 ListResources 。 |
iot |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| PageNumber |
integer |
否 |
服务列表的页码。起始值为 1,默认为 1。 |
1 |
| PageSize |
integer |
否 |
分页查询时设置的每页显示的服务数量,默认为 100。 |
20 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
40325405-579C-4D82**** |
| Services |
array |
服务列表。 |
|
| Service |
服务摘要信息。 |
||
| PageNumber |
integer |
返回查询的服务列表的页码。 |
1 |
| PageSize |
integer |
返回每页显示的服务数量。 |
20 |
| TotalCount |
integer |
服务总数。 |
2 |
示例
正常返回示例
JSON格式
{
"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": 20,
"TotalCount": 2
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。