Call the CreateClusterWithTemplate operation to create a cluster by using templates.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateClusterWithTemplate |
The operation that you want to perform. Set the value to CreateClusterWithTemplate. |
TemplateBizId | String | Yes | CT-35498C56B3F1**** |
The ID of the template. You can call ListClusterTemplates View. |
UniqueTag | String | No | 60a632f0-5909-430d-b65c-1b0f248e4947 |
A reserved parameter. |
ClusterName | String | No | hadoop_cluster_name_1 |
The name of the EMR cluster created by using the template. |
ResourceGroupId | String | No | rg-bp67acfmxazb4p**** |
The ID of the resource group to which the EMR cluster belongs. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ClusterId | String | C-D7958B72E59B**** |
The ID of the cluster. |
CoreOrderId | String | N/A |
A reserved parameter. |
EmrOrderId | String | N/A |
A reserved parameter. |
MasterOrderId | String | N/A |
A reserved parameter. |
RequestId | String | BF4FBAC6-B03E-4BFB-B6DB-EB53C34F**** |
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
format
{
"ClusterId": "C-956FA9059886****",
"RequestId": "BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22"
}