ListServices
Queries application observability services in batches.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ListServices |
list |
*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.