Name | Description | Default | Valid Values | Example Values |
---|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTcwIiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzU1fQ.CjLlyCzcrnKSyoA1cs2kZvJ4nV4i_e2OX0QR9tR6Itg Host: example.org Cookie:
GET /v2/service_bindings
curl "https://api.[your-domain.com]/v2/service_bindings" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcwIiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzU1fQ.CjLlyCzcrnKSyoA1cs2kZvJ4nV4i_e2OX0QR9tR6Itg" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: d47fa44f-79c3-4e53-be47-96cd7157e92e Content-Length: 889 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "1ed45943-c95d-43f6-a50f-5b6c3eb7bdb2", "url": "/v2/service_bindings/1ed45943-c95d-43f6-a50f-5b6c3eb7bdb2", "created_at": "2014-11-24T19:32:35+00:00", "updated_at": null }, "entity": { "app_guid": "5d5ce938-e7e1-43a2-9842-7646662a1472", "service_instance_guid": "e6cb27f8-26fd-420d-b58d-bd90b1ee6e46", "credentials": { "creds-key-147": "creds-val-147" }, "binding_options": { }, "gateway_data": null, "gateway_name": "", "syslog_drain_url": null, "app_url": "/v2/apps/5d5ce938-e7e1-43a2-9842-7646662a1472", "service_instance_url": "/v2/service_instances/e6cb27f8-26fd-420d-b58d-bd90b1ee6e46" } } ] }