summaryrefslogtreecommitdiff
path: root/saharaclient/api
diff options
context:
space:
mode:
authorIwona Kotlarska <iwona260909@gmail.com>2017-07-19 15:47:13 +0200
committerIwona Kotlarska <iwona260909@gmail.com>2017-08-14 10:32:55 +0200
commitcd8f35afd7c289a62de498a7a56d9ccec707462b (patch)
tree060f57e6c10d5ceed9502265e1f0f1c9d8b8ed71 /saharaclient/api
parent586a306358c555a042bcb5cfc76715756f370f87 (diff)
downloadpython-saharaclient-cd8f35afd7c289a62de498a7a56d9ccec707462b.tar.gz
Add export of node group templates
Partially-Implements: bp portable-node-group-and-cluster-templates Depends-On: I7a2ef7e5cff70e6034c1222252fbf7c5c35a7e1c This change adds functions to saharaclient to enable export of ngt to JSON. Change-Id: I33c3b6daa5b9e2be218a84efdb6113a4ce9a86df
Diffstat (limited to 'saharaclient/api')
-rw-r--r--saharaclient/api/node_group_templates.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/saharaclient/api/node_group_templates.py b/saharaclient/api/node_group_templates.py
index 90c1b4d..0eaf80b 100644
--- a/saharaclient/api/node_group_templates.py
+++ b/saharaclient/api/node_group_templates.py
@@ -127,3 +127,7 @@ class NodeGroupTemplateManager(base.ResourceManager):
def delete(self, ng_template_id):
"""Delete a Node Group Template."""
self._delete('/node-group-templates/%s' % ng_template_id)
+
+ def export(self, ng_template_id):
+ """Export a Node Group Template."""
+ return self._get('/node-group-templates/%s/export' % ng_template_id)