Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.14 KB

migration_create.rst

File metadata and controls

54 lines (32 loc) · 1.14 KB

migration_create

.. function:: POST /users/{uid}/migrations

Summary

  • Method: POST
  • Response Code: 201
  • Response Formats: application/xml application/json
  • Since: UForge 3.8.2

Creates a migration.

A migration is an object representing all stages to migrate a live running instance (physical machine, VM, container).

Security Summary

  • Requires Authentication: true
  • Entitlements Required: migration_access

URI Parameters

HTTP Request Body Parameters

A :ref:`migration-object` object

Example Request

curl "https://uforge.example.com/api/users/{uid}/migrations" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

.. seealso::

         * :ref:`migration-object`
         * :ref:`migrationstage-object`