2016-04-12 13:03:46 +00:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
2016-05-11 15:57:51 +00:00
|
|
|
Force-Delete Server (forceDelete Action)
|
2016-04-12 13:03:46 +00:00
|
|
|
========================================
|
|
|
|
|
2016-06-02 12:50:03 +00:00
|
|
|
.. rest_method:: POST /servers/{server_id}/action
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Force-deletes a server before deferred cleanup.
|
|
|
|
|
|
|
|
Specify the ``forceDelete`` action in the request body.
|
|
|
|
|
2016-05-11 15:57:51 +00:00
|
|
|
Policy defaults enable only users with the administrative role or
|
|
|
|
the owner of the server to perform this operation. Cloud providers
|
|
|
|
can change these permissions through the ``policy.json`` file.
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Normal response codes: 202
|
|
|
|
|
2016-05-11 15:57:51 +00:00
|
|
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404),
|
|
|
|
conflict(409)
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Request
|
2016-04-14 17:10:59 +00:00
|
|
|
-------
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-06-02 12:50:03 +00:00
|
|
|
|
2016-04-27 14:23:22 +00:00
|
|
|
- server_id: server_id_path
|
2016-04-12 13:03:46 +00:00
|
|
|
- forceDelete: forceDelete
|
|
|
|
|
2016-04-27 14:23:22 +00:00
|
|
|
**Example Force-Delete Server (forceDelete Action): JSON request**
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-04-20 06:34:02 +00:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-deferred-delete/force-delete-post-req.json
|
2016-04-12 13:03:46 +00:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Response
|
2016-04-14 17:10:59 +00:00
|
|
|
--------
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-04-27 14:23:22 +00:00
|
|
|
No body is returned on a successful submission.
|
|
|
|
|
2016-05-11 15:57:51 +00:00
|
|
|
Restore Soft-Deleted Instance (restore Action)
|
2016-04-12 13:03:46 +00:00
|
|
|
==============================================
|
|
|
|
|
2016-06-02 12:50:03 +00:00
|
|
|
.. rest_method:: POST /servers/{server_id}/action
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-05-11 15:57:51 +00:00
|
|
|
Restores a previously soft-deleted server instance. You cannot use
|
|
|
|
this method to restore deleted instances.
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Specify the ``restore`` action in the request body.
|
|
|
|
|
2016-05-11 15:57:51 +00:00
|
|
|
Policy defaults enable only users with the administrative role or
|
|
|
|
the owner of the server to perform this operation. Cloud providers
|
|
|
|
can change these permissions through the ``policy.json`` file.
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Normal response codes: 202
|
|
|
|
|
2016-05-11 15:57:51 +00:00
|
|
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404),
|
|
|
|
conflict(409)
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Request
|
2016-04-14 17:10:59 +00:00
|
|
|
-------
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-06-02 12:50:03 +00:00
|
|
|
|
2016-04-27 14:23:22 +00:00
|
|
|
- server_id: server_id_path
|
2016-04-12 13:03:46 +00:00
|
|
|
- restore: restore
|
|
|
|
|
2016-04-27 14:23:22 +00:00
|
|
|
**Example Restore Soft-Deleted Instance (restore Action): JSON request**
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-04-20 06:34:02 +00:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-deferred-delete/restore-post-req.json
|
2016-04-12 13:03:46 +00:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Response
|
2016-04-14 17:10:59 +00:00
|
|
|
--------
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-04-27 14:23:22 +00:00
|
|
|
No body is returned on a successful submission.
|