GET /v2/spaces/19567cc9-e7a6-4dcd-9bcd-19bfe1bbd902/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 |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0IiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk2fQ.8NrDNGx9vCM9XbkLd9AAYBgM4Dk77RAbCu6wwCR-8Yk Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/19567cc9-e7a6-4dcd-9bcd-19bfe1bbd902/service_instances" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0IiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk2fQ.8NrDNGx9vCM9XbkLd9AAYBgM4Dk77RAbCu6wwCR-8Yk" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "84b8cfa7-109d-4a33-b086-2c90e48c503e", "url": "/v2/service_instances/84b8cfa7-109d-4a33-b086-2c90e48c503e", "created_at": "2015-10-13T17:31:36Z", "updated_at": null }, "entity": { "name": "name-111", "credentials": { "creds-key-59": "creds-val-59" }, "service_plan_guid": "47529b0c-3a0e-465f-8267-86654d1c81f7", "space_guid": "19567cc9-e7a6-4dcd-9bcd-19bfe1bbd902", "gateway_data": null, "dashboard_url": null, "type": "managed_service_instance", "last_operation": null, "tags": [ ], "space_url": "/v2/spaces/19567cc9-e7a6-4dcd-9bcd-19bfe1bbd902", "service_plan_url": "/v2/service_plans/47529b0c-3a0e-465f-8267-86654d1c81f7", "service_bindings_url": "/v2/service_instances/84b8cfa7-109d-4a33-b086-2c90e48c503e/service_bindings", "service_keys_url": "/v2/service_instances/84b8cfa7-109d-4a33-b086-2c90e48c503e/service_keys", "routes_url": "/v2/service_instances/84b8cfa7-109d-4a33-b086-2c90e48c503e/routes" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 0158597b-097f-4448-9d0f-a7cffb18437b Content-Length: 1244 X-Content-Type-Options: nosniff