Mount Point: /api/v11/clusters/{clusterName}/hostTemplates/{hostTemplateName}/commands/applyHostTemplate


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.


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.