Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/067c18db-6a7f-4b4b-be4b-ac1c0b73b176

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MyIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDV9.FsgghdV6c5d6vBgvQusR_2Lb4rMFoIpziKV1Iv8KOKw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/067c18db-6a7f-4b4b-be4b-ac1c0b73b176" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MyIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDV9.FsgghdV6c5d6vBgvQusR_2Lb4rMFoIpziKV1Iv8KOKw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "067c18db-6a7f-4b4b-be4b-ac1c0b73b176",
    "url": "/v2/stacks/067c18db-6a7f-4b4b-be4b-ac1c0b73b176",
    "created_at": "2016-04-22T19:33:12Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1d1e67e3-29f0-45ab-913a-34bee099e3c2
Content-Length: 279
X-Content-Type-Options: nosniff