edit-icon download-icon

InsertApplicationRequest

Last Updated: Apr 18, 2018

Function

Create an application

Request URL

/pop/v5/changeorder/co_create_app

Request method

POST

Request parameters

Create a general 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. Concatenate 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 ID of namespace is not mandatory, you can obtain the ID in ListUserDefineRegionRequest interface.
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 ID of namespace is not mandatory, you can obtain the ID in ListUserDefineRegionRequest interface.
ecuInfo String Yes ECU ID. Concatenate 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 Reserved ports that other applications cannot use. Delimit multiple reserved ports with commas (,).

Response parameters

Parameter Type Description
Code Integer Response code
Message String Response message
ApplicationInfo ApplicationInfo For more information about the created application, see ApplicationInfo.

ApplicationInfo

Parameter Type Description
Appname String Application name
AppId String Unique ID of the application
Dockerize Boolean 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 change order. Use this ID to call the GetChangeOrderInfoRequest API to display the deployment progress.
Thank you! We've received your feedback.