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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDV9.-7UWmsjdw3EEztq5vsM6TXeE6_58rd8oUtLTZDY8DAI Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/stacks" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDV9.-7UWmsjdw3EEztq5vsM6TXeE6_58rd8oUtLTZDY8DAI" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "067c18db-6a7f-4b4b-be4b-ac1c0b73b176", "url": "/v2/stacks/067c18db-6a7f-4b4b-be4b-ac1c0b73b176", "created_at": "2016-04-22T19:33:12Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "cflinuxfs2" } }, { "metadata": { "guid": "4f2ab158-fefc-4152-af18-fb7feff485a4", "url": "/v2/stacks/4f2ab158-fefc-4152-af18-fb7feff485a4", "created_at": "2016-04-22T19:33:12Z", "updated_at": null }, "entity": { "name": "default-stack-name", "description": "default-stack-description" } }, { "metadata": { "guid": "9a4b99e4-cc7a-4b48-b258-e53729436143", "url": "/v2/stacks/9a4b99e4-cc7a-4b48-b258-e53729436143", "created_at": "2016-04-22T19:33:12Z", "updated_at": null }, "entity": { "name": "cider", "description": "cider-description" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 4153992e-f188-4359-9536-d05288197dd9 Content-Length: 1117 X-Content-Type-Options: nosniff