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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyOSIsImVtYWlsIjoiZW1haWwtMTgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzV9.r-OWm-xjMomO0DEtWHTau8zHGvN9ftlPMF3fdG12U0o Host: example.org Cookie:
GET /v2/stacks
curl "https://api.[your-domain.com]/v2/stacks" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyOSIsImVtYWlsIjoiZW1haWwtMTgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzV9.r-OWm-xjMomO0DEtWHTau8zHGvN9ftlPMF3fdG12U0o" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: a12c4e08-1c3b-4140-b3b5-c9584ee5659e Content-Length: 1141 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "ad8bde19-f394-43e3-afaa-61a909cb33a9", "url": "/v2/stacks/ad8bde19-f394-43e3-afaa-61a909cb33a9", "created_at": "2014-12-24T01:39:32+00:00", "updated_at": null }, "entity": { "name": "lucid64", "description": "Ubuntu 10.04 on x86-64" } }, { "metadata": { "guid": "4aabc9df-3c53-4237-bd4e-8a8b5010b3c4", "url": "/v2/stacks/4aabc9df-3c53-4237-bd4e-8a8b5010b3c4", "created_at": "2014-12-24T01:39:32+00:00", "updated_at": null }, "entity": { "name": "default-stack-name", "description": "default-stack-description" } }, { "metadata": { "guid": "0997f7cd-9860-4204-ac91-8dfa1e31ea17", "url": "/v2/stacks/0997f7cd-9860-4204-ac91-8dfa1e31ea17", "created_at": "2014-12-24T01:39:32+00:00", "updated_at": null }, "entity": { "name": "cider", "description": "cider-description" } } ] }