73c2c2db69
This patch changes v3 servers' ViewBuilder to v2.1. And also change related unittests and api sample tests. The differences between v2 and v3 are described on the wiki page https://wiki.openstack.org/wiki/NovaAPIv2tov3. Partially implements blueprint v2-on-v3-api Change-Id: Ie68d46daa91ef43c84eeef479c0986d5e7f15719
60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
{
|
|
"server": {
|
|
"addresses": {
|
|
"private": [
|
|
{
|
|
"addr": "192.168.0.3",
|
|
"mac_addr": "aa:bb:cc:dd:ee:ff",
|
|
"type": "fixed",
|
|
"version": 4
|
|
}
|
|
]
|
|
},
|
|
"created": "2013-11-25T03:45:54Z",
|
|
"flavor": {
|
|
"id": "1",
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/flavors/1",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
},
|
|
"hostId": "b7e88944272df30c113572778bcf5527f02e9c2a745221214536c1a2",
|
|
"id": "9dafa6bc-7a9f-45b2-8177-11800ceb7224",
|
|
"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/9dafa6bc-7a9f-45b2-8177-11800ceb7224",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://openstack.example.com/servers/9dafa6bc-7a9f-45b2-8177-11800ceb7224",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"My Server Name": "Apache1"
|
|
},
|
|
"name": "new-server-test",
|
|
"os-pci:pci_devices": [
|
|
{
|
|
"id": 1
|
|
}
|
|
],
|
|
"progress": 0,
|
|
"status": "ACTIVE",
|
|
"tenant_id": "openstack",
|
|
"updated": "2013-11-25T03:45:54Z",
|
|
"user_id": "fake"
|
|
}
|
|
} |