Name | Description | Default | Valid Values | Example Values |
---|
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Organization |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg1fQ.ueNoakCPtFBGDrvXSpxDaQWG0A0MgM6ZySMYnuZUjdY Host: example.org Cookie:
GET /v2/organizations/0f23e362-5e70-455a-b946-066482cb7a1e/services
curl "https://api.[your-domain.com]/v2/organizations/0f23e362-5e70-455a-b946-066482cb7a1e/services" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg1fQ.ueNoakCPtFBGDrvXSpxDaQWG0A0MgM6ZySMYnuZUjdY" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 08515e24-e805-40bd-a74f-7ef7ced5a940 Content-Length: 996 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "e0f50ed8-f309-4fef-970e-9dddbb7c5d4e", "url": "/v2/services/e0f50ed8-f309-4fef-970e-9dddbb7c5d4e", "created_at": "2015-02-13T22:34:45Z", "updated_at": null }, "entity": { "label": "label-1", "provider": "provider-1", "url": "https://foo.com/url-1", "description": "desc-1", "long_description": null, "version": "version-1", "info_url": null, "active": true, "bindable": true, "unique_id": "24ab1522-40d5-4e15-bfbe-57d03d9c10c9", "extra": null, "tags": [ ], "requires": [ ], "documentation_url": null, "service_broker_guid": null, "plan_updateable": false, "service_plans_url": "/v2/services/e0f50ed8-f309-4fef-970e-9dddbb7c5d4e/service_plans" } } ] }