GET /v2/buildpacks
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, stack |
|
|
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 |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MSIsImVtYWlsIjoiZW1haWwtMTI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTF9.LHAGpgzm1P-GSYUehNOgdV85jzg3ljrh_E6GswGb3iA Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/buildpacks" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MSIsImVtYWlsIjoiZW1haWwtMTI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTF9.LHAGpgzm1P-GSYUehNOgdV85jzg3ljrh_E6GswGb3iA" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "c92b6f5f-d2a4-413a-b515-647d059723aa", "url": "/v2/buildpacks/c92b6f5f-d2a4-413a-b515-647d059723aa", "created_at": "2016-06-08T16:41:31Z", "updated_at": "2016-06-08T16:41:26Z" }, "entity": { "name": "name_1", "stack": null, "position": 1, "enabled": true, "locked": false, "filename": "name-1616" } }, { "metadata": { "guid": "4de2ac22-ef36-4d62-9698-5f2b426748a9", "url": "/v2/buildpacks/4de2ac22-ef36-4d62-9698-5f2b426748a9", "created_at": "2016-06-08T16:41:31Z", "updated_at": "2016-06-08T16:41:26Z" }, "entity": { "name": "name_2", "stack": null, "position": 2, "enabled": true, "locked": false, "filename": "name-1617" } }, { "metadata": { "guid": "79f16936-56f1-41d5-a4c4-f0e9a8877791", "url": "/v2/buildpacks/79f16936-56f1-41d5-a4c4-f0e9a8877791", "created_at": "2016-06-08T16:41:31Z", "updated_at": "2016-06-08T16:41:26Z" }, "entity": { "name": "name_3", "stack": cflinuxfs4, "position": 3, "enabled": true, "locked": false, "filename": "name-1618" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 3db962f9-0ea4-43e1-88c7-d3c1d88620f5 Content-Length: 1299 X-Content-Type-Options: nosniff