Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/28a278c7-a8ee-472b-b6be-43b6b234fa32

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUiLCJlbWFpbCI6ImVtYWlsLTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyMn0._rVw76ncnfgoWWrk0NcjPNZUdZDuI7NaEFcccgtyadA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/28a278c7-a8ee-472b-b6be-43b6b234fa32" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUiLCJlbWFpbCI6ImVtYWlsLTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyMn0._rVw76ncnfgoWWrk0NcjPNZUdZDuI7NaEFcccgtyadA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "28a278c7-a8ee-472b-b6be-43b6b234fa32",
    "url": "/v2/stacks/28a278c7-a8ee-472b-b6be-43b6b234fa32",
    "created_at": "2016-04-16T01:23:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 64718bd3-f621-429c-93aa-53ccc036ed97
Content-Length: 279
X-Content-Type-Options: nosniff