Home
Version 3
Stacks API

Stacks API

Retrieve a Particular Stack

GET /v2/stacks/:guid

Request

Route

GET /v2/stacks/57de0828-93d6-40bc-b9a5-4977d882e2b7

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4OCIsImVtYWlsIjoiZW1haWwtMjkwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzB9.M6SuucRkK_XKVvFYmPG6SqsNef9VfA8Qk_OL8FbRYGM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/stacks/57de0828-93d6-40bc-b9a5-4977d882e2b7" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4OCIsImVtYWlsIjoiZW1haWwtMjkwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzB9.M6SuucRkK_XKVvFYmPG6SqsNef9VfA8Qk_OL8FbRYGM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "57de0828-93d6-40bc-b9a5-4977d882e2b7",
    "url": "/v2/stacks/57de0828-93d6-40bc-b9a5-4977d882e2b7",
    "created_at": "2015-10-15T23:52:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "cflinuxfs2",
    "description": "cflinuxfs2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 74371f47-7e82-4ba7-8054-3e89e174300a
Content-Length: 279
X-Content-Type-Options: nosniff