Skip to content

Instantly share code, notes, and snippets.

@rakesh-patnaik
Last active August 29, 2015 14:15
Show Gist options
  • Save rakesh-patnaik/184607442b9bb8c83581 to your computer and use it in GitHub Desktop.
Save rakesh-patnaik/184607442b9bb8c83581 to your computer and use it in GitHub Desktop.
VM with HOT template metadata
get details on a VM. Compute port is based on port forwarding set on Vagrantfile.
GET http://localhost:8083/v2/e80185c2992040379ccdadb3d34c78ec/servers/c0a2646b-25dd-49b1-86ef-ea0818088f77
Response:
{
"server": {
"status": "ACTIVE",
"updated": "2015-02-22T18:58:05Z",
"hostId": "dac664f5623d69df7a20190bdba4015bd3d71629dddfa6deeb18e9b4",
"addresses": {
"private": [
{
"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:b9:08:70",
"version": 4,
"addr": "10.0.0.2",
"OS-EXT-IPS:type": "fixed"
}
]
},
"links": [
{
"href": "http://localhost:8083/v2/e80185c2992040379ccdadb3d34c78ec/servers/c0a2646b-25dd-49b1-86ef-ea0818088f77",
"rel": "self"
},
{
"href": "http://localhost:8083/e80185c2992040379ccdadb3d34c78ec/servers/c0a2646b-25dd-49b1-86ef-ea0818088f77",
"rel": "bookmark"
}
],
"key_name": null,
"image": {
"id": "23ed70af-d254-4b63-b488-cc94eb1a2add",
"links": [
{
"href": "http://localhost:8083/e80185c2992040379ccdadb3d34c78ec/images/23ed70af-d254-4b63-b488-cc94eb1a2add",
"rel": "bookmark"
}
]
},
"OS-EXT-STS:task_state": null,
"OS-EXT-STS:vm_state": "active",
"OS-SRV-USG:launched_at": "2015-02-22T18:58:04.000000",
"flavor": {
"id": "42",
"links": [
{
"href": "http://localhost:8083/e80185c2992040379ccdadb3d34c78ec/flavors/42",
"rel": "bookmark"
}
]
},
"id": "c0a2646b-25dd-49b1-86ef-ea0818088f77",
"security_groups": [
{
"name": "default"
}
],
"OS-SRV-USG:terminated_at": null,
"OS-EXT-AZ:availability_zone": "nova",
"user_id": "4fcae54e1227425aa011f371f54bbba5",
"name": "au-scale-8-asg-tim4fybxmcza-lvwj4yvvwqtf-fcf6nj5q3aih",
"created": "2015-02-22T18:57:50Z",
"tenant_id": "e80185c2992040379ccdadb3d34c78ec",
"OS-DCF:diskConfig": "MANUAL",
"os-extended-volumes:volumes_attached": [],
"accessIPv4": "",
"accessIPv6": "",
"progress": 0,
"OS-EXT-STS:power_state": 1,
"config_drive": "",
"metadata": {
"metering.stack": "85b121c5-c5e8-4048-adaf-84ed2e07c8cd"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment