On Tue, May 18, 2010 at 02:36:07PM +0200, Michael Hanselmann wrote:
> Two new resources are added:
> - /2/instances/$name/prepare-export
> - /2/instances/$name/export
> 
> The documentation for the existing resource for creating instances is updated
> for remote imports. The RAPI client is extended for the new resources.
> ---
>  doc/rapi.rst                        |   47 ++++++++++++++++++++++++
>  lib/rapi/client.py                  |   50 +++++++++++++++++++++++++
>  lib/rapi/connector.py               |    4 ++
>  lib/rapi/rlib2.py                   |   69 
> +++++++++++++++++++++++++++++++++++
>  qa/qa_rapi.py                       |   15 +++++++-
>  test/ganeti.rapi.client_unittest.py |   20 ++++++++++
>  test/ganeti.rapi.rlib2_unittest.py  |   44 ++++++++++++++++++++++
>  7 files changed, 248 insertions(+), 1 deletions(-)
> 
> diff --git a/doc/rapi.rst b/doc/rapi.rst
> index df4a9ee..0e82c37 100644
> --- a/doc/rapi.rst
> +++ b/doc/rapi.rst
> @@ -414,6 +414,12 @@ Body parameters:
>    File storage driver.
>  ``iallocator`` (string)
>    Instance allocator name.
> +``source_handshake``
> +  Signed handshake from source (remote import only).
> +``source_x509_ca`` (string)
> +  Source X509 CA in PEM format (remote import only).
> +``source_instance_name`` (string)
> +  Source instance name (remote import only).
>  ``hypervisor`` (string)
>    Hypervisor name.
>  ``hvparams`` (dict)
> @@ -579,6 +585,47 @@ It supports the following commands: ``PUT``.
>  Takes no parameters.
>  
>  
> +``/2/instances/[instance_name]/prepare-export``
> ++++++++++++++++++++++++++++++++++++++++++++++++++
> +
> +Prepares an export of an instance.
> +
> +It supports the following commands: ``PUT``.
> +
> +``PUT``
> +~~~~~~~
> +
> +Takes one parameter, ``mode``, for the export mode. Returns a job ID.

I wonder if we shouldn't document what the job results will be, or
something like that (or at least point to some other documentation about
it).

LGTM.

iustin

Reply via email to