Name | Description | Default | Valid Values | Example Values |
---|---|---|---|---|
name | The name for the stack. |
|
|
|
description | The description for the stack |
|
|
Name | Description | Valid Values | Example Values |
---|---|---|---|
q |
Parameters used to filter the result set. Format queries as <filter><op><value> Valid ops: : >= <= < > IN Valid filters: name |
|
|
page | Page of results to fetch |
|
|
results-per-page | Number of results per page |
|
|
order-direction | Order of the results: asc (default) or desc |
|
|
inline-relations-depth | 0 - don't inline any relations and return URLs. Otherwise, inline to depth N. |
|
|
orphan-relations | 0 - de-duplicate object entries in response |
|
|
exclude-relations | comma-delimited list of relations to drop from response |
|
|
include-relations | comma-delimited list of the only relations to include in response |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjh9.-gkOHg7K962_zcu61OWSFJsFvQtAAJvxE5WvDKFp_0Y Host: example.org Cookie:
GET /v2/stacks
curl "https://api.[your-domain.com]/v2/stacks" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjh9.-gkOHg7K962_zcu61OWSFJsFvQtAAJvxE5WvDKFp_0Y" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 271974ae-233a-4262-807b-e55fe27f52ad Content-Length: 1126 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "b3d40a91-13bb-4be9-acbe-6466ccc6f428", "url": "/v2/stacks/b3d40a91-13bb-4be9-acbe-6466ccc6f428", "created_at": "2015-02-10T01:42:40Z", "updated_at": null }, "entity": { "name": "lucid64", "description": "Ubuntu 10.04 on x86-64" } }, { "metadata": { "guid": "8a78e753-c401-45cb-809b-04a9ce32a899", "url": "/v2/stacks/8a78e753-c401-45cb-809b-04a9ce32a899", "created_at": "2015-02-10T01:42:41Z", "updated_at": null }, "entity": { "name": "default-stack-name", "description": "default-stack-description" } }, { "metadata": { "guid": "14cd1759-da16-46cd-893c-230aee952615", "url": "/v2/stacks/14cd1759-da16-46cd-893c-230aee952615", "created_at": "2015-02-10T01:42:41Z", "updated_at": null }, "entity": { "name": "cider", "description": "cider-description" } } ] }