Queries the created applications.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:ListApplications |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterNames |
string |
No |
The name of the application cluster. Separate multiple names with commas (,). If you want to query applications of all clusters in your account, specify All for this parameter. Default value: All. |
poc,pre |
| AppVersions |
string |
No |
The version number of the application. Separate multiple version numbers with commas (,). If you want to query data of all versions of applications, specify All for this parameter. By default, only data of applications in the stable versions are queried. |
v1,v2 |
| Level |
string |
No |
The region level by which edge resources of the application are collected. The value is of the enumeration type. Valid values:
Default value: National. Valid values:
|
National |
| OutAppInfoParams |
string |
No |
Specifies whether to return other information about the application, such as statistics on resource instances and pods. The value must be a JSON string. By default, all information is returned. |
{\"appInfo\":true,\"detailStat\": true, \"appVersionStat\": true, \"districtStat\":true ,\"instanceStat\": true, \"podCountStat\": true} |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. This parameter is optional if you want to return the push status of all data files. |
1 |
| PageSize |
integer |
No |
The number of entries per page. This parameter is optional if you want to return all information about the applications. |
10 |
| MinDate |
string |
No |
The beginning of the time range to query. Specify the time in the 2006-01-02 format. By default, the time range to query is not restricted. |
2022-02-15 |
| MaxDate |
string |
No |
The end of the time range to query. Specify the time in the 2006-01-02 format. By default, the time range to query is not restricted. |
2022-02-20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Applications |
object |
||
| Application |
array<object> |
Details about applications. |
|
|
array<object> |
|||
| AppList |
object |
||
| App |
array<object> |
Details about the application. |
|
|
object |
|||
| AppId |
string |
The ID of the application. |
e76f8985-7965-41fc-925b-9648bb6bf650 |
| AppInfo |
string |
The information about the application, such as the resource specification, parameter configuration, and resources. |
{ "AppStatus":{ "Phase":"RUNNING", "StatusDescrip":"{\"status\":\"UPDATE_SUCCESS\",\"step\":\"DONE\",\"descrip\":\"update to version:1022 success\",\"start_time\":\"2022-03-01 16:18:22\"}", "UpdateTime":"2022-03-01 16:18:22", "OrderStatus":null }, "ResourceAttribute":{ "NetSecurityInfo":null, "InitConfig":null, "InventoryType":"Ens", "InstanceSpec":"ens.gi6s-c12g1.large", "SystemDiskSize":100, "DataDiskSize":0, "BandwithOut":5000, "SchedulingStrategy":"Disperse", "ImageId":"m-5or73kzkuxytv7hh6wxr6yc5q", "ResourceType":"Linux", "AreaLevel":"National", "IpType":"PublicIP" }, "WorkloadAttribute":[ { "Name":"andorid", "Count":15, "ServiceConfig":{ "PortsBindConfig":{ "NetServiceContainer":"uravi-service", "Ports":[ { "Protocol":"TCP", "BindType":"Mapping", "StartNodePorts":"31000-31009", "ContainerPorts":"4440-4449" }, { "Protocol":"TCP", "BindType":"PassThrough", "StartNodePorts":"59000-59000", "ContainerPorts":"59000-59000" }, { "Protocol":"UDP", "BindType":"PassThrough", "StartNodePorts":"40001-40010", "ContainerPorts":"40001-40010" } ] }, "ServiceContainerName":"android" } }, { "Name":"coturn", "Count":1, "ServiceConfig":{ "PortsBindConfig":{ "NetServiceContainer":"coturn", "Ports":[ { "Protocol":"TCP", "BindType":"PassThrough", "StartNodePorts":"3478-3478", "ContainerPorts":"3478-3478" }, { "Protocol":"UDP", "BindType":"PassThrough", "StartNodePorts":"3478-3478", "ContainerPorts":"3478-3478" } ] }, "ServiceContainerName":"coturn" } }, { "Name":"aic-manager", "Count":1, "ServiceConfig":null } ] } |
| ClusterName |
string |
The name of the cluster. |
ay-ads-hz-h |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| RequestId |
string |
The ID of the request. |
50373E71-7710-4620-8AAB-133CCE49451C |
| TotalCount |
integer |
The total number of entries returned. |
49 |
Examples
Success response
JSON format
{
"Applications": {
"Application": [
{
"AppList": {
"App": [
{
"AppId": "e76f8985-7965-41fc-925b-9648bb6bf650",
"AppInfo": "{\n \"AppStatus\":{\n \"Phase\":\"RUNNING\",\n \"StatusDescrip\":\"{\\\"status\\\":\\\"UPDATE_SUCCESS\\\",\\\"step\\\":\\\"DONE\\\",\\\"descrip\\\":\\\"update to version:1022 success\\\",\\\"start_time\\\":\\\"2022-03-01 16:18:22\\\"}\",\n \"UpdateTime\":\"2022-03-01 16:18:22\",\n \"OrderStatus\":null\n },\n \"ResourceAttribute\":{\n \"NetSecurityInfo\":null,\n \"InitConfig\":null,\n \"InventoryType\":\"Ens\",\n \"InstanceSpec\":\"ens.gi6s-c12g1.large\",\n \"SystemDiskSize\":100,\n \"DataDiskSize\":0,\n \"BandwithOut\":5000,\n \"SchedulingStrategy\":\"Disperse\",\n \"ImageId\":\"m-5or73kzkuxytv7hh6wxr6yc5q\",\n \"ResourceType\":\"Linux\",\n \"AreaLevel\":\"National\",\n \"IpType\":\"PublicIP\"\n },\n \"WorkloadAttribute\":[\n {\n \"Name\":\"andorid\",\n \"Count\":15,\n \"ServiceConfig\":{\n \"PortsBindConfig\":{\n \"NetServiceContainer\":\"uravi-service\",\n \"Ports\":[\n {\n \"Protocol\":\"TCP\",\n \"BindType\":\"Mapping\",\n \"StartNodePorts\":\"31000-31009\",\n \"ContainerPorts\":\"4440-4449\"\n },\n {\n \"Protocol\":\"TCP\",\n \"BindType\":\"PassThrough\",\n \"StartNodePorts\":\"59000-59000\",\n \"ContainerPorts\":\"59000-59000\"\n },\n {\n \"Protocol\":\"UDP\",\n \"BindType\":\"PassThrough\",\n \"StartNodePorts\":\"40001-40010\",\n \"ContainerPorts\":\"40001-40010\"\n }\n ]\n },\n \"ServiceContainerName\":\"android\"\n }\n },\n {\n \"Name\":\"coturn\",\n \"Count\":1,\n \"ServiceConfig\":{\n \"PortsBindConfig\":{\n \"NetServiceContainer\":\"coturn\",\n \"Ports\":[\n {\n \"Protocol\":\"TCP\",\n \"BindType\":\"PassThrough\",\n \"StartNodePorts\":\"3478-3478\",\n \"ContainerPorts\":\"3478-3478\"\n },\n {\n \"Protocol\":\"UDP\",\n \"BindType\":\"PassThrough\",\n \"StartNodePorts\":\"3478-3478\",\n \"ContainerPorts\":\"3478-3478\"\n }\n ]\n },\n \"ServiceContainerName\":\"coturn\"\n }\n },\n {\n \"Name\":\"aic-manager\",\n \"Count\":1,\n \"ServiceConfig\":null\n }\n ]\n}"
}
]
},
"ClusterName": "ay-ads-hz-h"
}
]
},
"PageNumber": 1,
"PageSize": 10,
"RequestId": "50373E71-7710-4620-8AAB-133CCE49451C",
"TotalCount": 49
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.