edit-icon download-icon

InsertApplicationRequest

Last Updated: Nov 16, 2018

Function

Create an application

Request URL

/pop/v5/changeorder/co_create_app

Request method

POST

Request parameters

Create a common application

Parameter Type Required? Description
applicationName String Yes Application name
buildPackId Integer Yes Container version ID, which can be obtained by the ListBuildPackRequest API
ecuInfo String Yes ECU ID. Join multiple IDs with commas (,). ECU IDs can be obtained by the ListScaleOutEcuRequest API.
description String No Application description
healthCheckURL String No Health check URL
logicalRegionId String No Logical region ID corresponding to the namespace. This parameter is optional and its value can be obtained by the ListUserDefineRegionRequest API.
clusterId String Yes Cluster ID. If no cluster ID is set, the default cluster is used. The cluster ID can be obtained by the ListClusterRequest API.

Create a Docker application

Parameter Type Required? Description
applicationName String Yes Application name
buildPackId Integer Yes Container version ID, which can be obtained by the ListBuildPackRequest API
logicalRegionId String No Logical region ID corresponding to the namespace. This parameter is optional and its value can be obtained by the ListUserDefineRegionRequest API.
ecuInfo String Yes ECU ID. Join multiple IDs with commas (,). ECU IDs can be obtained by the ListScaleOutEcuRequest API.
description String No Application description
healthCheckURL String No Health check URL
clusterId String Yes Cluster ID, which is required when a Docker application is created and can be obtained by the ListClusterRequest API.
cpu Integer Yes Number of CPUs. This parameter can be left unspecified (the value is 0) in sharing mode.
mem Integer Yes Memory size (MB). Set this parameter according to the available ECU memory.
reservedPortStr String No Number of the port that any other application cannot use. Separate multiple reserved ports with commas (,).

Response parameters

Parameter Type Description
Code Integer Code
Message String Message
ApplicationInfo ApplicationInfo For details about the created application, see ApplicationInfo.

ApplicationInfo

Parameter Type Description
Appname String Application name
AppId String Unique ID of the application
Dockerize Boolean Indicates whether the application is a Docker application
Port String Application port number
UserId String Primary account of the application creator
Owner String Account used to create the application
RegionName String Region where the application is located
ChangeOrderId String ID of the publication order.Use this ID to call the GetChangeOrderInfoRequest API to display the deployment progress.
Thank you! We've received your feedback.