This operation creates an application in CADT from an official or a private template. Before calling this operation, ensure that you understand the billing methods and pricing for the associated Alibaba Cloud products.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bpstudio:CreateApplication |
create |
*Template
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The template ID. |
0KSHPM6SJU03TNZP |
| ClientToken |
string |
No |
A client token to ensure the idempotence of the request. This token must be client-generated, unique across requests, and contain only ASCII characters. |
1600765710019 |
| Name |
string |
Yes |
The name of the application.
|
cadt-application |
| AreaId |
string |
No |
The ID of the region. This must be the same as the region where the template was published. Otherwise, the system reverts to the default version of the template. |
cn-hangzhou |
| ResourceGroupId |
string |
No |
The ID of the resource group. Important This parameter specifies the resource group for all resources in the application. Ensure that the resources you import belong to this resource group. |
rg-acfmyjt3c5om3hi |
| CreateAsync |
boolean |
No |
Specifies whether to create the application asynchronously. Asynchronous creation: The application ID is returned immediately, but the application's state is Synchronous creation: The application ID is returned only after the application is created. Note: If an application template is large or has a large number of template variables, synchronous creation may time out. In this case, create the application asynchronously. Valid values:
|
false |
| Instances |
array<object> |
No |
The instances to import. You can use this parameter to create an application in an existing Virtual Private Cloud (VPC). |
|
|
object |
No |
|||
| NodeType |
string |
No |
The node type. |
vpc |
| NodeName |
string |
No |
The node name. |
vpc |
| Id |
string |
No |
The instance ID. |
vpc-bp1q56trhtaq40vlq5ojm |
| Configuration |
object |
No |
The configuration parameters for the application. For example, |
{"enableMonitor":"0", "enableReport":"1"} |
|
string |
No |
The value of the configuration parameter. |
${var1} |
|
| Variables |
object |
No |
The values of the template variables. If you omit this parameter, the variables' default values are used. |
{"variable1":"1"} |
|
any |
No |
The value of the template variable. |
||
| ProcessVariables |
object |
No |
The key-value pairs for the process variables. |
|
|
any |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The response message. |
Success |
| RequestId |
string |
The request ID. |
A07FFDF2-78FA-1B48-9E38-88E833A93187 |
| Data |
string |
The application ID. |
002XWH7MXB8MJRU0 |
| Code |
string |
The response code. |
200 |
Examples
Success response
JSON format
{
"Message": "Success",
"RequestId": "A07FFDF2-78FA-1B48-9E38-88E833A93187",
"Data": "002XWH7MXB8MJRU0",
"Code": "200"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 200 | Success | The transaction is successful. | |
| 400 | ParameterEmpty | You must specify the request parameter. | You must specify request parameters. |
| 400 | bp.java.8004 | No permissions. | |
| 400 | bp.java.appNameNotNull | Application name cannot be repeated. | |
| 400 | bp.java.nopower | No permissions. | |
| 400 | bp.java.nopowerContact | You do not have permission to use this function. Please contact the main account or permission administrator to authorize the relevant permissions. | |
| 400 | bp.java.tempNameNotNull | Application name cannot be repeated. | |
| 400 | bp.java.userNotExist | The user does not exist. The current user does not authenticate AliCloud with his real name. | |
| 500 | bp.java.notDelete | This template has been shared with other users and cannot be deleted. | |
| 500 | bp.java.serviceError | The server is abnormal. Please try again later. | |
| 404 | EntityNotExist.ResourceGroup | The resource group does not exist. | |
| 404 | EntityNotExist.ResourceId | The resource does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.