Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/0c1eba10-5f91-4b8a-a931-65a5090110c7

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NiIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5ODd9.kIG0fdnI5QWHYE-LGgdpHuQaVpJXRHI4Ge6rg2xAePc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/0c1eba10-5f91-4b8a-a931-65a5090110c7" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NiIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5ODd9.kIG0fdnI5QWHYE-LGgdpHuQaVpJXRHI4Ge6rg2xAePc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "0c1eba10-5f91-4b8a-a931-65a5090110c7",
    "url": "/v2/stacks/0c1eba10-5f91-4b8a-a931-65a5090110c7",
    "created_at": "2015-05-21T01:03:00Z",
    "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: 8d986e98-9b0f-48c5-b35b-14a8e920597e
Content-Length: 288
X-Content-Type-Options: nosniff