Name | Description | Default | Valid Values | Example Values |
---|
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Space |
|
|
return_user_provided_service_instances | When 'true', include user provided service instances. |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3IiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYyfQ.eh2LTxtyy6dLlYUQYbXmMdoMt0wlBixXLBos7VaSy1s Host: example.org Cookie:
GET /v2/spaces/45b2bcf7-b3ee-4497-8439-a84048ca32d3/service_instances
curl "https://api.[your-domain.com]/v2/spaces/45b2bcf7-b3ee-4497-8439-a84048ca32d3/service_instances" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3IiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYyfQ.eh2LTxtyy6dLlYUQYbXmMdoMt0wlBixXLBos7VaSy1s" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: c46b5969-ce84-4aef-aa5e-f38e6c75349a Content-Length: 992 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "7f73ec80-ed41-4c39-8f69-bffcf54e09ce", "url": "/v2/service_instances/7f73ec80-ed41-4c39-8f69-bffcf54e09ce", "created_at": "2014-12-24T01:39:22+00:00", "updated_at": null }, "entity": { "name": "name-80", "credentials": { "creds-key-74": "creds-val-74" }, "service_plan_guid": "dd6492c8-054e-4716-ba11-91a99c80b622", "space_guid": "45b2bcf7-b3ee-4497-8439-a84048ca32d3", "gateway_data": null, "dashboard_url": null, "type": "managed_service_instance", "space_url": "/v2/spaces/45b2bcf7-b3ee-4497-8439-a84048ca32d3", "service_plan_url": "/v2/service_plans/dd6492c8-054e-4716-ba11-91a99c80b622", "service_bindings_url": "/v2/service_instances/7f73ec80-ed41-4c39-8f69-bffcf54e09ce/service_bindings" } } ] }