ListApplications
Retrieves a list of applications.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:ListApplications |
get |
*All Resource
|
None | 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 entries to return on each page during paging in a paged query. Valid values: 0 to 10000. |
20 |
| AppName |
string |
No |
The name of the application. |
demo-app |
| NamespaceId |
string |
No |
The ID of the namespace. |
cn-beijing:demo |
| Tags |
string |
No |
The tag key-value pairs. Valid values:
Tag keys and values are case-sensitive. If you specify multiple tags, multiple tags are created and bound to the specified resource at the same time. A tag key on a resource can correspond to only one tag value. If you add a tag with an existing tag key, the tag value is updated to the new value. A tag key or value cannot start with |
[{"key":"key","value":"value"}] |
| OrderBy |
string |
No |
The field by which to sort applications. Valid values:
|
runnings |
| Reverse |
boolean |
No |
Specifies whether to sort in ascending order based on the running status of application instances. If the statuses are the same, the instances are sorted by instance ID. Valid values:
The ascending order of instance statuses is as follows:
|
true |
| FieldType |
string |
No |
The dimension by which to filter applications. Valid values:
|
appName |
| FieldValue |
string |
No |
The application name, application ID, SLB IP address, or instance IP address of the target application. |
demo-app |
| AppSource |
string |
No |
The type of the Serverless App Engine (SAE) application. Valid values:
|
micro_service |
| IsStateful |
string |
No |
Specifies whether the application is stateful. |
true |
| NewSaeVersion |
string |
No |
The application edition. Valid values:
|
pro |
| ProgrammingLanguage |
string |
No |
The programming language of the application. Valid values: java, php, python, dotnet, html, and other. |
java |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| Message |
string |
The additional information about the call result. |
success |
| RequestId |
string |
The request ID. |
B4D805CA-926D-41B1-8E63-7AD0C1ED**** |
| Data |
object |
The list of applications. |
|
| CurrentPage |
integer |
The current page number. |
1 |
| TotalSize |
integer |
The total number of applications. |
2 |
| PageSize |
integer |
The page size. |
20 |
| Applications |
array<object> |
The list of applications. |
|
|
array<object> |
The information about the applications. |
||
| AppName |
string |
The name of the application. |
demo-app |
| NamespaceId |
string |
The ID of the namespace. |
cn-beijing:demo |
| AppDeletingStatus |
boolean |
Indicates whether the application is being deleted. Valid values:
|
false |
| AppId |
string |
The application ID. |
f7730764-d88f-4b9a-8d8e-cd8efbfe**** |
| Tags |
array<object> |
The application tags. |
|
|
object |
The information about the application tag. |
||
| Key |
string |
The tag key. |
key |
| Value |
string |
The tag value. |
value |
| RunningInstances |
integer |
The number of running instances. |
2 |
| Instances |
integer |
The number of application instances. |
2 |
| RegionId |
string |
The region ID. |
cn-beijing |
| AppDescription |
string |
The application description. |
description |
| Cpu |
integer |
The CPU resources required for each instance, in millicores. The value cannot be 0. Only the following defined specifications are supported:
|
1000 |
| Mem |
integer |
The memory resources required for each instance, in MB. The value cannot be 0. The memory size has a one-to-one mapping with the CPU size. Only the following defined specifications are supported:
|
1024 |
| MseEnabled |
boolean |
Indicates whether Microservices Engine (MSE) microservice governance is enabled for the application. |
true |
| MseNamespaceId |
string |
The MSE microservice governance namespace. Valid values:
|
sae-ent |
| BaseAppId |
string |
The base application ID. This property exists only for canary release applications. |
xxx-xxx-xx-xxx |
| ProgrammingLanguage |
string |
The programming language of the application. |
java |
| Children |
array<object> |
The list of canary release applications for the application. |
|
|
array<object> |
The detailed information. |
||
| AppName |
string |
The name of the application. |
app1 |
| NamespaceId |
string |
The namespace ID. |
cn-beijing:demo |
| AppDeletingStatus |
boolean |
Indicates whether the application is being deleted. |
false |
| AppId |
string |
The application ID. |
xxx-xxx-xxx-xxx |
| ScaleRuleEnabled |
boolean |
Indicates whether the elastic scaling policy is enabled. |
false |
| ScaleRuleType |
string |
The type of the elastic rule. |
timing |
| Tags |
array<object> |
The application tags. |
|
|
object |
The application tags. |
||
| Key |
string |
The tag key. |
key |
| Value |
string |
The tag value. |
value |
| RunningInstances |
integer |
The number of running instances. |
2 |
| Instances |
integer |
The number of instances. |
2 |
| RegionId |
string |
The region ID. |
cn-beijing |
| AppDescription |
string |
The application description. |
Test application |
| Cpu |
integer |
The CPU size. |
2000 |
| Mem |
integer |
The memory size. |
2048 |
| MseEnabled |
boolean |
Indicates whether MSE microservice governance is enabled for the application. |
true |
| BaseAppId |
string |
The base application ID. |
ee99cce6-1c8e-4bfa-96c3-3e2fa9****** |
| ProgrammingLanguage |
string |
The programming language used by the application. |
java |
| AppType |
string |
The deployment method of the application. |
Image |
| NamespaceName |
string |
The namespace name. |
demo |
| IsStateful |
boolean |
Specifies whether the application is stateful. |
|
| NewSaeVersion |
string |
The application edition. Valid values:
|
pro |
| ResourceType |
string |
The resource type. |
default |
| EnableIdle |
string |
Indicates whether the idle mode is enabled. |
false |
| ImageUrl |
string |
The image address. |
registry.cn-hangzhou.aliyuncs.com/sae-serverless-demo/sae-demo:microservice-java-provider-v1.0 |
| PackageUrl |
string |
The deployment package address. |
https://sae-oss-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/apps/K8S_APP_ID/1421801774382676/adf2624a-66fd-4a2b-8caa-6921da******/hello-sae.jar |
| AppType |
string |
The deployment method of the application. |
Image |
| NamespaceName |
string |
The namespace name. |
demo |
| IsStateful |
boolean |
Specifies whether the application is stateful. |
|
| NewSaeVersion |
string |
The application edition. Valid values:
|
pro |
| EnableIdle |
string |
Indicates whether the idle mode is enabled. |
false |
| DiskSize |
integer |
The disk storage size, in GB. |
20 |
| VpcId |
string |
The VPC ID. |
vpc-2ze0i263cnn311nvj**** |
| ResourceType |
string |
The resource type. |
default |
| Labels |
object |
The labels. |
{"environment":"prod"} |
|
string |
The value of the application label. |
prod |
|
| RaspEnabled |
boolean |
Indicates whether runtime security protection (RASP) is enabled for the application. |
|
| ErrorCode |
string |
The error code.
|
Illegal.argument |
| Code |
string |
The API status code or POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the application list was retrieved successfully. Valid values:
|
true |
| CurrentPage |
integer |
The current page number. |
1 |
| TotalSize |
integer |
The total number of applications. |
2 |
| PageSize |
integer |
The page size. |
20 |
Examples
Success response
JSON format
{
"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 application",
"Cpu": 2000,
"Mem": 2048,
"MseEnabled": true,
"BaseAppId": " ee99cce6-1c8e-4bfa-96c3-3e2fa9******",
"ProgrammingLanguage": "java",
"AppType": "Image",
"NamespaceName": "demo",
"IsStateful": false,
"NewSaeVersion": "pro",
"ResourceType": "default",
"EnableIdle": "false"
}
],
"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": false,
"NewSaeVersion": "pro",
"EnableIdle": "false",
"DiskSize": 20,
"VpcId": "vpc-2ze0i263cnn311nvj****",
"ResourceType": "default",
"Labels": {
"key": "prod"
},
"RaspEnabled": false
}
]
},
"ErrorCode": "Illegal.argument",
"Code": "200",
"Success": true,
"CurrentPage": 1,
"TotalSize": 2,
"PageSize": 20
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Illegal.argument | Illegal argument | Invalid parameter. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.