Lists all host templates in a cluster.
Available since API v3.
name | type | description | default |
---|---|---|---|
clusterName | path | n/a |
media type | data type | description |
---|---|---|
application/json | ApiHostTemplateList (JSON) | List of host templates in the cluster. |
Creates new host templates.
Host template names must be unique across clusters.
Available since API v3.
name | type | description | default |
---|---|---|---|
clusterName | path | n/a |
media type | data type | description |
---|---|---|
application/json | ApiHostTemplateList (JSON) | The list of host templates to create. |
media type | data type | description |
---|---|---|
application/json | ApiHostTemplateList (JSON) | The created host templates. |
Deletes a host template.
Available since API v3.
name | type | description | default |
---|---|---|---|
clusterName | path | n/a | |
hostTemplateName | path | Host template to delete. | n/a |
media type | data type | description |
---|---|---|
application/json | ApiHostTemplate (JSON) | Deleted host template. |
Retrieves information about a host template.
Available since API v3.
name | type | description | default |
---|---|---|---|
clusterName | path | n/a | |
hostTemplateName | path | n/a |
media type | data type | description |
---|---|---|
application/json | ApiHostTemplate (JSON) | The requested host template. |
Updates an existing host template.
Can be used to update the role config groups in a host template or rename it.
Available since API v3.
name | type | description | default |
---|---|---|---|
clusterName | path | n/a | |
hostTemplateName | path | Host template with updated fields. | n/a |
media type | data type |
---|---|
application/json | ApiHostTemplate (JSON) |
media type | data type | description |
---|---|---|
application/json | ApiHostTemplate (JSON) | The updated host template. |
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 | type | description | default |
---|---|---|---|
clusterName | path | n/a | |
hostTemplateName | path | Host template to apply. | n/a |
startRoles | query | Whether to start the newly created roles or not. | n/a |
media type | data type | description |
---|---|---|
application/json | ApiHostRefList (JSON) | List of hosts to apply the host template to. |
media type | data type | description |
---|---|---|
application/json | ApiCommand (JSON) | Synchronous command result. |