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.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MiIsImVtYWlsIjoiZW1haWwtMjQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzZ9.DTzW9Tla6hIiTLNNmfOahl-i9qJBvAVGNAnmryYebMw Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/stacks" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MiIsImVtYWlsIjoiZW1haWwtMjQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzZ9.DTzW9Tla6hIiTLNNmfOahl-i9qJBvAVGNAnmryYebMw" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "fcf47da3-43d3-4033-b328-cfe5573a529c", "url": "/v2/stacks/fcf47da3-43d3-4033-b328-cfe5573a529c", "created_at": "2015-03-03T00:51:04Z", "updated_at": null }, "entity": { "name": "lucid64", "description": "Ubuntu 10.04 on x86-64" } }, { "metadata": { "guid": "e7d98ff8-94e3-41b7-9b49-7ab059f49b4f", "url": "/v2/stacks/e7d98ff8-94e3-41b7-9b49-7ab059f49b4f", "created_at": "2015-03-03T00:51:04Z", "updated_at": null }, "entity": { "name": "default-stack-name", "description": "default-stack-description" } }, { "metadata": { "guid": "17fe5a39-5c6b-4dad-a61f-50cdeae7a483", "url": "/v2/stacks/17fe5a39-5c6b-4dad-a61f-50cdeae7a483", "created_at": "2015-03-03T00:51:04Z", "updated_at": null }, "entity": { "name": "cider", "description": "cider-description" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 6964ffc8-4800-4f5f-b7e6-d88dea370fb8 Content-Length: 1126 X-Content-Type-Options: nosniff