]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
api : Add ReST actions POST method
authorSteven Hardy <shardy@redhat.com>
Fri, 10 May 2013 17:29:04 +0000 (18:29 +0100)
committerSteven Hardy <shardy@redhat.com>
Wed, 26 Jun 2013 15:24:34 +0000 (16:24 +0100)
commit243813f8fbbad084f6c07bdc423cf3631c846576
tree0030c610ad9bcff3079fc8b285855bf89f3ed6ad
parentb2d4535064d1ec1231c4b226d806b1d7fe6f24d6
api : Add ReST actions POST method

Initial support for an actions subpath, which will be the access-point
for non-lifecycle operations on stacks, e.g suspend/resume

This adds support for a  POST method for /actions subpath, so that requests for
specific actions may be made, using a similar interface to that provided by
nova for the admin actions extension.  So a body of {'suspend': None}
will suspend the stack, see http://api.openstack.org/api-ref.html

blueprint: stack-suspend-resume
Change-Id: I180345c818cbfa38ac8c17caba2c0f64adabf6be
heat/api/openstack/v1/__init__.py
heat/api/openstack/v1/actions.py [new file with mode: 0644]
heat/tests/test_api_openstack_v1.py