You can call CreateClusterWithTemplate operation to create a cluster by using a template.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateClusterWithTemplate

The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to CreateClusterWithTemplate.

TemplateBizId String Yes CT-35498C56B3F1****

The ID of the cluster template. You can call ListClusterTemplates View data on the Member Management page.

UniqueTag String No 60a632f0-5909-430d-b65c-1b0f248e4947

A reserved parameter. You do not need to specify this parameter.

ClusterName String No hadoop_cluster_name_1

The custom name of the cluster.

ResourceGroupId String No rg-bp67acfmxazb4p****

The ID of the resource group to which to add the resource.

Response parameters

Parameter Type Example Description
ClusterId String C-D7958B72E59B****

The ID of the cluster.

CoreOrderId String 0

A reserved parameter. You do not need to specify this parameter.

EmrOrderId String 0

A reserved parameter. You do not need to specify this parameter.

MasterOrderId String 0

A reserved parameter. You do not need to specify this parameter.

RequestId String BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateClusterWithTemplate
&TemplateBizId=CT-35498C56B3F1****
&<common request parameters>

Sample success responses

XML format

<ClusterId>C-956FA9059886****</ClusterId>
<RequestId>BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22</RequestId>

JSON Syntax

{
    "ClusterId": "C-956FA9059886****",
    "RequestId": "BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22"
}