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.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MiIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mjh9.ya7Mpc2t7L12-GgkwHaExMGYmTVUOyAEV9eveaJzolc Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/stacks" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MiIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mjh9.ya7Mpc2t7L12-GgkwHaExMGYmTVUOyAEV9eveaJzolc" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "29b1267e-5201-43dc-8b70-4eec0c336a47", "url": "/v2/stacks/29b1267e-5201-43dc-8b70-4eec0c336a47", "created_at": "2015-11-30T23:38:35Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "cflinuxfs2" } }, { "metadata": { "guid": "851a254c-7b89-4baf-81c0-915906a6e30a", "url": "/v2/stacks/851a254c-7b89-4baf-81c0-915906a6e30a", "created_at": "2015-11-30T23:38:35Z", "updated_at": null }, "entity": { "name": "default-stack-name", "description": "default-stack-description" } }, { "metadata": { "guid": "914d10ff-6fb4-49e5-9ed1-998ee597b78d", "url": "/v2/stacks/914d10ff-6fb4-49e5-9ed1-998ee597b78d", "created_at": "2015-11-30T23:38:35Z", "updated_at": null }, "entity": { "name": "cider", "description": "cider-description" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 1117 X-Content-Type-Options: nosniff