全部產品
Search
文件中心

Platform For AI:ListServices

更新時間:Sep 24, 2026

列舉服務。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

eas:ListServices

get

*Service

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

無 無

請求文法

GET /api/v2/services HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

Sort

string

否

排序欄位。按時間戳記類型預設倒序排序。

CreateTime

Order

string

否

排序方式,取值如下:

  • desc(預設值):降序。

  • asc:升序。

asc

Filter

string

否

模糊匹配欄位。僅支援按服務名稱模糊匹配。

foo

PageNumber

integer

否

服務列表的請求頁碼,預設為 1。

1

PageSize

integer

否

分頁查詢時設定的每頁顯示的服務數量,預設為 100。

100

GroupName

string

否

服務群組名稱,如何取得服務群組名稱,請參閱ListServices 。

foo

ParentServiceUid

string

否

Band 成員服務對應的主服務 ID。

eas-m-ijafy3c8cxxxx

ServiceType

string

否

服務類型,取值如下:

  • Async

  • Standard

  • Queue

  • LLM

  • RAG

  • Serverless

  • LLMGatewayService

  • Offline Task

  • SDCluster

  • ScalableJob

  • ScalableJobService

  • AssistantJob

枚舉值:

  • Async :

    非同步服務。

  • Standard :

    標準部署。

  • OfflineTask :

    離線任務。

  • Proxima :

    Proxima

  • AssistantJob :

    AssistantJob

  • LLMGatewayService :

    LLM 智慧路由。

  • RAG :

    RAG 場景化部署。

  • SDCluster :

    SDCluster

  • ScalableJob :

    可伸縮任務。

  • ScalableJobService :

    可伸縮任務服務。

  • Serverless :

    Serverless

  • LLM :

    LLM 場景化部署。

  • Queue :

    佇列服務。

Standard

Label

object

否

按標籤篩選。

string

否

按{"key":"value"}格式填寫。Value 可為 null 或空字元,代表僅按 Key 篩選,Value 可為任意值。

{"key1":"value1","key2":null}

ServiceStatus

string

否

服務執行的狀態。

枚舉值:

  • Creating :

    Creating

  • Stopped :

    Stopped

  • Failed :

    Failed

  • Complete :

    Complete

  • Cloning :

    Cloning

  • Stopping :

    Stopping

  • Updating :

    Updating

  • Waiting :

    Waiting

  • HotUpdate :

    HotUpdate

  • Committing :

    Committing

  • Starting :

    Starting

  • DeleteFailed :

    DeleteFailed

  • Running :

    Running

  • Developing :

    Developing

  • Scaling :

    Scaling

  • Deleted :

    Deleted

  • Pending :

    Pending

  • Deleting :

    Deleting

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

否

服務角色。

枚舉值:

  • DataLoader :

    DataLoader

  • FrontEnd :

    FrontEnd

  • DataSet :

    DataSet

  • SDProxy :

    SDProxy

  • LLMScheduler :

    LLMScheduler

  • ScalableJob :

    ScalableJob

  • LLMGateway :

    LLMGateway

  • Job :

    Job

  • Queue :

    Queue

LLMGateway

ResourceType

string

否

服務所使用的資源類型,取值如下:

  • PublicResource

  • DedicatedResource

  • Lingjun

  • SelfManagedLingjun

枚舉值:

  • Lingjun :

    靈駿資源配額。

  • PublicResource :

    公共資源群組。

  • DedicatedResource :

    專屬資源群組。

  • SelfManagedLingjun :

    靈駿自維運資源群組。

PublicResource

IncludeNoWorkspace

boolean

否

是否包含不屬於任何工作空間的服務。預設為 true。

true

ResourceAliasName

string

否

資源群組的自訂名稱。

example

ResourceId

string

否

資源群組的 ID。如何查詢資源群組 ID,請參閱 ListResources 。

eas-r-asdas****

ResourceBurstable

boolean

否

服務是否開啟彈性資源池。

枚舉值:

  • true :

    true

  • false :

    false

true

CronscalerEnabled

boolean

否

服務是否開啟定時擴縮容。

枚舉值:

  • true :

    true

  • false :

    false

true

AutoscalerEnabled

boolean

否

服務是否開啟彈性伸縮。

枚舉值:

  • true :

    true

  • false :

    false

true

TrafficState

string

否

是否承接群組流量(僅對群組服務有效)。

枚舉值:

  • standalone :

    否。

  • grouping :

    是。

grouping

CallerUid

string

否

服務建立帳號的 UID。

19989224166xxxxxxx

Accessibility

string

否

按服務可見性篩選。PUBLIC 表示公開服務,PRIVATE 表示私有服務。

枚舉值:

  • PUBLIC :

    公開服務。

  • PRIVATE :

    私有服務。

PUBLIC

返回參數

名稱

類型

描述

樣本值

object

傳回結果。

RequestId

string

請求 ID。

40325405-579C-4D82****

Services

array

服務列表。

Service

服務執行個體。

PageNumber

integer

傳回查詢的服務列表的目前頁碼。

1

PageSize

integer

傳回每頁顯示的服務數量。

100

TotalCount

integer

服務總數。

2

樣本

正常返回樣本

JSON格式

{
  "RequestId": "40325405-579C-4D82****",
  "Services": [
    {
      "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",
      "TrafficState": "standalone",
      "QuotaId": "quotaxxxxx",
      "Gateway": "gw-xxxxxx",
      "GPUMemory": 20,
      "GPUCorePercentage": 50,
      "ResourceBurstable": true,
      "CronscalerEnabled": true,
      "AutoscalerEnabled": true,
      "InstanceCountInResource": {
        "Public": 10,
        "Dedicated": 10,
        "Quota": 10
      },
      "WorkloadType": ""
    }
  ],
  "PageNumber": 1,
  "PageSize": 100,
  "TotalCount": 2
}

錯誤碼

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

變更歷史

更多資訊,參考變更詳情。