GET /v2/stacks
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 |
|
|
Name | Description | Default | Valid Values | Example Values |
---|---|---|---|---|
name | The name for the stack. |
|
|
|
description | The description for the stack |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NCIsImVtYWlsIjoiZW1haWwtMjc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NjV9.zexGd4XTZgl3a5xdazNjp2pndNRkrc_TMI3uBzMP9dk Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/stacks" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NCIsImVtYWlsIjoiZW1haWwtMjc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NjV9.zexGd4XTZgl3a5xdazNjp2pndNRkrc_TMI3uBzMP9dk" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "3c404d45-ac94-4d6d-8260-19d1aa53c2a6", "url": "/v2/stacks/3c404d45-ac94-4d6d-8260-19d1aa53c2a6", "created_at": "2015-03-05T19:15:53Z", "updated_at": null }, "entity": { "name": "lucid64", "description": "Ubuntu 10.04 on x86-64" } }, { "metadata": { "guid": "dea7be46-d50c-4f6c-9940-ae0494859b10", "url": "/v2/stacks/dea7be46-d50c-4f6c-9940-ae0494859b10", "created_at": "2015-03-05T19:15:53Z", "updated_at": null }, "entity": { "name": "default-stack-name", "description": "default-stack-description" } }, { "metadata": { "guid": "75bea64d-b0b2-4c72-9c8a-064c74080543", "url": "/v2/stacks/75bea64d-b0b2-4c72-9c8a-064c74080543", "created_at": "2015-03-05T19:15:53Z", "updated_at": null }, "entity": { "name": "cider", "description": "cider-description" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 3c669d16-f7eb-4353-a2e1-5d1b91a942c9 Content-Length: 1126 X-Content-Type-Options: nosniff