John Speidel created AMBARI-8458:
------------------------------------
Summary: Add support for "add hosts" specifying host name,
blueprint name and host group name
Key: AMBARI-8458
URL: https://issues.apache.org/jira/browse/AMBARI-8458
Project: Ambari
Issue Type: Improvement
Reporter: John Speidel
Assignee: John Speidel
Fix For: 2.0.0
Provide a higher level api for host provisioning.
This api will accept a host name, blueprint name and host group.
The result of this api call will be fully operational hosts added to the
existing cluster with configuration and components which are defined in the
specified blueprint/host_group. All components on the added hosts will be
installed and started.
All hosts must be reachable via ambari server and have the ambari agent running
and registered with the ambari server prior to using this api.
This is an asynchronous api so it will return the standard asynchronous
response.
{code}
202 - Accepted
{
"href" : "http://AMBARI_HOST:8080/api/v1/clusters/c1/requests/2",
"Requests" : {
"id" : 2,
"status" : "InProgress"
}
}
{code}
This api will support adding a single host or multiple hosts.
h4. Single Host:
{code}
POST http://AMBARI_HOST:8080/api/v1/clusters/c1/hosts/newHostName.domain
{
"blueprint" : "my_blueprint",
"host_group" : "slave"
}
{code}
h4. Multiple Hosts
{code}
POST http://AMBARI_HOST:8080/api/v1/clusters/c1/hosts
[
{
"blueprint" : "my_blueprint
"host_group" : "slave",
"host_name" : "host2.domain"
},
{
"blueprint" : "my_blueprint",
"host_group" : "slave",
"host_name" : "host5.domain"
}
]
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)