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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NiIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDN9.ECxz8nSBYaiV-5QOyyiYktrChonr385jWpdpFLAasXU Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/stacks" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NiIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDN9.ECxz8nSBYaiV-5QOyyiYktrChonr385jWpdpFLAasXU" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "ee0196fe-aab2-413c-8f2a-0d2ad3e854aa", "url": "/v2/stacks/ee0196fe-aab2-413c-8f2a-0d2ad3e854aa", "created_at": "2015-08-31T21:49:52Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "cflinuxfs2" } }, { "metadata": { "guid": "1f348110-f63e-474e-96c7-0662c7486252", "url": "/v2/stacks/1f348110-f63e-474e-96c7-0662c7486252", "created_at": "2015-08-31T21:49:52Z", "updated_at": null }, "entity": { "name": "default-stack-name", "description": "default-stack-description" } }, { "metadata": { "guid": "a69a7913-a017-4e0d-aca1-19e4977cc40f", "url": "/v2/stacks/a69a7913-a017-4e0d-aca1-19e4977cc40f", "created_at": "2015-08-31T21:49:52Z", "updated_at": null }, "entity": { "name": "cider", "description": "cider-description" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: ff320ef7-fcc8-42f3-802a-324b29133b15 Content-Length: 1117 X-Content-Type-Options: nosniff