Skip to content

Instantly share code, notes, and snippets.

@heckj
Created January 25, 2016 18:31
Show Gist options
  • Select an option

  • Save heckj/ea1fee3f8b88e6b96dd1 to your computer and use it in GitHub Desktop.

Select an option

Save heckj/ea1fee3f8b88e6b96dd1 to your computer and use it in GitHub Desktop.
curl -H "Content-Type: application/json" -X POST --data @testnodeadd.json http://localhost:9090/api/1.1/nodes
results:
{
"name": "namenioveno",
"type": "compute",
"obmSettings": [
{
"service": "ipmi-obm-service",
"config": {
"host": "1.2.3.4",
"user": "myuser",
"password": "1DTntJ1vXFOUbtsoKIy5ww==.fRSHvnk878B+IcpWhoGCNg=="
}
}
],
"autoDiscover": false,
"relations": [],
"createdAt": "2016-01-25T18:29:32.451Z",
"updatedAt": "2016-01-25T18:29:32.451Z",
"id": "[object Object]"
}
"id": "1234abcd1234abcd1234abcd",
"name": "namenioveno",
"type": "compute",
"obmSettings": [
{
"service": "ipmi-obm-service",
"config": {
"host": "1.2.3.4",
"user": "myuser",
"password": "mypass"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment