This operation creates an application in CADT based on an official or a private template. Before you call this operation, make sure that you understand the billing methods and pricing of the involved 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 used to ensure the idempotence of the request. Generate a unique value for this parameter from your client. The ClientToken parameter supports only ASCII characters. |
1600765710019 |
| Name |
string |
Yes |
The application name.
|
cadt-application |
| AreaId |
string |
No |
The region ID. |
cn-hangzhou |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the application belongs. Important This parameter determines the resource group for all resources in the application. Ensure that imported resources belong to the same 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 is still being created. The application is in the `Creating` state. Wait for the application to be created and its state to change to `Modified` before performing subsequent operations. Synchronous creation: The application ID is returned after the application is created. Note: If the application template is large and contains many variables, a timeout error may occur during synchronous creation. In this case, use asynchronous creation. Valid values:
|
false |
| Instances |
array<object> |
No |
You can create the application in an existing VPC. |
|
|
object |
No |
|||
| NodeType |
string |
No |
The instance 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` specifies whether to automatically enable Cloud Monitor, `enableReport` specifies whether to generate reports, and setting `enableCompliance` to `1` enables compliance checks. |
{"enableMonitor":"0", "enableReport":"1"} |
|
string |
No |
The parameter value. |
${var1} |
|
| Variables |
object |
No |
For templates that have parameters, this field is used to pass the parameter values. If you do not pass values, the default values are used. |
{"variable1":"1"} |
|
any |
No |
The parameter value. |
||
| ProcessVariables |
object |
No |
The list of variable values for the flow. |
|
|
any |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The error 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.