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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtODVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY5MH0.Rky6SJmxAK5jvoyoRP06EBDeOWZ4znDXPkAyHvYPy8A
Host: example.org
Cookie: 

Route

GET /v2/stacks/514c7cae-e2fe-42d4-8283-98f95e2b068c

cURL

curl "https://api.[your-domain.com]/v2/stacks/514c7cae-e2fe-42d4-8283-98f95e2b068c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtODVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY5MH0.Rky6SJmxAK5jvoyoRP06EBDeOWZ4znDXPkAyHvYPy8A" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6fc1717d-59fd-40dd-8ad1-cf0b707d30c7
Content-Length: 288
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "514c7cae-e2fe-42d4-8283-98f95e2b068c",
    "url": "/v2/stacks/514c7cae-e2fe-42d4-8283-98f95e2b068c",
    "created_at": "2015-02-13T22:34:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "lucid64",
    "description": "Ubuntu 10.04 on x86-64"
  }
}