GET /v2/spaces/6f08cbe5-4a19-419a-925c-e64c64ace909/service_instances
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, service_key_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 |
|
|
Name | Description | Default | Valid Values | Example Values |
---|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUyIiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4NzAwfQ.VBwZl9u_0KjU0S2DXkvNo0Npj8obYNBlizi0B4hbNTk Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/6f08cbe5-4a19-419a-925c-e64c64ace909/service_instances" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUyIiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4NzAwfQ.VBwZl9u_0KjU0S2DXkvNo0Npj8obYNBlizi0B4hbNTk" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "6b83e117-d71c-4ff1-8e7d-8de39ed6b7c6", "url": "/v2/service_instances/6b83e117-d71c-4ff1-8e7d-8de39ed6b7c6", "created_at": "2015-04-07T19:11:40Z", "updated_at": null }, "entity": { "name": "name-211", "credentials": { "creds-key-121": "creds-val-121" }, "service_plan_guid": "11639525-9d11-4809-827c-419744d712e1", "space_guid": "6f08cbe5-4a19-419a-925c-e64c64ace909", "gateway_data": null, "dashboard_url": null, "type": "managed_service_instance", "last_operation": null, "space_url": "/v2/spaces/6f08cbe5-4a19-419a-925c-e64c64ace909", "service_plan_url": "/v2/service_plans/11639525-9d11-4809-827c-419744d712e1", "service_bindings_url": "/v2/service_instances/6b83e117-d71c-4ff1-8e7d-8de39ed6b7c6/service_bindings", "service_keys_url": "/v2/service_instances/6b83e117-d71c-4ff1-8e7d-8de39ed6b7c6/service_keys" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 5456cb2e-cbbe-4af6-a1ea-42c4ff904c08 Content-Length: 1125 X-Content-Type-Options: nosniff