Name | Description | Default | Valid Values | Example Values |
---|
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Space |
|
|
q |
Parameters used to filter the result set. Format queries as <filter><op><value> Valid ops: : >= <= < > IN Valid filters: active, label, provider, service_broker_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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODN9._dP2zYv_RepNNjVyVYjm8XUgxpq0z8q3t83GQCILlw0 Host: example.org Cookie:
GET /v2/spaces/1913e6e2-2248-4c8a-a4c9-ab05fea3fcd0/services
curl "https://api.[your-domain.com]/v2/spaces/1913e6e2-2248-4c8a-a4c9-ab05fea3fcd0/services" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODN9._dP2zYv_RepNNjVyVYjm8XUgxpq0z8q3t83GQCILlw0" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 437083f4-d625-410f-9825-ea93d0ea1690 Content-Length: 1003 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "fa3c2963-5d9c-44cc-a02e-f7fa200fb3c4", "url": "/v2/services/fa3c2963-5d9c-44cc-a02e-f7fa200fb3c4", "created_at": "2015-01-27T19:14:43Z", "updated_at": null }, "entity": { "label": "label-83", "provider": "provider-74", "url": "https://foo.com/url-104", "description": "desc-196", "long_description": null, "version": "version-58", "info_url": null, "active": true, "bindable": true, "unique_id": "040c8135-b08c-4455-97a5-882d0be1b236", "extra": null, "tags": [ ], "requires": [ ], "documentation_url": null, "service_broker_guid": null, "plan_updateable": false, "service_plans_url": "/v2/services/fa3c2963-5d9c-44cc-a02e-f7fa200fb3c4/service_plans" } } ] }