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: name, space_guid, service_plan_guid, service_binding_guid, gateway_name, organization_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.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMiIsImVtYWlsIjoiZW1haWwtMTQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE2OTZ9.YgIHlYl3BZZN-6MpFVxCoP_Pc6lZ63-C8O_NpcR8Vbc Host: example.org Cookie:
GET /v2/service_instances
curl "https://api.[your-domain.com]/v2/service_instances" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMiIsImVtYWlsIjoiZW1haWwtMTQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE2OTZ9.YgIHlYl3BZZN-6MpFVxCoP_Pc6lZ63-C8O_NpcR8Vbc" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: e4c09f42-1a99-49d6-b1ef-c1effb002f40 Content-Length: 1023 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "8cf54cd3-8622-4f0e-bde4-1876be87e2f7", "url": "/v2/service_instances/8cf54cd3-8622-4f0e-bde4-1876be87e2f7", "created_at": "2015-02-13T22:34:56Z", "updated_at": null }, "entity": { "name": "name-1286", "credentials": { "creds-key-319": "creds-val-319" }, "service_plan_guid": "04120b45-9524-4f01-8907-3b4b6107e787", "space_guid": "3c61d871-da86-41a2-b051-df7f5e6785c1", "gateway_data": null, "dashboard_url": null, "type": "managed_service_instance", "last_operation": null, "space_url": "/v2/spaces/3c61d871-da86-41a2-b051-df7f5e6785c1", "service_plan_url": "/v2/service_plans/04120b45-9524-4f01-8907-3b4b6107e787", "service_bindings_url": "/v2/service_instances/8cf54cd3-8622-4f0e-bde4-1876be87e2f7/service_bindings" } } ] }