Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/a56cfc4d-f376-4913-9126-edd5354b3c22

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNCIsImVtYWlsIjoiZW1haWwtMTMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDN9.pqxiVvs205t13_JRJgn9jpHkuV0wdhCuub7sIQhzbxM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/a56cfc4d-f376-4913-9126-edd5354b3c22" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNCIsImVtYWlsIjoiZW1haWwtMTMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDN9.pqxiVvs205t13_JRJgn9jpHkuV0wdhCuub7sIQhzbxM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "a56cfc4d-f376-4913-9126-edd5354b3c22",
    "url": "/v2/stacks/a56cfc4d-f376-4913-9126-edd5354b3c22",
    "created_at": "2015-09-30T23:30:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b1e8a45b-a853-410f-985c-384fe15f7a05
Content-Length: 279
X-Content-Type-Options: nosniff