Queries the created 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:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is 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 |
---|---|---|---|---|
ens:ListApplications | get | *All Resources * |
| 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. | 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 all information about the applications. | 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 parameters
Examples
Sample success responses
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-12-21 | API Description Update. The Error code has changed | View Change Details |