All Products
Search
Document Center

Enterprise Distributed Application Service:ListApplication

Last Updated:Apr 23, 2023

Queries a list of applications.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringNo

The cluster ID. Specify this parameter if you want to filter applications by cluster.

c37aec2a-bcca-4ec1-****-************
LogicalRegionIdstringNo

The namespace ID. Specify this parameter if you want to filter applications by namespace.

cn-beijing:test
AppNamestringNo

The name of the application. Specify this parameter if you want to filter applications by application name.

testapp
ResourceGroupIdstringNo

The ID of the resource group. Specify this parameter if you want to filter applications by resource group.

rg-aek24j4s4b*****
LogicalRegionIdFilterstringNo

The ID of the namespace that you use in the exact search to filter applications.

cn-beijing:test
AppIdsstringNo

The application IDs.

[ "5657d271-****-4f03-9bb2-431f942886bb", "5657d271-****-4f03-9bb2-431f942bbddd" ]

Response parameters

ParameterTypeDescriptionExample
object

The response object.

Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message that is returned.

success
RequestIdstring

The request ID.

5d6fa0bc-cc3**********
ApplicationListarray

The applications that are queried.

object

The information about the array object.

AppIdstring

The application ID.

00ee517d-dd7d-4d4e-****-************
RegionIdstring

The region ID.

cn-beijing:docTes
Namestring

The name of the application.

doc-test-consumer
Instancesinteger

The number of application instances.

5
Portinteger

The service port of the application.

8080
Statestring

The state of the application. Valid values:

  • RUNNING: The application is running.
  • STOPPED: The application is stopped.
  • DEPLOYING: The application is being deployed.
  • DELETING: The application is being deleted.
RUNNING
CreateTimelong

The time when the application was created.

1664208000000
SlbIpstring

The IP address of the internal-facing Server Load Balancer (SLB) instance.

192.168.0.***
SlbPortinteger

The port of the internal-facing SLB instance.

80
SlbListenerPortinteger

The listener port of the internal-facing SLB instance.

8088
ExtSlbListenerPortinteger

The listener port of the Internet-facing SLB instance.

8080
BuildPackageIdlong

The build package number of Enterprise Distributed Application Service (EDAS) Container.

58
ExtSlbIpstring

The IP address of the Internet-facing SLB instance.

100.100.70.***
ApplicationTypestring

The deployment type of the application. Valid values:

  • War: The application is deployed by using a WAR package.
  • FatJar: The application is deployed by using a JAR package.
  • Image: The application is deployed by using an image.
  • If this parameter is empty, the application is not deployed.
FatJar
ClusterTypeinteger

The type of the cluster in which the application is deployed. Valid values:

  • 2: Elastic Compute Service (ECS) cluster
  • 3: self-managed Kubernetes cluster in EDAS
  • 5: Container Service for Kubernetes (ACK) cluster
2
RunningInstanceCountinteger

The number of running application instances.

0
ClusterIdstring

The cluster ID.

c37aec2a-bcca-4ec1-****-************
ResourceGroupIdstring

The ID of the resource group.

rg-aek24j4s4b*****
K8sNamespacestring

The namespace of the Kubernetes cluster.

default

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "5d6fa0bc-cc3**********",
  "ApplicationList": {
    "Application": [
      {
        "AppId": "00ee517d-dd7d-4d4e-****-************",
        "RegionId": "cn-beijing:docTes",
        "Name": "doc-test-consumer",
        "Instances": 5,
        "Port": 8080,
        "State": "RUNNING",
        "CreateTime": 1664208000000,
        "SlbIp": "192.168.0.***",
        "SlbPort": 80,
        "SlbListenerPort": 8088,
        "ExtSlbListenerPort": 8080,
        "BuildPackageId": 58,
        "ExtSlbIp": "100.100.70.***",
        "ApplicationType": "FatJar",
        "ClusterType": 2,
        "RunningInstanceCount": 0,
        "ClusterId": "c37aec2a-bcca-4ec1-****-************",
        "ResourceGroupId": "rg-aek24j4s4b*****",
        "K8sNamespace": "default",
        "NamespaceId": ""
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-03-17The response structure of the API operation changes.
Change itemChange content
Output ParametersThe response structure of the API operation changes.