GET /v2/service_bindings
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: app_guid, service_instance_guid |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTZ9.hHAlosZ3eZubkkJUFfN-LqaPtwHww74CKodsn1rQCMQ Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_bindings" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTZ9.hHAlosZ3eZubkkJUFfN-LqaPtwHww74CKodsn1rQCMQ" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "64c5e509-58aa-4b59-b54c-83402cda814f", "url": "/v2/service_bindings/64c5e509-58aa-4b59-b54c-83402cda814f", "created_at": "2016-05-12T00:45:16Z", "updated_at": null }, "entity": { "app_guid": "c6e8d333-1b17-4c01-bd86-103073e990bf", "service_instance_guid": "800ff0c0-0eeb-4772-bc1c-a8fc4135bbc2", "credentials": { "creds-key-37": "creds-val-37" }, "binding_options": { }, "gateway_data": null, "gateway_name": "", "syslog_drain_url": null, "volume_mounts": [ ], "app_url": "/v2/apps/c6e8d333-1b17-4c01-bd86-103073e990bf", "service_instance_url": "/v2/service_instances/800ff0c0-0eeb-4772-bc1c-a8fc4135bbc2" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 4c650031-1dd8-4859-82fc-532606b46b31 Content-Length: 921 X-Content-Type-Options: nosniff