Query a list of applications.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| sae:ListApplications | get | *All Resources * |
| none |
Request syntax
GET /pop/v1/sam/app/listApplications HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| CurrentPage | integer | No | The current page number. | 1 |
| PageSize | integer | No | The number of records in each page. Value range: [0,10000] | 20 |
| AppName | string | No | The application name. | demo-app |
| NamespaceId | string | No | The namespace ID. | cn-beijing:demo |
| Tags | string | No | The tag in the format of a key-value pair.
Tag keys and tag values are case-sensitive. If you specify multiple tags, the system adds all the tags to the specified resources. Each tag key on a resource can have only one tag value. If you create a tag that has the same key as an existing tag, the value of the existing tag is overwritten. Tag keys and tag values cannot start with | [{"key":"key","value":"value"}] |
| OrderBy | string | No | Specifies how applications are sorted. Valid values:
| running |
| Reverse | boolean | No | Sort by the running status of application instances. If the statuses are the same, sort by instance ID. The value options are as follows:
| true |
| FieldType | string | No | Set the filtering criteria for applications. The value options are as follows:
| appName |
| FieldValue | string | No | The name, ID, SLB IP, or instance IP of the target application. | demo-app |
| AppSource | string | No | The SAE application type. Valid values:
| micro_service |
Response parameters
Examples
Sample success responses
JSONformat
{
"Message": "success",
"RequestId": "B4D805CA-926D-41B1-8E63-7AD0C1ED****",
"Data": {
"CurrentPage": 1,
"TotalSize": 2,
"PageSize": 20,
"Applications": [
{
"AppName": "demo-app",
"NamespaceId": "cn-beijing:demo",
"AppDeletingStatus": false,
"AppId": "f7730764-d88f-4b9a-8d8e-cd8efbfe****",
"Tags": [
{
"Key": "key",
"Value": "value"
}
],
"RunningInstances": 2,
"Instances": 2,
"RegionId": "cn-beijing",
"AppDescription": "description",
"Cpu": 1000,
"Mem": 1024,
"MseEnabled": true,
"MseNamespaceId": "sae-ent",
"BaseAppId": "xxx-xxx-xx-xxx",
"ProgrammingLanguage": "java",
"Children": [
{
"AppName": "app1",
"NamespaceId": "cn-beijing:demo",
"AppDeletingStatus": false,
"AppId": "xxx-xxx-xxx-xxx",
"ScaleRuleEnabled": false,
"ScaleRuleType": "timing",
"Tags": [
{
"Key": "key",
"Value": "value"
}
],
"RunningInstances": 2,
"Instances": 2,
"RegionId": "cn-beijing",
"AppDescription": "Test",
"Cpu": 2000,
"Mem": 2048,
"MseEnabled": true,
"BaseAppId": " ee99cce6-1c8e-4bfa-96c3-3e2fa9******",
"ProgrammingLanguage": "java",
"AppType": "Image",
"NamespaceName": "demo",
"IsStateful": true,
"NewSaeVersion": "pro"
}
],
"ImageUrl": "registry.cn-hangzhou.aliyuncs.com/sae-serverless-demo/sae-demo:microservice-java-provider-v1.0",
"PackageUrl": "https://sae-oss-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/apps/K8S_APP_ID/1421801774382676/adf2624a-66fd-4a2b-8caa-6921da******/hello-sae.jar",
"AppType": "Image",
"NamespaceName": "demo",
"IsStateful": true,
"NewSaeVersion": "pro",
"EnableIdle": false,
"DiskSize": 20,
"VpcId": ""
}
]
},
"ErrorCode": "The ID of the request.\n",
"Code": 200,
"Success": true,
"CurrentPage": 1,
"TotalSize": 2,
"PageSize": 20
}Error codes
| HTTP status code | Error code | Error message |
|---|---|---|
| 400 | Illegal.argument | Illegal argument |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-12-05 | The Error code has changed. The response structure of the API has changed | View Change Details |
| 2025-12-01 | The Error code has changed. The request parameters of the API has changed | View Change Details |
| 2025-07-04 | The Error code has changed. The request parameters of the API has changed | View Change Details |
| 2025-06-24 | The Error code has changed. The response structure of the API has changed | View Change Details |
| 2025-04-07 | The Error code has changed. The response structure of the API has changed | View Change Details |
| 2025-03-14 | The Error code has changed. The response structure of the API has changed | View Change Details |
| 2025-03-12 | The Error code has changed. The response structure of the API has changed | View Change Details |
| 2025-02-27 | The Error code has changed. The response structure of the API has changed | View Change Details |
| 2024-09-13 | The Error code has changed. The response structure of the API has changed | View Change Details |
| 2024-05-24 | The Error code has changed. The response structure of the API has changed | View Change Details |
| 2024-05-21 | The Error code has changed. The response structure of the API has changed | View Change Details |
| 2024-01-22 | The Error code has changed. The request parameters of the API has changed | View Change Details |
| 2021-07-21 | The Error code has changed | View Change Details |
