Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/23cdeadf-0cc6-4985-881f-0c8c544dce28

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc1IiwiZW1haWwiOiJlbWFpbC03M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODM0fQ.elk-f5-e1Lrta6KAFlAZV7SdRmksRQlyQt_P0y9cBOo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/23cdeadf-0cc6-4985-881f-0c8c544dce28" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc1IiwiZW1haWwiOiJlbWFpbC03M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODM0fQ.elk-f5-e1Lrta6KAFlAZV7SdRmksRQlyQt_P0y9cBOo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "23cdeadf-0cc6-4985-881f-0c8c544dce28",
    "url": "/v2/stacks/23cdeadf-0cc6-4985-881f-0c8c544dce28",
    "created_at": "2015-11-03T00:53:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7c7dfc1a-d706-42a1-a406-f82add1d261d
Content-Length: 279
X-Content-Type-Options: nosniff