Queries application information.

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 HTTPS|HTTP

Request parameters

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

The ID of the application.

Response parameters

Parameter Type Example Description
Applcation Struct

The information about the application.

AppId String sdfsdf

The ID of the application.

ApplicationType String War

The deployment type of the application. Valid values: War and FatJar. The value War indicates that the application is deployed by using a WAR package. The value FatJar indicates that the application is deployed by using a FatJar package. If the returned value is empty, the application is not deployed.

BuildPackageId Long 38

The build package number of EDAS Container.

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

The ID of the cluster.

ClusterType Integer 2

The environment type of the cluster in which the application is deployed. Valid values: 0, 1, 2, and 3. The value 0 indicates a standard Docker cluster. The value 1 indicates a Swarm cluster. The value 2 indicates an Elastic Compute Service (ECS) cluster. The value 3 indicates a Kubernetes cluster.

Cpu Integer 0

The number of CPU cores.

CreateTime Long 151200000

The time when the application was created.

Description String ""

The description of the application.

Dockerize Boolean false

Indicates whether the application runs in a Docker container.

Email String XXXXXXXX@qq.com

The email address of the user who created the application.

ExtSlbId String ""

The ID of the Internet-facing Server Load Balancer (SLB) instance.

ExtSlbIp String ""

The IP address of the Internet-facing SLB instance.

ExtSlbName String testapp

The name of the Internet-facing SLB instance.

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

The health check URL.

InstanceCount Integer 0

The number of application instances.

Memory Integer 0

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

Name String ""

The name of the application.

NameSpace String doc-test

The namespace in which the application is deployed.

Owner String test****

The user who created the application.

Port Integer 8080

The port used by the application.

RegionId String cn-beijing

The ID of the region where the application is deployed.

RunningInstanceCount Integer 0

The number of running application instances.

SlbId String ""

The ID of the internal-facing SLB instance.

SlbInfo String test

The information about the SLB instance.

SlbIp String 192.168.0.100

The IP address of the internal-facing SLB instance.

SlbName String test

The name of the internal-facing SLB instance.

SlbPort Integer 80

The port used by the internal-facing SLB instance.

UserId String test@dd******

The ID of the Alibaba Cloud account.

Code Integer 200

The HTTP status code.

Message String success

The response message.

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

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<Message>success</Message>
<Applcation>
    <Owner>test</Owner>
    <Description/>
    <Email>XXXXXXXX@qq.com</Email>
    <HealthCheckUrl/>
    <Memory>0</Memory>
    <Port>8080</Port>
    <Cpu>0</Cpu>
    <SlbName/>
    <Name>doc-test</Name>
    <SlbPort>0</SlbPort>
    <Dockerize>false</Dockerize>
    <BuildPackageId>58</BuildPackageId>
    <ClusterId>5ffc5895-****-b03a-c223c6c3****</ClusterId>
    <CreateTime>1577259573911</CreateTime>
    <ClusterType>2</ClusterType>
    <InstanceCount>1</InstanceCount>
    <ExtSlbName/>
    <ApplicationType>War</ApplicationType>
    <AppId>30e5f902-****-450f-b018-4e183258****</AppId>
    <UserId>test</UserId>
    <RegionId>cn-beijing:docTest</RegionId>
    <RunningInstanceCount>0</RunningInstanceCount>
</Applcation>
<Code>200</Code>

JSON format

{
	"Message": "success",
	"Applcation": {
		"Owner": "test",
		"Description": "",
		"Email": "XXXXXXXX@qq.com",
		"HealthCheckUrl": "",
		"Memory": 0,
		"Port": 8080,
		"Cpu": 0,
		"SlbName": "",
		"Name": "doc-test",
		"SlbPort": 0,
		"Dockerize": false,
		"BuildPackageId": 58,
		"ClusterId": "5ffc5895-****-b03a-c223c6c3****",
		"CreateTime": 1577259573911,
		"ClusterType": 2,
		"InstanceCount": 1,
		"ExtSlbName": "",
		"ApplicationType": "War",
		"AppId": "30e5f902-****-450f-b018-4e183258****",
		"UserId": "test",
		"RegionId": "cn-beijing:docTest",
		"RunningInstanceCount": 0
	},
	"Code": 200
}

Error codes

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