Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/5e5e28f6-20c8-4303-803c-3218090871e1

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNSIsImVtYWlsIjoiZW1haWwtMzAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2Mjh9.GQ1Yzd1PP2QG2JQ8YDXek5V8rAmkZUi1YAFStOjPEqQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/5e5e28f6-20c8-4303-803c-3218090871e1" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNSIsImVtYWlsIjoiZW1haWwtMzAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2Mjh9.GQ1Yzd1PP2QG2JQ8YDXek5V8rAmkZUi1YAFStOjPEqQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5e5e28f6-20c8-4303-803c-3218090871e1",
    "url": "/v2/stacks/5e5e28f6-20c8-4303-803c-3218090871e1",
    "created_at": "2015-05-15T16:53:43Z",
    "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: 01bf2996-e4a3-41fc-90ea-f3927d90d9db
Content-Length: 288
X-Content-Type-Options: nosniff