Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/ee0196fe-aab2-413c-8f2a-0d2ad3e854aa

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NSIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDN9.FoX_yc-NP7asUPguvQNf8iZxGTsnx1aK29iZSJMY4gg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/ee0196fe-aab2-413c-8f2a-0d2ad3e854aa" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NSIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDN9.FoX_yc-NP7asUPguvQNf8iZxGTsnx1aK29iZSJMY4gg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "ee0196fe-aab2-413c-8f2a-0d2ad3e854aa",
    "url": "/v2/stacks/ee0196fe-aab2-413c-8f2a-0d2ad3e854aa",
    "created_at": "2015-08-31T21:49:52Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 23f8aab2-ee32-415b-899f-af2dcbdda3d7
Content-Length: 279
X-Content-Type-Options: nosniff