Modifies the name, description, and owner of an application.

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/update_app_info HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
AppId String Query Yes c627c157-560d-43ff-****-************

The ID of the application.

AppName String Query No hello-edas

The name of the application. The value can be up to 32 characters in length.

Desc String Query No Test application

The description of the application. The value can be up to 256 characters in length.

Owner String Query No test@aliyun_xxx.com

The owner of the application. The value can be up to 127 characters in length.

Response parameters

Parameter Type Example Description
Applcation Struct

The list of applications.

AppId String c627c157-560d-43ff-****-************

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.
  • Image: The application is deployed by using an image.
  • If this parameter is empty, the application is not deployed.
BuildPackageId Long 58

The build package number of EDAS Container.

ClusterId String d7730a49-629a-47bd-****-f45eb01f****

The ID of the cluster.

ClusterType Integer 2

The type of the cluster. Valid values:

  • 0: normal Docker cluster
  • 1: Swarm cluster
  • 2: ECS cluster
  • 3: Kubernetes cluster built in Enterprise Distributed Application Service (EDAS)
  • 4: cluster in which Pandora automatically registers applications
  • 5: Container Service for Kubernetes (ACK) clusters
Cpu Integer 0

The number of CPU cores.

CreateTime Long 1577259573911

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.

ExtSlbId String ace93*******

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

ExtSlbIp String 39.97.XX.XX

The IP address of the Internet-facing SLB instance.

ExtSlbName String test

The name of the Internet-facing SLB instance.

HealthCheckUrl String http://127.0.XX.XX:8080/_etc.html

The health check URL.

InstanceCount Integer 1

The number of application instances.

Memory Integer 0

The size of memory configured for an application instance. Unit: MB.

Name String test

The name of the application.

Owner String test@aliyun_XXX.com

The owner of the application.

Port Integer 8080

The port used by the application.

RegionId String cn-beijing:****

The ID of the zone.

RunningInstanceCount Integer 1

The number of running application instances.

SlbId String a3d4*******

The ID of the internal-facing SLB instance.

SlbIp String 192.168.XX.XX

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 edas_com***@****.***

The ID of the Alibaba Cloud account.

Message String success

The returned message that indicates whether the request is successful.

Code Integer 200

The HTTP status code.

RequestId String D16979DC-4D42-**************

The ID of the request.

Examples

Sample requests

POST /pop/v5/app/update_app_info HTTP/1.1
Common request header
{
"AppId": ""
}

Sample success responses

XML format

<Message>success</Message>
<Applcation>
    <SlbPort>0</SlbPort>
    <BuildPackageId>0</BuildPackageId>
    <AppId>c627c157-560d-43ff-****-************</AppId>
    <Memory>0</Memory>
    <Cpu>0</Cpu>
    <Dockerize>false</Dockerize>
    <ApplicationType>FatJar</ApplicationType>
    <Owner>edas_com***_****@******-*****.***</Owner>
    <Description>Ol432236</Description>
    <RunningInstanceCount>0</RunningInstanceCount>
    <UserId>edas_com***_****@******-*****.***</UserId>
    <InstanceCount>1</InstanceCount>
    <Name>testpopapi1120</Name>
    <Port>8080</Port>
    <ClusterId>0d247b93-8d62-4e34-****-************</ClusterId>
    <RegionId>cn-shenzhen:****</RegionId>
    <CreateTime>1574249022930</CreateTime>
    <ClusterType>2</ClusterType>
</Applcation>
<Code>200</Code>

JSON format

{
	"Message": "success",
	"Applcation": {
    "SlbPort": 0,
    "BuildPackageId": 0,
    "AppId": "c627c157-560d-43ff-****-************",
    "Memory": 0,
    "Cpu": 0,
    "Dockerize": false,
    "ApplicationType": "FatJar",
    "Owner": "edas_com***_****@******-*****.***",
    "Description": "Ol432236",
    "RunningInstanceCount": 0,
    "UserId": "edas_com***_****@******-*****.***",
    "InstanceCount": 1,
    "Name": "testpopapi1120",
    "Port": 8080,
    "ClusterId": "0d247b93-8d62-4e34-****-************",
    "RegionId": "cn-shenzhen:****",
    "CreateTime": 1574249022930,
    "ClusterType": 2
},
	"Code": 200
}

Error codes

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