Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/95d95d8a-a1f8-41f1-b71a-0402366c914c

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDV9.XqXejjZtHsvqWewuC1TbrSpZxNTRhPkQbOmTH79TxTI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/95d95d8a-a1f8-41f1-b71a-0402366c914c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDV9.XqXejjZtHsvqWewuC1TbrSpZxNTRhPkQbOmTH79TxTI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "95d95d8a-a1f8-41f1-b71a-0402366c914c",
    "url": "/v2/stacks/95d95d8a-a1f8-41f1-b71a-0402366c914c",
    "created_at": "2015-04-07T19:11:38Z",
    "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: c0524638-49f8-4dab-bb70-52abbf4f712a
Content-Length: 288
X-Content-Type-Options: nosniff