POST /nodes
{
"name": "node2",
"driver": "ssh",
"params": {
"user": "xcat2",
"host": "10.0.0.2",
"port": "22",
"private_key": "~/.ssh/id_rsa"
}
}
POST /bulk/nodes
{
"nodes": [
{
"name": "bulknode1",
"ondemand": false,
"driver": "ssh",
"params": {
"user": "root",
"host": "10.0.0.1",
"port": "22",
"password": "password"
}
},
{
"name": "bulknode2",
"driver": "ssh",
"ondemand": true,
"params": {
"user": "root",
"host": "10.0.0.2",
"port": "22",
"password": "password"
}
}
]
}
GET /nodes
GET /nodes/<node>
PUT /nodes/<node>?state=on # console session will connect in the background
PUT /nodes/<node>?state=off # console session will disconnect in the background
PUT /bulk/nodes?state=on
{
"nodes": [
{
"name": "bulknode1"
},
{
"name": "bulknode2"
}
]
}
DELETE /nodes/<node>
DELETE /bulk/nodes
{
"nodes": [
{
"name": "bulknode1"
},
{
"name": "bulknode2"
}
]
}