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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyOCIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzV9.6I-F9ZGWYNX385ls9NJ8nQTwYlEvBenkmWy6r_N3Uvg
Host: example.org
Cookie: 

Route

GET /v2/stacks/ad8bde19-f394-43e3-afaa-61a909cb33a9

cURL

curl "https://api.[your-domain.com]/v2/stacks/ad8bde19-f394-43e3-afaa-61a909cb33a9" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyOCIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzV9.6I-F9ZGWYNX385ls9NJ8nQTwYlEvBenkmWy6r_N3Uvg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6109d6a6-9fb6-42c0-8224-7567c8950a29
Content-Length: 293
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "ad8bde19-f394-43e3-afaa-61a909cb33a9",
    "url": "/v2/stacks/ad8bde19-f394-43e3-afaa-61a909cb33a9",
    "created_at": "2014-12-24T01:39:32+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "lucid64",
    "description": "Ubuntu 10.04 on x86-64"
  }
}