abc656d3d5
This change adds properties to v2.1 os-extended-server-properties and os-extended-volumes nova APIs in order to expose information which is required for the standalone EC2 API implementation (resides on stackforge/ec2-api) to use only public APIs. Right now this information is taken by directly accessing internal Nova DB. It adds proposed microversion v2.3. It implements the spec "Nova changes required for standalone EC2 API implementation" in this review: https://review.openstack.org/#/c/153636/ APIImpact Implements: blueprint ec2-api Change-Id: I850e51e730c82906f68fddb14fb0004d7091eb91
66 lines
2.2 KiB
JSON
66 lines
2.2 KiB
JSON
{
|
|
"server": {
|
|
"addresses": {
|
|
"private": [
|
|
{
|
|
"addr": "192.168.0.3",
|
|
"OS-EXT-IPS-MAC:mac_addr": "aa:bb:cc:dd:ee:ff",
|
|
"OS-EXT-IPS:type": "fixed",
|
|
"version": 4
|
|
}
|
|
]
|
|
},
|
|
"created": "2013-09-16T02:55:07Z",
|
|
"flavor": {
|
|
"id": "1",
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/flavors/1",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
},
|
|
"hostId": "3bf189131c61d0e71b0a8686a897a0f50d1693b48c47b721fe77155b",
|
|
"id": "c278163e-36f9-4cf2-b1ac-80db4c63f7a8",
|
|
"image": {
|
|
"id": "70a599e0-31e7-49b7-b260-868f441e862b",
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/images/70a599e0-31e7-49b7-b260-868f441e862b",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
},
|
|
"key_name": null,
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/v3/servers/c278163e-36f9-4cf2-b1ac-80db4c63f7a8",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://openstack.example.com/servers/c278163e-36f9-4cf2-b1ac-80db4c63f7a8",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"My Server Name": "Apache1"
|
|
},
|
|
"name": "new-server-test",
|
|
"OS-EXT-SRV-ATTR:host": "c5f474bf81474f9dbbc404d5b2e4e9b3",
|
|
"OS-EXT-SRV-ATTR:hypervisor_hostname": "fake-mini",
|
|
"OS-EXT-SRV-ATTR:instance_name": "instance-00000001",
|
|
"OS-EXT-SRV-ATTR:reservation_id": "r-00000001",
|
|
"OS-EXT-SRV-ATTR:launch_index": 0,
|
|
"OS-EXT-SRV-ATTR:kernel_id": "a5f474bf81474f9dbbc404d5b2e4e9b3",
|
|
"OS-EXT-SRV-ATTR:ramdisk_id": "b5f474bf81474f9dbbc404d5b2e4e9b3",
|
|
"OS-EXT-SRV-ATTR:hostname": "fake-hostname",
|
|
"OS-EXT-SRV-ATTR:root_device_name": "/dev/vda",
|
|
"OS-EXT-SRV-ATTR:userdata": "fake",
|
|
"progress": 0,
|
|
"status": "ACTIVE",
|
|
"tenant_id": "openstack",
|
|
"updated": "2013-09-16T02:55:08Z",
|
|
"user_id": "fake"
|
|
}
|
|
}
|