ListServices

Updated at:

Queries application observability services in batches.

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

cms:ListServices

list

*Service

acs:cms:{#regionId}:{#accountId}:workspace/{#Workspace}/service/*

None None

Request syntax

GET /workspace/{workspace}/services HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

workspace

string

Yes

The name of the workspace.

workspace-test

Request parameters

Parameter

Type

Required

Description

Example

nextToken

string

No

The token for the next query. An empty value indicates the last page.

7-b81a-4bc9-bbfa-a50cc6988667

maxResults

integer

No

The maximum number of records to return for the current request.

10

serviceType

string

No

The type of the service.

TRACE

serviceName

string

No

The service name.

app-demo

resourceGroupId

string

No

The ID of the resource group.

rg-aekxxzuad5zzzz

tags

array<object>

No

The array of tags.

object

No

The tag.

key

string

No

The key of the tag.

evn

value

string

No

The value of the tag.

prod

Response elements

Element

Type

Description

Example

object

requestId

string

The request ID.

0CEC5375-C554-562B-A65F-9A629907C1F0

nextToken

string

The pagination token.

2-ba4d-4b9f-aa24-dcb067a30f1c

totalCount

integer

The total number of entries.

66

maxResults

integer

The maximum number of results to return. Maximum value: 200.

10

services

array<object>

The list of service information.

object

The service information.

serviceId

string

The ID of the service.

jm2pl0yoqf@d4905cb11a4f218dfb0a8

serviceName

string

The service name.

demo-app

createTime

string

The time when the service was created.

2025-07-01T02:23:59Z

serviceType

string

The type of the service.

TRACE

serviceStatus

string

The status of the service. This parameter is valid only when serviceType is set to RUM.

Running

displayName

string

The display name. This parameter is valid only when serviceType is set to RUM.

test

pid

string

The legacy ARMS application ID for backward compatibility.

kgcsf@192197e828d51aa

description

string

The description of the service. This parameter is valid only when serviceType is set to RUM.

workspace api monitor test

attributes

string

The extended information.

{"language":"java"}

workspace

string

The workspace.

default-cms-1192928460540589-cn-hangzhou

resourceGroupId

string

The ID of the resource group.

rg-aekxxzuad5zzzz

Examples

Success response

JSON format

{
  "requestId": "0CEC5375-C554-562B-A65F-9A629907C1F0",
  "nextToken": "2-ba4d-4b9f-aa24-dcb067a30f1c",
  "totalCount": 66,
  "maxResults": 10,
  "services": [
    {
      "serviceId": "jm2pl0yoqf@d4905cb11a4f218dfb0a8",
      "serviceName": "demo-app",
      "createTime": "2025-07-01T02:23:59Z",
      "serviceType": "TRACE",
      "serviceStatus": "Running",
      "displayName": "test",
      "pid": "kgcsf@192197e828d51aa",
      "description": "workspace api monitor test",
      "attributes": "{\"language\":\"java\"}",
      "workspace": "default-cms-1192928460540589-cn-hangzhou",
      "resourceGroupId": "rg-aekxxzuad5zzzz"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.