ListServices

Updated at:

Lists services.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eas:ListServices

get

*Service

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

None None

Request syntax

GET /api/v2/services HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

Sort

string

No

The sort field. By default, timestamp fields are sorted in descending order.

CreateTime

Order

string

No

The sort order. Valid values:

  • desc: Descending order. This is the default value.

  • asc: Ascending order.

asc

Filter

string

No

The fuzzy match field. Only fuzzy matching by service name is supported.

foo

PageNumber

integer

No

The page number of the service list to return. Default value: 1.

1

PageSize

integer

No

The number of services to return on each page during a paged query. Default value: 100.

100

GroupName

string

No

The name of the service group. For information about how to obtain the service group name, see ListServices.

foo

ParentServiceUid

string

No

The ID of the primary service that corresponds to the band member service.

eas-m-ijafy3c8cxxxx

ServiceType

string

No

The service type. Valid values:

  • Async

  • Standard

  • Queue

  • LLM

  • RAG

  • Serverless

  • LLMGatewayService

  • Offline Task

  • SDCluster

  • ScalableJob

  • ScalableJobService

  • AssistantJob

Valid values:

  • AssistantJob :

    AssistantJob

  • Async :

    Asynchronous service.

  • LLMGatewayService :

    LLM intelligent routing.

  • RAG :

    RAG scenario-based deployment.

  • SDCluster :

    SDCluster

  • ScalableJob :

    Scalable job.

  • ScalableJobService :

    Scalable job service.

  • Standard :

    Standard deployment.

  • OfflineTask :

    Offline task.

  • Serverless :

    Serverless

  • LLM :

    LLM scenario-based deployment.

  • Queue :

    Queue service.

Standard

Label

object

No

The label used to filter services.

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

string

No

Specify the label in the {"key":"value"} format. The value can be null or an empty string, which indicates that services are filtered only by key and the value can be any value.

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

ServiceStatus

string

No

The running status of the service.

Valid values:

  • Creating :

    Creating

  • Stopped :

    Stopped

  • Cloning :

    Cloning

  • Complete :

    Complete

  • Failed :

    Failed

  • Stopping :

    Stopping

  • Updating :

    Updating

  • HotUpdate :

    HotUpdate

  • Waiting :

    Waiting

  • Committing :

    Committing

  • DeleteFailed :

    DeleteFailed

  • Starting :

    Starting

  • Developing :

    Developing

  • Running :

    Running

  • Scaling :

    Scaling

  • Deleted :

    Deleted

  • Deleting :

    Deleting

  • Pending :

    Pending

Running

ServiceName

string

No

The name of the service.

echo_test

ServiceUid

string

No

The UID of the service.

eas-m-c9iw3yitxxxx

ResourceName deprecated

string

No

The name or ID of the resource group to which the service belongs.

eas-r-hd0qwy8cxxxx

WorkspaceId

string

No

The workspace ID.

1234**

QuotaId

string

No

The quota ID.

quota1****

Gateway

string

No

The ID of the private gateway.

gw-1uhcqmsc7x22******

Role

string

No

The service role.

Valid values:

  • DataLoader :

    DataLoader

  • FrontEnd :

    FrontEnd

  • DataSet :

    DataSet

  • SDProxy :

    SDProxy

  • LLMScheduler :

    LLMScheduler

  • ScalableJob :

    ScalableJob

  • Job :

    Job

  • LLMGateway :

    LLMGateway

  • Queue :

    Queue

LLMGateway

ResourceType

string

No

The type of resource used by the service. Valid values:

  • PublicResource

  • DedicatedResource

  • Lingjun

  • SelfManagedLingjun

Valid values:

  • Lingjun :

    Lingjun resource quota.

  • DedicatedResource :

    Dedicated resource group.

  • PublicResource :

    Public resource group.

  • SelfManagedLingjun :

    Self-managed Lingjun resource group.

PublicResource

IncludeNoWorkspace

boolean

No

Specifies whether to include services that do not belong to any workspace. Default value: true.

true

ResourceAliasName

string

No

The custom name of the resource group.

example

ResourceId

string

No

The ID of the resource group. For information about how to query the resource group ID, see ListResources.

eas-r-asdas****

ResourceBurstable

boolean

No

Specifies whether the burstable resource pool is enabled for the service.

Valid values:

  • false :

    false

  • true :

    true

true

CronscalerEnabled

boolean

No

Specifies whether scheduled scaling is enabled for the service.

Valid values:

  • false :

    false

  • true :

    true

true

AutoscalerEnabled

boolean

No

Specifies whether elastic scaling is enabled for the service.

Valid values:

  • false :

    false

  • true :

    true

true

TrafficState

string

No

Specifies whether to receive group traffic. This parameter is valid only for group services.

Valid values:

  • standalone :

    No.

  • grouping :

    Yes.

grouping

CallerUid

string

No

The UID of the account that created the service.

19989224166xxxxxxx

Accessibility

string

No

Filters services by visibility. PUBLIC indicates a public service, and PRIVATE indicates a private service.

Valid values:

  • PUBLIC :

    Public service.

  • PRIVATE :

    Private service.

PUBLIC

Response elements

Element

Type

Description

Example

object

The returned result.

RequestId

string

The request ID.

40325405-579C-4D82****

Services

array

The list of services.

Service

The service instance.

PageNumber

integer

The current page number of the returned service list.

1

PageSize

integer

The number of services returned on each page.

100

TotalCount

integer

The total number of services.

2

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.