全部產品
Search
文件中心

Platform For AI:DescribeService - 查詢服務詳情

更新時間:Apr 21, 2026

擷取指定服務的詳細資料。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

eas:DescribeService

get

*Service

acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}

請求文法

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

路徑參數

名稱

類型

必填

描述

樣本值

ClusterId

string

服務所在地區 ID。

cn-shanghai

ServiceName

string

服務名稱。如何查看服務名稱,請參見ListServices

foo

請求參數

名稱

類型

必填

描述

樣本值

當前API無需請求參數

返回參數

名稱

類型

描述

樣本值

Service

返回的服務詳情。

樣本

正常返回樣本

JSON格式

{
  "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}"
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情