文档

DescribeService - 查询服务详情

更新时间:

获取指定服务的详细信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
eas:DescribeServiceRead
  • Service
    acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}

请求语法

GET /api/v2/services/{ClusterId}/{ServiceName}

请求参数

名称类型必填描述示例值
ClusterIdstring

服务所在地域 ID。

cn-shanghai
ServiceNamestring

服务名称。如何查看服务名称,请参见ListServices

foo

返回参数

名称类型描述示例值
Service

返回的服务详情。

示例

正常返回示例

JSON格式

{
  "RequestId": "40325405-579C-4D82********",
  "Region": "cn-shanghai",
  "CallerUid": "20123*******",
  "ParentUid": "11234*******",
  "CurrentVersion": 1,
  "Cpu": 1,
  "Gpu": 0,
  "Image": "registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320",
  "PendingInstance": 0,
  "RunningInstance": 1,
  "TotalInstance": 1,
  "InternetEndpoint": "http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo",
  "IntranetEndpoint": "http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo",
  "LatestVersion": 1,
  "Memory": 1024,
  "Message": "Service start successfully",
  "Namespace": "echo",
  "Reason": "RUNNING",
  "Resource": "eas-r-xxxxxxx",
  "ResourceAlias": "my_resource",
  "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\"     }",
  "ServiceName": "echo",
  "ServiceGroup": "my_group",
  "Status": "Running",
  "CreateTime": "2021-01-29T11:13:20Z",
  "UpdateTime": "2021-01-29T11:13:20Z",
  "Weight": 100,
  "ServiceId": "eas-m-xxasdat",
  "ServiceUid": "eas-m-xxasdat\n",
  "AccessToken": "MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********",
  "Source": "dsw",
  "ExtraData": "{\\\"blue_green_services\\\":[\\\"test\\\",\\\"testxxxx\\\"]}",
  "Role": "Queue",
  "RoleAttrs": "\"{\\\"ApproxMaxLength\\\":null,\\\"Length\\\":null,\\\"MaxPayloadBytes\\\":null}\"",
  "SafetyLock": "dangerous",
  "SecondaryInternetEndpoint": "http://10123*****.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\n",
  "SecondaryIntranetEndpoint": "http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\n",
  "Labels": [
    {
      "LabelKey": "key1",
      "LabelValue": "value1"
    }
  ],
  "WorkspaceId": "123445",
  "AppType": "LLM",
  "AppConfig": "{\"ModelStorage\":\"oss\"}",
  "AppSpecName": "llama_7b_fp16",
  "AppVersion": "v1"
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (1)
文档反馈