2016-05-04 15:23:15 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
=============
|
|
|
|
Stack actions
|
|
|
|
=============
|
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
Performs non-lifecycle operations on the stack. Specify the action in the
|
|
|
|
request body.
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
Suspend stack
|
|
|
|
=============
|
|
|
|
|
|
|
|
.. rest_method:: POST /v1/{tenant_id}/stacks/{stack_name}/{stack_id}/actions
|
|
|
|
|
|
|
|
Suspends a stack.
|
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
Response Codes
|
|
|
|
--------------
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 404
|
|
|
|
|
|
|
|
Request Parameters
|
|
|
|
------------------
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
2016-08-18 05:58:24 -04:00
|
|
|
- stack_name: stack_name_url
|
2016-08-21 22:14:54 -04:00
|
|
|
- stack_id: stack_id_url
|
2016-08-18 05:58:24 -04:00
|
|
|
- suspend: suspend
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/stack-action-suspend-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- X-Openstack-Request-Id: request_id
|
|
|
|
|
2016-05-04 15:23:15 -04:00
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2016-05-16 12:17:06 -04:00
|
|
|
This operation does not return a response body.
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
|
|
|
|
Resume stack
|
|
|
|
============
|
|
|
|
|
|
|
|
.. rest_method:: POST /v1/{tenant_id}/stacks/{stack_name}/{stack_id}/actions
|
|
|
|
|
|
|
|
Resumes a suspended stack.
|
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
Response Codes
|
|
|
|
--------------
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 404
|
|
|
|
|
|
|
|
Request Parameters
|
|
|
|
------------------
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
2016-08-18 05:58:24 -04:00
|
|
|
- stack_name: stack_name_url
|
2016-08-21 22:14:54 -04:00
|
|
|
- stack_id: stack_id_url
|
2016-08-18 05:58:24 -04:00
|
|
|
- resume: resume
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/stack-action-resume-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- X-Openstack-Request-Id: request_id
|
|
|
|
|
2016-05-04 15:23:15 -04:00
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2016-05-16 12:17:06 -04:00
|
|
|
This operation does not return a response body.
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
|
|
|
|
Cancel stack update
|
|
|
|
===================
|
|
|
|
|
|
|
|
.. rest_method:: POST /v1/{tenant_id}/stacks/{stack_name}/{stack_id}/actions
|
|
|
|
|
|
|
|
Cancels a currently running update of a stack.
|
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
Response Codes
|
|
|
|
--------------
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 404
|
|
|
|
|
|
|
|
Request Parameters
|
|
|
|
------------------
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
2016-08-18 05:58:24 -04:00
|
|
|
- stack_name: stack_name_url
|
2016-08-21 22:14:54 -04:00
|
|
|
- stack_id: stack_id_url
|
2016-08-18 05:58:24 -04:00
|
|
|
- cancel_update: cancel_update
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/stack-action-cancel-update-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- X-Openstack-Request-Id: request_id
|
|
|
|
|
2016-05-04 15:23:15 -04:00
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2016-05-16 12:17:06 -04:00
|
|
|
This operation does not return a response body.
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
|
|
|
|
Check stack resources
|
|
|
|
=====================
|
|
|
|
|
|
|
|
.. rest_method:: POST /v1/{tenant_id}/stacks/{stack_name}/{stack_id}/actions
|
|
|
|
|
|
|
|
Checks whether the resources are in expected states for a stack.
|
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
Response Codes
|
|
|
|
--------------
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 404
|
|
|
|
|
|
|
|
Request Parameters
|
|
|
|
------------------
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
2016-08-18 05:58:24 -04:00
|
|
|
- stack_name: stack_name_url
|
2016-08-21 22:14:54 -04:00
|
|
|
- stack_id: stack_id_url
|
2016-08-18 05:58:24 -04:00
|
|
|
- check: check
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/stack-action-check-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
2016-08-21 22:14:54 -04:00
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- X-Openstack-Request-Id: request_id
|
|
|
|
|
2016-05-04 15:23:15 -04:00
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2016-05-16 12:17:06 -04:00
|
|
|
This operation does not return a response body.
|