Name | Description | Default | Valid Values | Example Values |
---|
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the App |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NyIsImVtYWlsIjoiZW1haWwtMjAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTF9.mS6OwsayeCi_cq_j2HTsijlC4aTt1s8PjdX6nOIHneA Host: example.org Cookie:
GET /v2/apps/283b7b24-7fc9-4f42-87de-b03fe19ccd9a/service_bindings
curl "https://api.[your-domain.com]/v2/apps/283b7b24-7fc9-4f42-87de-b03fe19ccd9a/service_bindings" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NyIsImVtYWlsIjoiZW1haWwtMjAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTF9.mS6OwsayeCi_cq_j2HTsijlC4aTt1s8PjdX6nOIHneA" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 6d38f11a-8e2a-426f-a4b5-44b7e26e483a 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": "fe0f5445-8a0e-4e9b-a8c5-f216f1e71260", "url": "/v2/service_bindings/fe0f5445-8a0e-4e9b-a8c5-f216f1e71260", "created_at": "2014-11-13T23:38:31+00:00", "updated_at": null }, "entity": { "app_guid": "283b7b24-7fc9-4f42-87de-b03fe19ccd9a", "service_instance_guid": "41edcb8f-16f2-4524-a4e5-f81e505e4d6d", "credentials": { "creds-key-433": "creds-val-433" }, "binding_options": { }, "gateway_data": null, "gateway_name": "", "syslog_drain_url": null, "app_url": "/v2/apps/283b7b24-7fc9-4f42-87de-b03fe19ccd9a", "service_instance_url": "/v2/service_instances/41edcb8f-16f2-4524-a4e5-f81e505e4d6d" } } ] }