Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/5509794c-418f-47ad-9257-aaa6c3b376ac

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMSIsImVtYWlsIjoiZW1haWwtMTY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1Mzh9.kRu-Ia_rMJWC2TJRYH0MG4m-Giro6IRuIAPTRp0lM1c
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/5509794c-418f-47ad-9257-aaa6c3b376ac" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMSIsImVtYWlsIjoiZW1haWwtMTY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1Mzh9.kRu-Ia_rMJWC2TJRYH0MG4m-Giro6IRuIAPTRp0lM1c" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5509794c-418f-47ad-9257-aaa6c3b376ac",
    "url": "/v2/stacks/5509794c-418f-47ad-9257-aaa6c3b376ac",
    "created_at": "2015-09-11T18:38:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cce04226-a713-4335-9ec7-7d9e2a02ae1b
Content-Length: 279
X-Content-Type-Options: nosniff