Skip to content

Instantly share code, notes, and snippets.

@antonym
Created February 6, 2017 23:17
Show Gist options
  • Save antonym/ebfa6f2eef738855a147158afb2d7ba7 to your computer and use it in GitHub Desktop.
Save antonym/ebfa6f2eef738855a147158afb2d7ba7 to your computer and use it in GitHub Desktop.
http://10.22.226.230:8080/v1/hosts/1
{
"active": true,
"cell_id": 1,
"created_at": "2017-02-03T19:29:36.000000",
"device_type": "server",
"id": 1,
"ip_address": "10.127.5.110",
"name": "osa-deploy",
"note": null,
"project_id": "717e9a21-6e2d-44e0-bc84-8398563bdada",
"region_id": 1,
"updated_at": null,
"variables": {
"os": "debian",
"os_status": "installing"
}
}
http://10.22.226.230:8080/v1/hosts/2
{
"active": true,
"cell_id": 1,
"created_at": "2017-02-03T19:29:47.000000",
"device_type": "server",
"id": 2,
"ip_address": "10.127.5.111",
"name": "osa-node1",
"note": null,
"project_id": "717e9a21-6e2d-44e0-bc84-8398563bdada",
"region_id": 1,
"updated_at": null,
"variables": {}
}
http://10.22.226.230:8080/v1/hosts?vars=os:debian
[
{
"active": true,
"cell_id": 1,
"created_at": "2017-02-03T19:29:36.000000",
"device_type": "server",
"id": 1,
"ip_address": "10.127.5.110",
"name": "osa-deploy",
"note": null,
"parent_id": null,
"project_id": "717e9a21-6e2d-44e0-bc84-8398563bdada",
"region_id": 1,
"updated_at": null
},
{
"active": true,
"cell_id": 1,
"created_at": "2017-02-03T19:29:47.000000",
"device_type": "server",
"id": 2,
"ip_address": "10.127.5.111",
"name": "osa-node1",
"note": null,
"parent_id": null,
"project_id": "717e9a21-6e2d-44e0-bc84-8398563bdada",
"region_id": 1,
"updated_at": null
},
{
"active": true,
"cell_id": 1,
"created_at": "2017-02-03T19:29:52.000000",
"device_type": "server",
"id": 3,
"ip_address": "10.127.5.112",
"name": "osa-node2",
"note": null,
"parent_id": null,
"project_id": "717e9a21-6e2d-44e0-bc84-8398563bdada",
"region_id": 1,
"updated_at": null
},
{
"active": true,
"cell_id": 1,
"created_at": "2017-02-03T19:29:57.000000",
"device_type": "server",
"id": 4,
"ip_address": "10.127.5.113",
"name": "osa-node3",
"note": null,
"parent_id": null,
"project_id": "717e9a21-6e2d-44e0-bc84-8398563bdada",
"region_id": 1,
"updated_at": null
},
{
"active": true,
"cell_id": 1,
"created_at": "2017-02-03T19:37:33.000000",
"device_type": "server",
"id": 5,
"ip_address": "10.127.94.20",
"name": "osa-node5",
"note": null,
"parent_id": null,
"project_id": "717e9a21-6e2d-44e0-bc84-8398563bdada",
"region_id": 1,
"updated_at": null
},
{
"active": true,
"cell_id": 1,
"created_at": "2017-02-03T19:37:39.000000",
"device_type": "server",
"id": 6,
"ip_address": "10.127.94.21",
"name": "osa-node6",
"note": null,
"parent_id": null,
"project_id": "717e9a21-6e2d-44e0-bc84-8398563bdada",
"region_id": 1,
"updated_at": null
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment