Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/628e907c-592b-43ab-9062-fdf438e5a7f3

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY1IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc1fQ.rplVXSl2b-mWXdA0UntEkpZG3PLOuSGkDrObduZgAuo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/628e907c-592b-43ab-9062-fdf438e5a7f3" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY1IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc1fQ.rplVXSl2b-mWXdA0UntEkpZG3PLOuSGkDrObduZgAuo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "628e907c-592b-43ab-9062-fdf438e5a7f3",
    "url": "/v2/stacks/628e907c-592b-43ab-9062-fdf438e5a7f3",
    "created_at": "2015-07-06T23:22:52Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1ee338ac-4142-424a-a29e-27a1137543de
Content-Length: 279
X-Content-Type-Options: nosniff