Queries the details about a specified application in an Elastic Compute Service (ECS) cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request header. For more information, see Common request parameters.

Request syntax

POST /pop/v5/app/app_info HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
AppId String Query Yes 29f0******************

The ID of the application.

Response parameters

Parameter Type Example Description
Application Struct

The information about the application.

AppId String cfac****-847e-4325-ad56-b5c2bc54****

The ID of the application.

ApplicationType String FatJar

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
  • Empty: The application is not deployed.
BuildPackageId Long 59

The build package number of EDAS Container.

ClusterId String 5ffc5895-****-b03a-c223c6c3****

The ID of the ECS cluster where the application is deployed.

ClusterType String 2

The type of the cluster. Valid values:

  • 0: normal Docker cluster
  • 1: Swarm cluster
  • 2: ECS cluster
  • 3: Kubernetes cluster
  • 4: cluster in which Pandora automatically registers applications
Cpu Integer 1

The number of CPU cores.

CreateTime Long 1610550324226

The time when the application was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

Description String test

The description of the application.

Dockerize Boolean false

Indicates whether the application is a Docker application. Valid values:

  • false: The application is not a Docker application.
  • true: The application is a Docker application.
Email String xxxx@gmail.com

The email address of the user who created the application.

ExtSlbId String lb-bp1vceck3s3b9xs6x****

The ID of the Internet-facing Server Load Balancer (SLB) instance that is bound to the application.

ExtSlbIp String 47.114.xxx.xx

The IP address of the Internet-facing SLB instance that is bound to the application.

ExtSlbName String aa8eee383db084f42aebc4d9f52c****

The name of the Internet-facing SLB instance that is bound to the application.

HealthCheckUrl String http://127.0.0.1:8080/xyz.html

The health check URL of the application.

InstanceCount Integer 1

The number of instances deployed with the application.

Memory Integer 0

The memory size of the application instance. Unit: MB.

Name String test

The name of the application.

NameSpace String doc-test

The namespace where the application is located.

Owner String ouou@117274586608****

The user who created the application.

Port Integer 8080

The service port of the application.

RegionId String cn-hangzhou

The ID of the region where the application is located.

RunningInstanceCount Integer 1

The number of running application instances for the application.

SlbId String lb-bp****ck3s3b9xs6x****

The ID of the internal-facing SLB instance that is bound to the application.

SlbInfo String test

The description of the internal-facing SLB instance that is bound to the application.

SlbIp String 192.168.0.100

The IP address of the internal-facing SLB instance that is bound to the application.

SlbName String test

The name of the internal-facing SLB instance that is bound to the application.

SlbPort Integer 80

The port of the internal-facing SLB instance that is bound to the application.

UserId String test@dd******

The ID of the Alibaba Cloud account.

Code Integer 200

The HTTP status code.

Message String success

The returned message.

RequestId String F8DFGED-K98***************

The ID of the request.

Examples

Sample requests

POST /pop/v5/app/app_info HTTP/1.1
Common request header
{
  "AppId": "f4ccf3-****-****-****"
}

Sample success responses

XML format

<RequestId>F8DFGED-K98***************</RequestId>
<Message>success</Message>
<Code>200</Code>
<Application>
    <SlbId>lb-bp****ck3s3b9xs6x****</SlbId>
    <Owner>ouou@117274586608****</Owner>
    <Email>xxxx@gmail.com</Email>
    <Description>test</Description>
    <HealthCheckUrl>http://127.0.0.1:8080/xyz.html</HealthCheckUrl>
    <Memory>0</Memory>
    <Port>8080</Port>
    <NameSpace>doc-test</NameSpace>
    <Cpu>1</Cpu>
    <SlbName>test</SlbName>
    <Name>test</Name>
    <SlbPort>80</SlbPort>
    <SlbIp>192.168.0.100</SlbIp>
    <BuildPackageId>59</BuildPackageId>
    <Dockerize>false</Dockerize>
    <ClusterId>5ffc5895-****-b03a-c223c6c3****</ClusterId>
    <CreateTime>1610550324226</CreateTime>
    <ClusterType>2</ClusterType>
    <SlbInfo>test</SlbInfo>
    <ExtSlbId>lb-bp1vceck3s3b9xs6x****</ExtSlbId>
    <ApplicationType>FatJar</ApplicationType>
    <ExtSlbName>aa8eee383db084f42aebc4d9f52c****</ExtSlbName>
    <InstanceCount>1</InstanceCount>
    <AppId>cfac****-847e-4325-ad56-b5c2bc54****</AppId>
    <UserId>test@dd******</UserId>
    <RegionId>cn-hangzhou</RegionId>
    <ExtSlbIp>47.114.xxx.xx</ExtSlbIp>
    <RunningInstanceCount>1</RunningInstanceCount>
</Application>

JSON format

{
    "RequestId": "F8DFGED-K98***************",
    "Message": "success",
    "Code": 200,
    "Application": {
        "SlbId": "lb-bp****ck3s3b9xs6x****",
        "Owner": "ouou@117274586608****",
        "Email": "xxxx@gmail.com",
        "Description": "test",
        "HealthCheckUrl": "http://127.0.0.1:8080/xyz.html",
        "Memory": 0,
        "Port": 8080,
        "NameSpace": "doc-test",
        "Cpu": 1,
        "SlbName": "test",
        "Name": "test",
        "SlbPort": 80,
        "SlbIp": "192.168.0.100",
        "BuildPackageId": 59,
        "Dockerize": false,
        "ClusterId": "5ffc5895-****-b03a-c223c6c3****",
        "CreateTime": 1610550324226,
        "ClusterType": 2,
        "SlbInfo": "test",
        "ExtSlbId": "lb-bp1vceck3s3b9xs6x****",
        "ApplicationType": "FatJar",
        "ExtSlbName": "aa8eee383db084f42aebc4d9f52c****",
        "InstanceCount": 1,
        "AppId": "cfac****-847e-4325-ad56-b5c2bc54****",
        "UserId": "test@dd******",
        "RegionId": "cn-hangzhou",
        "ExtSlbIp": "47.114.xxx.xx",
        "RunningInstanceCount": 1
    }
}

Error codes

For a list of error codes, visit the API Error Center.