Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/fdf27517-d95e-4041-b2fd-52d8a70ea218

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtMTIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0MzN9.TN4r4mgXjvb9l9YN0qltwC7Oo-8f74NxlR_8LhG8qtU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/fdf27517-d95e-4041-b2fd-52d8a70ea218" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtMTIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0MzN9.TN4r4mgXjvb9l9YN0qltwC7Oo-8f74NxlR_8LhG8qtU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "fdf27517-d95e-4041-b2fd-52d8a70ea218",
    "url": "/v2/stacks/fdf27517-d95e-4041-b2fd-52d8a70ea218",
    "created_at": "2016-03-14T22:30:19Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 279
X-Content-Type-Options: nosniff