2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
2016-04-27 22:52:42 +08:00
|
|
|
=========================================
|
|
|
|
Migrations (os-migrations) (frozen)
|
|
|
|
=========================================
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Shows data on migrations.
|
|
|
|
|
2016-04-27 22:52:42 +08:00
|
|
|
.. warning:: The old top-level resource `/os-migrations` is frozen,
|
|
|
|
it won't be extended anymore. Use /servers/{uuid}/migrations instead.
|
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
List Migrations
|
|
|
|
===============
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /os-migrations
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Lists in-progress migrations.
|
|
|
|
|
2016-04-27 22:52:42 +08:00
|
|
|
Policy defaults enable only users with the administrative role to perform
|
|
|
|
this operation. Cloud providers can change these permissions through the
|
|
|
|
``policy.json`` file.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-05-09 22:10:24 +00:00
|
|
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
|
2016-04-27 22:52:42 +08:00
|
|
|
- status: migration_status
|
|
|
|
- host: migration_host
|
|
|
|
- source_compute: migration_source_compute
|
|
|
|
- migration_type: migration_type
|
|
|
|
- hidden: migration_hidden
|
|
|
|
- instance_uuid: migration_instance_uuid
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-19 17:52:18 +09:00
|
|
|
**Example List Migrations: JSON response**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-20 12:03:04 +09:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-migrations/migrations-get.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|