From 0a1819810e34ea62a8740da1bb9f595226f9bb1b Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Sun, 9 Jun 2013 12:23:36 +0400 Subject: [PATCH] REST API samples updated Change-Id: Iaaf6ec47596b6d9722527198d1c9a978cba6af37 --- etc/rest-api-samples/cluster_create_full.json | 27 +++++++++++++++++++ .../cluster_create_minimal.json | 6 +++++ etc/rest-api-samples/cluster_tmpl_create.json | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 etc/rest-api-samples/cluster_create_full.json create mode 100644 etc/rest-api-samples/cluster_create_minimal.json diff --git a/etc/rest-api-samples/cluster_create_full.json b/etc/rest-api-samples/cluster_create_full.json new file mode 100644 index 00000000..3917ada1 --- /dev/null +++ b/etc/rest-api-samples/cluster_create_full.json @@ -0,0 +1,27 @@ +{ + "name": "sl-cluster-42", + "plugin_name": "vanilla", + "hadoop_version": "1.1.1", + "user_keypair_id": "slukjanov", + "default_image_id": "51752c61-f73a-456c-98fb-192c0a448554", + "cluster_configs": { + "general": { + "some_overridden_config": "asdfgh" + } + }, + "node_groups": [ + { + "name": "master", + "node_group_template_id": "0fe82f67-5453-41bb-b913-36775c1f50be", + "flavor_id": "42", + "count": 1 + }, + { + "name": "worker", + "flavor_id": "42", + "node_processes": ["tasktracker", "datanode"], + "node_configs": {}, + "count": 2 + } + ] +} diff --git a/etc/rest-api-samples/cluster_create_minimal.json b/etc/rest-api-samples/cluster_create_minimal.json new file mode 100644 index 00000000..62871e51 --- /dev/null +++ b/etc/rest-api-samples/cluster_create_minimal.json @@ -0,0 +1,6 @@ +{ + "name": "cluster-1", + "plugin_name": "vanilla", + "hadoop_version": "1.1.1", + "cluster_template_id" : "3ebd3aa9-2252-4830-b814-25bf0d58abfe" +} diff --git a/etc/rest-api-samples/cluster_tmpl_create.json b/etc/rest-api-samples/cluster_tmpl_create.json index 01694d9e..9569c7b8 100644 --- a/etc/rest-api-samples/cluster_tmpl_create.json +++ b/etc/rest-api-samples/cluster_tmpl_create.json @@ -11,7 +11,7 @@ "node_groups": [ { "name": "master", - "node_group_template_id": "9291e73c-0982-4728-820e-0ee77f8e317c", + "node_group_template_id": "0fe82f67-5453-41bb-b913-36775c1f50be", "count": 1 }, {