Home
Version 3
User Provided Service Instances API

User Provided Service Instances API

List all User Provided Service Instances

GET /v2/user_provided_service_instances

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
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.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNjUyNjY5NH0.spZ0kJ3zLpFvwgNvWDRKjtDhDpHWlgaxY7IQvd_IoM4
Host: example.org
Cookie: 

Route

GET /v2/user_provided_service_instances

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNjUyNjY5NH0.spZ0kJ3zLpFvwgNvWDRKjtDhDpHWlgaxY7IQvd_IoM4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f3b7c1bd-7b6a-42d4-b334-a8cc86b6dce2
Content-Length: 863
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "3b74b2ba-2915-45ae-bff2-b28294a2ad9b",
        "url": "/v2/user_provided_service_instances/3b74b2ba-2915-45ae-bff2-b28294a2ad9b",
        "created_at": "2014-11-13T23:38:14+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "name-11",
        "credentials": {
          "creds-key-14": "creds-val-14"
        },
        "space_guid": "28d8f775-5d08-4e48-8bc7-844a24468984",
        "type": "user_provided_service_instance",
        "syslog_drain_url": "https://foo.com/url-2",
        "space_url": "/v2/spaces/28d8f775-5d08-4e48-8bc7-844a24468984",
        "service_bindings_url": "/v2/user_provided_service_instances/3b74b2ba-2915-45ae-bff2-b28294a2ad9b/service_bindings"
      }
    }
  ]
}