Filter migrations by user_id/project_id
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
This commit is contained in:
@@ -53,10 +53,12 @@ Response
|
||||
- status: migrate_status
|
||||
- updated_at: updated
|
||||
- uuid: migration_uuid
|
||||
- user_id: user_id_migration_2_80
|
||||
- project_id: project_id_migration_2_80
|
||||
|
||||
**Example List Migrations (2.59)**
|
||||
**Example List Migrations (2.80)**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/server-migrations/v2.59/migrations-index.json
|
||||
.. literalinclude:: ../../doc/api_samples/server-migrations/v2.80/migrations-index.json
|
||||
:language: javascript
|
||||
|
||||
Show Migration Details
|
||||
@@ -107,10 +109,12 @@ Response
|
||||
- status: migrate_status
|
||||
- updated_at: updated
|
||||
- uuid: migration_uuid
|
||||
- user_id: user_id_migration_2_80
|
||||
- project_id: project_id_migration_2_80
|
||||
|
||||
**Example Show Migration Details (2.59)**
|
||||
**Example Show Migration Details (2.80)**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/server-migrations/v2.59/migrations-get.json
|
||||
.. literalinclude:: ../../doc/api_samples/server-migrations/v2.80/migrations-get.json
|
||||
:language: javascript
|
||||
|
||||
Force Migration Complete Action (force_complete Action)
|
||||
|
||||
Reference in New Issue
Block a user