summaryrefslogtreecommitdiff
path: root/heatclient/v1
diff options
context:
space:
mode:
Diffstat (limited to 'heatclient/v1')
-rw-r--r--heatclient/v1/stacks.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/heatclient/v1/stacks.py b/heatclient/v1/stacks.py
index 5d6ecaf..b641b50 100644
--- a/heatclient/v1/stacks.py
+++ b/heatclient/v1/stacks.py
@@ -60,6 +60,9 @@ class Stack(base.Resource):
def output_show(self, output_key):
return self.manager.output_show(self.identifier, output_key)
+ def environment(self):
+ return self.manager.environment(self.identifier)
+
def get(self):
# set_loaded() first ... so if we have to bail, we know we tried.
self._loaded = True
@@ -274,6 +277,16 @@ class StackManager(StackChildManager):
body = utils.get_response_body(resp)
return body
+ def environment(self, stack_id):
+ """Returns the environment for an existing stack.
+
+ :param stack_id: identifies the stack
+ :return:
+ """
+ resp = self.client.get('/stacks/%s/environment' % stack_id)
+ body = utils.get_response_body(resp)
+ return body
+
def validate(self, **kwargs):
"""Validate a stack template."""