api-ref: Fix response code and parameters in evacuate

* Unnecessary note is removed.

* The 'on_shared_storage' parameter
  The max version is 2.13.
  Improve the description.

* The 'evacuate' parameter
  Fix the type and the description.

* The 'adminPass' parameter
  Fix the description and remove max version.

* The 'host' parameter
  Improve the description.

* response code
  Remove unncessary response codes.
  Add a missing response code.

Change-Id: Ic857333ac25bee26e3ec22106b1b8fda2389b967
Implements: blueprint api-ref-in-rst-pike
Closes-Bug: #1683264
This commit is contained in:
Takashi NATSUME 2017-04-17 16:20:12 +09:00
parent 8ca9211a3d
commit a369e30e08
2 changed files with 16 additions and 9 deletions

View File

@ -1083,12 +1083,13 @@ adminPass_evacuate:
max_version: 2.13 max_version: 2.13
adminPass_evacuate_request: adminPass_evacuate_request:
description: | description: |
An administrative password to access the evacuated instance. If you omit this parameter, the operation An administrative password to access the evacuated server.
generates a new password. If you omit this parameter, the operation generates a new password.
Up to API version 2.13, if ``onSharedStorage`` is set to ``True`` and
this parameter is specified, an error is raised.
in: body in: body
required: false required: false
type: string type: string
max_version: 2.13
adminPass_request: adminPass_request:
description: | description: |
The administrative password of the server. If you omit this parameter, the operation The administrative password of the server. If you omit this parameter, the operation
@ -1853,10 +1854,10 @@ errors:
type: integer type: integer
evacuate: evacuate:
description: | description: |
Specify the ``evacuate`` action in the request body. The action to evacuate a server to another host.
in: body in: body
required: true required: true
type: string type: object
event: event:
description: | description: |
The name of the event. The name of the event.
@ -2383,6 +2384,7 @@ guest_format:
host: host:
description: | description: |
The name or ID of the host to which the server is evacuated. The name or ID of the host to which the server is evacuated.
If you omit this parameter, the scheduler chooses a host.
in: body in: body
required: false required: false
type: string type: string
@ -3500,10 +3502,16 @@ new_file:
on_shared_storage: on_shared_storage:
description: | description: |
Server on shared storage. Server on shared storage.
.. note::
Starting since version 2.14, Nova automatically detects
whether the server is on shared storage or not.
Therefore this parameter was removed.
in: body in: body
required: true required: true
type: boolean type: boolean
max_version: 2.14 max_version: 2.13
os: os:
description: | description: |
The name of the operating system. The name of the operating system.

View File

@ -1,4 +1,3 @@
.. note:: Microversion 2.23 or greater is required for this API.
.. -*- rst -*- .. -*- rst -*-
Evacuate Server (evacuate Action) Evacuate Server (evacuate Action)
@ -14,8 +13,8 @@ Evacuates a server from a failed host to a new host.
Normal response codes: 200 Normal response codes: 200
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400), Error response codes: badRequest(400), unauthorized(401), forbidden(403),
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404) itemNotFound(404), conflict(409)
Request Request
------- -------