Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/dbec3b8e-15c9-4b2a-8bd0-5ba15568bc56

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MSIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTJ9.AIOmCfIt4KBQfpyuTMsQQAFVSmcKi7CtcAQOUEmObC4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/dbec3b8e-15c9-4b2a-8bd0-5ba15568bc56" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MSIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTJ9.AIOmCfIt4KBQfpyuTMsQQAFVSmcKi7CtcAQOUEmObC4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "dbec3b8e-15c9-4b2a-8bd0-5ba15568bc56",
    "url": "/v2/stacks/dbec3b8e-15c9-4b2a-8bd0-5ba15568bc56",
    "created_at": "2015-10-13T17:31:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e9e3e65d-fd06-4a42-9a71-054361669099
Content-Length: 279
X-Content-Type-Options: nosniff