Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/29a7329a-c745-4ef9-80b9-9eda71fed8c3

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5OCIsImVtYWlsIjoiZW1haWwtMjE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTR9.sFDzIUZs1s2UCTAfM0tW78S5Tks7FXjkYutkw6PwlS4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/29a7329a-c745-4ef9-80b9-9eda71fed8c3" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5OCIsImVtYWlsIjoiZW1haWwtMjE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTR9.sFDzIUZs1s2UCTAfM0tW78S5Tks7FXjkYutkw6PwlS4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "29a7329a-c745-4ef9-80b9-9eda71fed8c3",
    "url": "/v2/stacks/29a7329a-c745-4ef9-80b9-9eda71fed8c3",
    "created_at": "2015-06-04T00:05:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bde7e51f-0738-4d12-9a54-ce110de5de41
Content-Length: 279
X-Content-Type-Options: nosniff