summaryrefslogtreecommitdiff
path: root/heatclient/v1/stacks.py
diff options
context:
space:
mode:
Diffstat (limited to 'heatclient/v1/stacks.py')
-rw-r--r--heatclient/v1/stacks.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/heatclient/v1/stacks.py b/heatclient/v1/stacks.py
index 2f02825..b6e6bf6 100644
--- a/heatclient/v1/stacks.py
+++ b/heatclient/v1/stacks.py
@@ -208,6 +208,13 @@ class StackManager(StackChildManager):
body = utils.get_response_body(resp)
return body
+ def export(self, stack_id):
+ """Export data of a stack."""
+ stack_identifier = self._resolve_stack_id(stack_id)
+ resp = self.client.get('/stacks/%s/export' % stack_identifier)
+ body = utils.get_response_body(resp)
+ return body
+
def snapshot(self, stack_id, name=None):
"""Snapshot a stack."""
stack_identifier = self._resolve_stack_id(stack_id)