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 |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NCIsImVtYWlsIjoiZW1haWwtMjI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDZ9.W-tSryYDkTLmVMSBgzhDgpneCcLnAyadcU_K1cLN9_s Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/buildpacks" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NCIsImVtYWlsIjoiZW1haWwtMjI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDZ9.W-tSryYDkTLmVMSBgzhDgpneCcLnAyadcU_K1cLN9_s" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "4ef74e06-59c0-4b71-9079-52bce0558104", "url": "/v2/buildpacks/4ef74e06-59c0-4b71-9079-52bce0558104", "created_at": "2015-11-03T00:54:06Z", "updated_at": null }, "entity": { "name": "name_1", "position": 1, "enabled": true, "locked": false, "filename": "name-1186" } }, { "metadata": { "guid": "408ad38e-87bc-46d5-9e11-e35586b55338", "url": "/v2/buildpacks/408ad38e-87bc-46d5-9e11-e35586b55338", "created_at": "2015-11-03T00:54:06Z", "updated_at": null }, "entity": { "name": "name_2", "position": 2, "enabled": true, "locked": false, "filename": "name-1187" } }, { "metadata": { "guid": "5c3ae606-5cd0-4983-802c-fc13d897257f", "url": "/v2/buildpacks/5c3ae606-5cd0-4983-802c-fc13d897257f", "created_at": "2015-11-03T00:54:06Z", "updated_at": null }, "entity": { "name": "name_3", "position": 3, "enabled": true, "locked": false, "filename": "name-1188" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: ef0aca4d-1b60-49d9-9552-06353fc11be5 Content-Length: 1299 X-Content-Type-Options: nosniff