2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
2016-04-20 16:10:51 -04:00
|
|
|
.. needs:method_verification
|
|
|
|
.. needs:parameter_verification
|
|
|
|
.. needs:example_verification
|
|
|
|
.. needs:body_verification
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Evacuate Server (Evacuate Action)
|
|
|
|
=================================
|
|
|
|
|
|
|
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
|
|
|
|
|
|
|
Evacuates a server from a failed host to a new one.
|
|
|
|
|
|
|
|
Specify the ``evacuate`` action in the request body.
|
|
|
|
|
2016-04-20 15:34:02 +09:00
|
|
|
Normal response codes: 200
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
|
|
|
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
|
|
|
- server_id: server_id
|
|
|
|
- evacuate: evacuate
|
|
|
|
- host: host
|
2016-03-23 22:49:44 +08:00
|
|
|
- adminPass: adminPass_evacuate_rebuild
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
**Example Evacuate Server (Evacuate Action): JSON request**
|
|
|
|
|
2016-04-20 15:34:02 +09:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-evacuate/server-evacuate-req.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
**Example Evacuate Server (Evacuate Action): JSON request**
|
|
|
|
|
2016-04-20 15:34:02 +09:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-evacuate/server-evacuate-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|