Home
Version 3
User Provided Service Instances API

User Provided Service Instances API

List all Service Bindings for the User Provided Service Instance

GET /v2/user_provided_service_instances/:guid/service_bindings

Fields

Name Description Default Valid Values Example Values
guid The guid of the Service Instance.

Parameters

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
  • q=filter:value
  • q=filter>value
  • q=filter IN a,b,c
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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExOCIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjMyMzUzN30.xBzn8zWWNJFPIUQpC73fPv8T2QbLy0A5aQkiQ--3BRw
Host: example.org
Cookie: 

Route

GET /v2/user_provided_service_instances/d52aef6a-1bd2-42f0-ade4-80cb7cc60a16/service_bindings

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/d52aef6a-1bd2-42f0-ade4-80cb7cc60a16/service_bindings" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExOCIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjMyMzUzN30.xBzn8zWWNJFPIUQpC73fPv8T2QbLy0A5aQkiQ--3BRw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 56d0cd88-82a6-471d-9358-272f842946f9
Content-Length: 903
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "3b4b9027-0876-433a-bf67-b04c52a4107f",
        "url": "/v2/service_bindings/3b4b9027-0876-433a-bf67-b04c52a4107f",
        "created_at": "2015-01-20T01:52:17+00:00",
        "updated_at": null
      },
      "entity": {
        "app_guid": "a49f8436-0b0b-473c-b4eb-16fc6b397eff",
        "service_instance_guid": "d52aef6a-1bd2-42f0-ade4-80cb7cc60a16",
        "credentials": {
          "creds-key-192": "creds-val-192"
        },
        "binding_options": {

        },
        "gateway_data": null,
        "gateway_name": "",
        "syslog_drain_url": null,
        "app_url": "/v2/apps/a49f8436-0b0b-473c-b4eb-16fc6b397eff",
        "service_instance_url": "/v2/user_provided_service_instances/d52aef6a-1bd2-42f0-ade4-80cb7cc60a16"
      }
    }
  ]
}