Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/5ff5c713-bf4a-4b81-b122-9fa1edaf1566

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyIiwiZW1haWwiOiJlbWFpbC00MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTkyfQ.wph4Bsn0Z40eOEpqOuCfgce_IOfoZx6EVgHieW2lhJk
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/5ff5c713-bf4a-4b81-b122-9fa1edaf1566" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyIiwiZW1haWwiOiJlbWFpbC00MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTkyfQ.wph4Bsn0Z40eOEpqOuCfgce_IOfoZx6EVgHieW2lhJk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5ff5c713-bf4a-4b81-b122-9fa1edaf1566",
    "url": "/v2/stacks/5ff5c713-bf4a-4b81-b122-9fa1edaf1566",
    "created_at": "2015-08-06T00:36:30Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6e6c7f23-c2f5-4571-908c-a4830099049a
Content-Length: 279
X-Content-Type-Options: nosniff