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.eyJ1c2VyX2lkIjoidWFhLWlkLTExNSIsImVtYWlsIjoiZW1haWwtODZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDMxMDEyNX0.-0zyleWqXcAPhAdIutTywnxYE3QYburdgQ03k1QBa64
Host: example.org
Cookie: 

Route

GET /v2/stacks/78532e59-4633-45ff-9033-d11ea4ac36a0

cURL

curl "https://api.[your-domain.com]/v2/stacks/78532e59-4633-45ff-9033-d11ea4ac36a0" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNSIsImVtYWlsIjoiZW1haWwtODZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDMxMDEyNX0.-0zyleWqXcAPhAdIutTywnxYE3QYburdgQ03k1QBa64" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 65584b5c-02d6-451a-8022-a8f21c4ce50f
Content-Length: 288
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "78532e59-4633-45ff-9033-d11ea4ac36a0",
    "url": "/v2/stacks/78532e59-4633-45ff-9033-d11ea4ac36a0",
    "created_at": "2015-02-12T01:41:54Z",
    "updated_at": null
  },
  "entity": {
    "name": "lucid64",
    "description": "Ubuntu 10.04 on x86-64"
  }
}