Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/e8d73bb1-c1f9-4f24-b759-772ac20256f4

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUwIiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ3fQ.s-Rlfj7dW4fMI_FWudeIvqY9z1onv8YdwinN1b63kOQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/e8d73bb1-c1f9-4f24-b759-772ac20256f4" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUwIiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ3fQ.s-Rlfj7dW4fMI_FWudeIvqY9z1onv8YdwinN1b63kOQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e8d73bb1-c1f9-4f24-b759-772ac20256f4",
    "url": "/v2/stacks/e8d73bb1-c1f9-4f24-b759-772ac20256f4",
    "created_at": "2015-06-16T23:40:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ebf69dbc-6430-478f-9fb0-e13fbfe60748
Content-Length: 279
X-Content-Type-Options: nosniff