Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/6d4efea3-c3ff-42ff-9f10-7e8f3f8662b7

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgzfQ.MLD5j6OtA3Oixaz3XOyTi4HMepykzBZtLaboL81-2_c
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/6d4efea3-c3ff-42ff-9f10-7e8f3f8662b7" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgzfQ.MLD5j6OtA3Oixaz3XOyTi4HMepykzBZtLaboL81-2_c" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "6d4efea3-c3ff-42ff-9f10-7e8f3f8662b7",
    "url": "/v2/stacks/6d4efea3-c3ff-42ff-9f10-7e8f3f8662b7",
    "created_at": "2016-06-08T16:41:21Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "cflinuxfs4",
    "description": "cflinuxfs4"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b5bee12f-fd5b-4366-8f12-635848729b3e
Content-Length: 279
X-Content-Type-Options: nosniff