
Clearly nobody really uses the "application/vnd.openstack.image" links in the returned results from GET /v2/{tenant}/images REST API call, since the link URI returned in it is wrong. Glance URIs do *not* contain a project or tenant in the URI structure like Nova's REST API URIs do, but _get_alternate_link() method of the image ViewBuilder tacks it on improperly: Change-Id: I4ccb5628569c60026a1772df0794ac0271c48db3 Closes-Bug: #1343080
215 lines
6.7 KiB
Smarty
215 lines
6.7 KiB
Smarty
{
|
|
"images": [
|
|
{
|
|
"OS-DCF:diskConfig": "AUTO",
|
|
"created": "2011-01-01T01:02:03Z",
|
|
"id": "%(id)s",
|
|
"links": [
|
|
{
|
|
"href": "%(host)s/v2/openstack/images/%(id)s",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(host)s/openstack/images/%(id)s",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "%(glance_host)s/images/%(id)s",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"architecture": "x86_64",
|
|
"auto_disk_config": "True",
|
|
"kernel_id": "nokernel",
|
|
"ramdisk_id": "nokernel"
|
|
},
|
|
"minDisk": 0,
|
|
"minRam": 0,
|
|
"name": "fakeimage7",
|
|
"progress": 100,
|
|
"status": "ACTIVE",
|
|
"updated": "2011-01-01T01:02:03Z"
|
|
},
|
|
{
|
|
"created": "2011-01-01T01:02:03Z",
|
|
"id": "%(id)s",
|
|
"links": [
|
|
{
|
|
"href": "%(host)s/v2/openstack/images/%(id)s",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(host)s/openstack/images/%(id)s",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "%(glance_host)s/images/%(id)s",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"architecture": "x86_64",
|
|
"kernel_id": "nokernel",
|
|
"ramdisk_id": "nokernel"
|
|
},
|
|
"minDisk": 0,
|
|
"minRam": 0,
|
|
"name": "fakeimage123456",
|
|
"progress": 100,
|
|
"status": "ACTIVE",
|
|
"updated": "2011-01-01T01:02:03Z"
|
|
},
|
|
{
|
|
"created": "2011-01-01T01:02:03Z",
|
|
"id": "%(uuid)s",
|
|
"links": [
|
|
{
|
|
"href": "%(host)s/v2/openstack/images/%(uuid)s",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(host)s/openstack/images/%(uuid)s",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "%(glance_host)s/images/%(uuid)s",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernel_id": "nokernel",
|
|
"ramdisk_id": "nokernel"
|
|
},
|
|
"minDisk": 0,
|
|
"minRam": 0,
|
|
"name": "fakeimage123456",
|
|
"progress": 100,
|
|
"status": "ACTIVE",
|
|
"updated": "2011-01-01T01:02:03Z"
|
|
},
|
|
{
|
|
"OS-DCF:diskConfig": "MANUAL",
|
|
"created": "2011-01-01T01:02:03Z",
|
|
"id": "%(uuid)s",
|
|
"links": [
|
|
{
|
|
"href": "%(host)s/v2/openstack/images/%(uuid)s",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(host)s/openstack/images/%(uuid)s",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "%(glance_host)s/images/%(uuid)s",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"architecture": "x86_64",
|
|
"auto_disk_config": "False",
|
|
"kernel_id": "nokernel",
|
|
"ramdisk_id": "nokernel"
|
|
},
|
|
"minDisk": 0,
|
|
"minRam": 0,
|
|
"name": "fakeimage6",
|
|
"progress": 100,
|
|
"status": "ACTIVE",
|
|
"updated": "2011-01-01T01:02:03Z"
|
|
},
|
|
{
|
|
"created": "2011-01-01T01:02:03Z",
|
|
"id": "%(id)s",
|
|
"links": [
|
|
{
|
|
"href": "%(host)s/v2/openstack/images/%(id)s",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(host)s/openstack/images/%(id)s",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "%(glance_host)s/images/%(id)s",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernel_id": "%(id)s",
|
|
"ramdisk_id": null
|
|
},
|
|
"minDisk": 0,
|
|
"minRam": 0,
|
|
"name": "fakeimage123456",
|
|
"progress": 100,
|
|
"status": "ACTIVE",
|
|
"updated": "2011-01-01T01:02:03Z"
|
|
},
|
|
{
|
|
"created": "2011-01-01T01:02:03Z",
|
|
"id": "%(id)s",
|
|
"links": [
|
|
{
|
|
"href": "%(host)s/v2/openstack/images/%(id)s",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(host)s/openstack/images/%(id)s",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "%(glance_host)s/images/%(id)s",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernel_id": "nokernel",
|
|
"ramdisk_id": "nokernel"
|
|
},
|
|
"minDisk": 0,
|
|
"minRam": 0,
|
|
"name": "fakeimage123456",
|
|
"progress": 100,
|
|
"status": "ACTIVE",
|
|
"updated": "2011-01-01T01:02:03Z"
|
|
},
|
|
{
|
|
"created": "2011-01-01T01:02:03Z",
|
|
"id": "%(id)s",
|
|
"links": [
|
|
{
|
|
"href": "%(host)s/v2/openstack/images/%(id)s",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(host)s/openstack/images/%(id)s",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "%(glance_host)s/images/%(id)s",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernel_id": "nokernel",
|
|
"ramdisk_id": "nokernel"
|
|
},
|
|
"minDisk": 0,
|
|
"minRam": 0,
|
|
"name": "fakeimage123456",
|
|
"progress": 100,
|
|
"status": "ACTIVE",
|
|
"updated": "2011-01-01T01:02:03Z"
|
|
}
|
|
]
|
|
}
|