api-ref: Add descriptions for rebuild
Add descriptions about specifying a new image and asynchronous postconditions in the rebuild operation in the compute API reference. Change-Id: I0fd136d07dffc2be845b4b9330fae98c7115789b Closes-Bug: #1784387
This commit is contained in:
parent
f9ad40d35d
commit
330c950908
@ -3626,6 +3626,13 @@ imageRef_rebuild:
|
|||||||
description: |
|
description: |
|
||||||
The UUID of the image to rebuild for your server instance.
|
The UUID of the image to rebuild for your server instance.
|
||||||
It must be a valid UUID otherwise API will return 400.
|
It must be a valid UUID otherwise API will return 400.
|
||||||
|
If rebuilding a volume-backed server with a new image
|
||||||
|
(an image different from the image used when creating the volume),
|
||||||
|
the API will return 400.
|
||||||
|
For non-volume-backed servers, specifying a new image will result
|
||||||
|
in validating that the image is acceptable for the current compute host
|
||||||
|
on which the server exists. If the new image is not valid,
|
||||||
|
the server will go into ``ERROR`` status.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
@ -480,10 +480,19 @@ Rebuilds a server.
|
|||||||
|
|
||||||
Specify the ``rebuild`` action in the request body.
|
Specify the ``rebuild`` action in the request body.
|
||||||
|
|
||||||
|
This operation recreates the root disk of the server.
|
||||||
|
For a volume-backed server, this operation keeps the contents of the volume.
|
||||||
|
|
||||||
**Preconditions**
|
**Preconditions**
|
||||||
|
|
||||||
The server status must be ``ACTIVE``, ``SHUTOFF`` or ``ERROR``.
|
The server status must be ``ACTIVE``, ``SHUTOFF`` or ``ERROR``.
|
||||||
|
|
||||||
|
**Asynchronous Postconditions**
|
||||||
|
|
||||||
|
If the server was in status ``SHUTOFF`` before the rebuild, it will be stopped
|
||||||
|
and in status ``SHUTOFF`` after the rebuild, otherwise it will be ``ACTIVE``
|
||||||
|
if the rebuild was successful or ``ERROR`` if the rebuild failed.
|
||||||
|
|
||||||
.. note:: There is a `known limitation`_ where the root disk is not
|
.. note:: There is a `known limitation`_ where the root disk is not
|
||||||
replaced for volume-backed instances during a rebuild.
|
replaced for volume-backed instances during a rebuild.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user