Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/e5c32dcb-1325-4bc8-8f7c-16e0bc6be827

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5OSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDJ9.G-16gHV4yRg0uU-Cixt4Vk6XP-y1_380FCmI8czUwZs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/e5c32dcb-1325-4bc8-8f7c-16e0bc6be827" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5OSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDJ9.G-16gHV4yRg0uU-Cixt4Vk6XP-y1_380FCmI8czUwZs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e5c32dcb-1325-4bc8-8f7c-16e0bc6be827",
    "url": "/v2/stacks/e5c32dcb-1325-4bc8-8f7c-16e0bc6be827",
    "created_at": "2015-05-07T23:37:05Z",
    "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: 12ce3695-40d8-4255-8e5c-d9ed7114f542
Content-Length: 288
X-Content-Type-Options: nosniff