Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Fields

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

Parameters

Name Description Valid Values Example Values
guid The guid of the Stack

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NCIsImVtYWlsIjoiZW1haWwtMTE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDR9.I5GUL3ParvqIvSX2vw7ZjH_4FObRUc6Kv0tNOkVMLdg
Host: example.org
Cookie: 

Route

GET /v2/stacks/f5f24f03-c4bf-46e3-a883-248b1d16fb71

cURL

curl "https://api.[your-domain.com]/v2/stacks/f5f24f03-c4bf-46e3-a883-248b1d16fb71" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NCIsImVtYWlsIjoiZW1haWwtMTE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDR9.I5GUL3ParvqIvSX2vw7ZjH_4FObRUc6Kv0tNOkVMLdg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8139b222-c11e-4c92-a789-0a4cb4dfd210
Content-Length: 293
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "f5f24f03-c4bf-46e3-a883-248b1d16fb71",
    "url": "/v2/stacks/f5f24f03-c4bf-46e3-a883-248b1d16fb71",
    "created_at": "2014-11-13T23:38:21+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "lucid64",
    "description": "Ubuntu 10.04 on x86-64"
  }
}