Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Fields

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

Parameters

Name Description Valid Values Example Values
guid The guid of the Stack

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzJ9.hegnntvlmr2mEjD9jOsz_PGPfaCyg-TYFK6f0BJxk7Q
Host: example.org
Cookie: 

Route

GET /v2/stacks/8dda95e7-8e9e-42f1-b754-5646a1bc4fca

cURL

curl "https://api.[your-domain.com]/v2/stacks/8dda95e7-8e9e-42f1-b754-5646a1bc4fca" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzJ9.hegnntvlmr2mEjD9jOsz_PGPfaCyg-TYFK6f0BJxk7Q" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c3853de3-f2e4-4f75-b815-1dd3e6e649a7
Content-Length: 288
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "8dda95e7-8e9e-42f1-b754-5646a1bc4fca",
    "url": "/v2/stacks/8dda95e7-8e9e-42f1-b754-5646a1bc4fca",
    "created_at": "2015-01-27T19:14:28Z",
    "updated_at": null
  },
  "entity": {
    "name": "lucid64",
    "description": "Ubuntu 10.04 on x86-64"
  }
}