Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/54804ed9-dbfa-4386-b140-c8ec2f18289c

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1OSIsImVtYWlsIjoiZW1haWwtMTIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NjV9.lwDNuM1ili2LocVKtxRbMbtcjBS5-vHmO-gVl_rg_Sc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/54804ed9-dbfa-4386-b140-c8ec2f18289c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1OSIsImVtYWlsIjoiZW1haWwtMTIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NjV9.lwDNuM1ili2LocVKtxRbMbtcjBS5-vHmO-gVl_rg_Sc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "54804ed9-dbfa-4386-b140-c8ec2f18289c",
    "url": "/v2/stacks/54804ed9-dbfa-4386-b140-c8ec2f18289c",
    "created_at": "2015-03-18T22:52:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "lucid64",
    "description": "Ubuntu 10.04 on x86-64"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 27e25103-00a0-4ecf-b9d7-2b1fdef24aa3
Content-Length: 288
X-Content-Type-Options: nosniff