All Products
Search
Document Center

Enterprise Distributed Application Service:ListApplication

更新時間:Nov 29, 2024

Queries a list of applications.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
edas:ReadApplication
*All Resources
*
    none
none

Request syntax

POST /pop/v5/app/app_list HTTP/1.1

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" ]
CurrentPageintegerNo

The page number. Default value: 1.

1
PageSizeintegerNo

The number of entries per page.

20

Response parameters

ParameterTypeDescriptionExample
object

The content returned.

Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message that is returned.

success
RequestIdstring

The request ID.

5d6fa0bc-cc3**********
ApplicationListarray<object>

The information about applications.

Applicationobject

The information about the array object.

AppIdstring

The ID of the application.

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

The region ID of the application.

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 ID of the cluster.

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

The ID of the resource group.

rg-aek24j4s4b*****
K8sNamespacestring

The namespace of the Kubernetes cluster.

default
NamespaceIdstring

The ID of the microservices namespace.

cn-hangzhou:test

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": "cn-hangzhou:test"
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2023-07-12The request parameters of the API has changedView Change Details
2023-03-17The response structure of the API has changedView Change Details