ac165112b7
In microversion 2.80, the ``GET /os-migrations`` API will have optional ``user_id`` and ``project_id`` query parameters for filtering migrations by user and/or project: * GET /os-migrations?user_id=ef9d34b4-45d0-4530-871b-3fb535988394 * GET /os-migrations?project_id=011ee9f4-8f16-4c38-8633-a254d420fd54 * GET /os-migrations?user_id=ef9d34b4-45d0-4530-871b-3fb535988394&project_id=011ee9f4-8f16-4c38-8633-a254d420fd54 And expose the ``user_id`` and ``project_id`` fields in the following APIs: * GET /os-migrations * GET /servers/{server_id}/migrations * GET /servers/{server_id}/migrations/{migration_id} Co-Authored-By: Qiu Fossen <qiujunting> Part of blueprint add-user-id-field-to-the-migrations-table Change-Id: I7313d6cde1a5e1dc7dd6f3c0dff9f30bbf4bee2c
33 lines
1.2 KiB
JSON
33 lines
1.2 KiB
JSON
{
|
|
"migrations": [
|
|
{
|
|
"created_at": "2016-01-29T11:42:02.000000",
|
|
"dest_compute": "compute2",
|
|
"dest_host": "1.2.3.4",
|
|
"dest_node": "node2",
|
|
"id": 1,
|
|
"instance_uuid": "8600d31b-d1a1-4632-b2ff-45c2be1a70ff",
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/v2.1/6f70656e737461636b20342065766572/servers/8600d31b-d1a1-4632-b2ff-45c2be1a70ff/migrations/1",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/servers/8600d31b-d1a1-4632-b2ff-45c2be1a70ff/migrations/1",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"new_instance_type_id": 1,
|
|
"old_instance_type_id": 1,
|
|
"source_compute": "compute1",
|
|
"source_node": "node1",
|
|
"status": "running",
|
|
"migration_type": "live-migration",
|
|
"updated_at": "2016-01-29T11:42:02.000000",
|
|
"uuid": "12341d4b-346a-40d0-83c6-5f4f6892b650",
|
|
"user_id": "5c48ebaa-193f-4c5d-948a-f559cc92cd5e",
|
|
"project_id": "ef92ccff-00f3-46e4-b015-811110e36ee4"
|
|
}
|
|
]
|
|
}
|