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.eyJ1c2VyX2lkIjoidWFhLWlkLTc4IiwiZW1haWwiOiJlbWFpbC03NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODM0fQ.W56wnzBHXSNKbhNfYFfS5FEcULMEZ7zl31BNz_EE9Ec Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/stacks" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc4IiwiZW1haWwiOiJlbWFpbC03NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODM0fQ.W56wnzBHXSNKbhNfYFfS5FEcULMEZ7zl31BNz_EE9Ec" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "23cdeadf-0cc6-4985-881f-0c8c544dce28", "url": "/v2/stacks/23cdeadf-0cc6-4985-881f-0c8c544dce28", "created_at": "2015-11-03T00:53:43Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "cflinuxfs2" } }, { "metadata": { "guid": "de37da0a-b083-48eb-8062-e7fcaa34459b", "url": "/v2/stacks/de37da0a-b083-48eb-8062-e7fcaa34459b", "created_at": "2015-11-03T00:53:43Z", "updated_at": null }, "entity": { "name": "default-stack-name", "description": "default-stack-description" } }, { "metadata": { "guid": "2d51f08a-b3b9-410f-8ddd-25c3b4395a96", "url": "/v2/stacks/2d51f08a-b3b9-410f-8ddd-25c3b4395a96", "created_at": "2015-11-03T00:53:43Z", "updated_at": null }, "entity": { "name": "cider", "description": "cider-description" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 6654bc7d-e5ec-4c52-9e8f-2b7fd76251d8 Content-Length: 1117 X-Content-Type-Options: nosniff