/clusters/{clusterName}/hostTemplates/{hostTemplateName}/commands/applyHostTemplate
Mount Point: /api/v8/clusters/{clusterName}/hostTemplates/{hostTemplateName}/commands/applyHostTemplate
POST
Applies a host template to a collection of hosts. This will create a role for each role config group on each of the hosts.
The provided hosts must not have any existing roles on them and if the cluster is not using parcels, the hosts must have a CDH version matching that of the cluster version.
Available since API v3.
Parameters
name | description | type | default |
---|---|---|---|
hostTemplateName | Host template to apply. | path | |
startRoles | Whether to start the newly created roles or not. | query | |
clusterName | (no documentation provided) | path |
Request Body
element: | hostRefList |
List of hosts to apply the host template to.
Response Body
element: | command |
Synchronous command result.