anchor.diff:          }
   
   
  +# Group Stacks
  +Stacks related resources of the **Cloudbreak API**.
  +Manages AWS or Azure clouds based on templates. Creates, launches, stops, deletes the specified number of instances in the selected template (infrastructure).
  +
  +
  +## Create cloud [/stacks]
  +### Create stack [POST]
  +Creates an AWS or Azure cloud from a template.
  +
  ++ Request
  +
  +    + Headers
  +
  +            x-auth-token: user:c45sdfdsfo234jgkhsdgf324
  +
  +    + Body
  +
  +            {
  +                "name": "my-cloud-1",
  +                "description": "my testing cloud",
  +                "clusterSize": 3,
  +                "templateId": "1"
  +            }
  +
  ++ Response 200 (application/json)
  +
  +        {
  +            "id": "1"
  +        }
  +
  +## Retrieve stacks for the user [/stacks]
  +### List stacks [GET]
  +Retrieves the cloud stacks belonging to the user
  +
  ++ Request
  +
  +    + Headers
  +
  +            x-auth-token: user:c45sdfdsfo234jgkhsdgf324
  +
  +    + Body
  +
  +            {
  +            }
  +
  ++ Response 200 (application/json)
  +
  +        {
  +          [
  +            "metadata": [
  +              {
  +                "dockerSubnet": "172.17.10",
  +                "ambariServer": true,
  +                "instanceIndex": 0,
  +                "instanceId": "i-fab627b8",
  +                "publicIp": "54.77.43.59",
  +                "privateIp": "10.0.0.136"
  +              },
  +              {
  +                "dockerSubnet": "172.17.11",
  +                "ambariServer": false,
  +                "instanceIndex": 1,
  +                "instanceId": "i-1bb92859",
  +                "publicIp": "54.77.43.60",
  +                "privateIp": "10.0.0.135"
  +              },
  +              {
  +                "dockerSubnet": "172.17.12",
  +                "ambariServer": false,
  +                "instanceIndex": 2,
  +                "instanceId": "i-1ab92858",
  +                "publicIp": "54.77.43.61",
  +                "privateIp": "10.0.0.137"
  +              }
  +            ],
  +            "cluster": {
  +              "description": "",
  +              "blueprintId": 50,
  +              "cluster": {},
  +              "minutesUp": 8,
  +              "hoursUp": 0,
  +              "status": "CREATE_COMPLETED",
  +              "id": 2
  +            },
  +            "hash": "208d3dd389fad2221311792106cde53d",
  +            "ambariServerIp": "54.77.43.59",
  +            "nodeCount": 3,
  +            "name": "awstest",
  +            "templateId": 50,
  +            "credentialId": 50,
  +            "id": 50,
  +            "cloudPlatform": "AWS",
  +            "description": {
  +              --AWS DESCRIPTION--
  +            },
  +            "status": "CREATE_COMPLETED"
  +          ]
  +        }
  +
  +
  +## Retrieve a  stack [/stacks/{id}]
  +### Retrieve a particular stack [GET]
  +Retrieves a  (AWS or Azure)  stack definition.
  +
  ++ Parameters
  +    + id (required String `id`) ... The identifier of the `stack`.
  +
  ++ Request
  +
  +    + Headers
  +
  +            x-auth-token: user:c45sdfdsfo234jgkhsdgf324
  +
  ++ Response 200 (application/json)
  +
  +        {
  +          "metadata": [
  +            {
  +              "dockerSubnet": "172.17.10",
  +              "ambariServer": true,
  +              "instanceIndex": 0,
  +              "instanceId": "i-fab627b8",
  +              "publicIp": "54.77.43.59",
  +              "privateIp": "10.0.0.136"
  +            },
  +            {
  +              "dockerSubnet": "172.17.11",
  +              "ambariServer": false,
  +              "instanceIndex": 1,
  +              "instanceId": "i-1bb92859",
  +              "publicIp": "54.77.43.60",
  +              "privateIp": "10.0.0.135"
  +            },
  +            {
  +              "dockerSubnet": "172.17.12",
  +              "ambariServer": false,
  +              "instanceIndex": 2,
  +              "instanceId": "i-1ab92858",
  +              "publicIp": "54.77.43.61",
  +              "privateIp": "10.0.0.137"
  +            }
  +          ],
  +          "cluster": {
  +            "description": "",
  +            "blueprintId": 50,
  +            "cluster": {},
  +            "minutesUp": 8,
  +            "hoursUp": 0,
  +            "status": "CREATE_COMPLETED",
  +            "id": 2
  +          },
  +          "hash": "208d3dd389fad2221311792106cde53d",
  +          "ambariServerIp": "54.77.43.59",
  +          "nodeCount": 3,
  +          "name": "awstest",
  +          "templateId": 50,
  +          "credentialId": 50,
  +          "id": 50,
  +          "cloudPlatform": "AWS",
  +          "description": {
  +            --AWS DESCRIPTION--
  +          },
  +          "status": "CREATE_COMPLETED"
  +        }
  +
  +
  +
  +## Delete cloud stacks [/stacks/{id}]
  +### Deletes the specified cloud stack [DELETE]
  +Deletes the specified stack from the (AWS or Azure) cloud
  +
  +WARNING: All data will be lost - unless there was no storage configured. It is the user's responsibilty to backup data or take snapshots uning the cloud interface.
  +
  ++ Parameters
  +    + id (required String `aws-cloud-id`) ... The identifier of the `stack`.
  +
  ++ Request
  +
  +    + Headers
  +
  +            x-auth-token: user:c45sdfdsfo234jgkhsdgf324
  +
  ++ Response 200 (application/json)
  +
  +
  +          {
  +
  +          }
  +
  +## Retrieve a  stack [/stacks/metadata/{hash}]
  +### Retrieve a particular stack metadata [GET]
  +Retrieves a  (AWS or Azure)  stack metadata.
  +
  ++ Parameters
  +    + hash (required String `hash`) ... The identifier of the `metadata`.
  +
  ++ Response 200 (application/json)
  +
  +  {
  +    [
  +      {
  +        "dockerSubnet": "172.17.12",
  +        "ambariServer": false,
  +        "instanceIndex": 2,
  +        "instanceId": "i-1ab92858",
  +        "publicIp": "54.77.43.61",
  +        "privateIp": "10.0.0.137"
  +      },
  +      {
  +        "dockerSubnet": "172.17.10",
  +        "ambariServer": true,
  +        "instanceIndex": 0,
  +        "instanceId": "i-fab627b8",
  +        "publicIp": "54.77.43.59",
  +        "privateIp": "10.0.0.136"
  +      },
  +      {
  +        "dockerSubnet": "172.17.11",
  +        "ambariServer": false,
  +        "instanceIndex": 1,
  +        "instanceId": "i-1bb92859",
  +        "publicIp": "54.77.43.60",
  +        "privateIp": "10.0.0.135"
  +      }
  +    ]
  +  }
  +
  +
  +
  +
   # Group Clusters
   Hadoop cluster related resources of the **Cloudbreak API**.
   
   
  -## Adding Hadoop clusters [/stack/{stackId}/cluster]
  +## Adding Hadoop clusters [/stacks/{stackId}/cluster]
   ### Create cluster [POST]
   Creates a Hadoop cluster based on a blueprint.
   
  
positive.code: 
  + Response 200 (application/json)
  
          {
              {
                 TBD
              }
          }
  
  ##  Confirmation of the registration [/confirm/{confToken}]
  ### Confirm the registration [GET]
  
negative.code:         }
  
  
  ## Retrieve Hadoop clusters [/stacks/{stackId}/cluster]
  ### Retrieve a particular cluster [GET]
  Retrieves a particular cluster configuration for the user
  
  