Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/c00786df-cfd0-4e60-bb96-372c0028f554

Body

Name Description Default Valid Values Example Values
name The name for the stack.
description The description for the stack

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwOCIsImVtYWlsIjoiZW1haWwtMjI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDl9.pQfpY8R0_sJLI601D_4mUaI4vWQQO4RGLnemyNoHaaw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/c00786df-cfd0-4e60-bb96-372c0028f554" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwOCIsImVtYWlsIjoiZW1haWwtMjI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDl9.pQfpY8R0_sJLI601D_4mUaI4vWQQO4RGLnemyNoHaaw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "c00786df-cfd0-4e60-bb96-372c0028f554",
    "url": "/v2/stacks/c00786df-cfd0-4e60-bb96-372c0028f554",
    "created_at": "2015-04-15T00:55:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "lucid64",
    "description": "Ubuntu 10.04 on x86-64"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 45ec8c4f-a7d2-4fb7-a713-63cdef98b9b5
Content-Length: 288
X-Content-Type-Options: nosniff