All Products
Search
Document Center

Cloud Architect Design Tools:CreateApplication

Last Updated:Dec 22, 2025

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

bpstudio:CreateApplication

create

*Template

acs:bpstudio::{#accountId}:template/{#TemplateId}

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.

  • The application name must be unique. It cannot be the same as another application's name. Call the ListApplication operation to get a list of applications.

  • The name must be 2 to 128 characters long. It must start with a letter or a Chinese character. It can contain digits, underscores (_), and hyphens (-). The name cannot start with `http://` or `https://`.

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:

  • true :

    true

  • false :

    false

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.