Name | Description | Default | Valid Values | Example Values |
---|---|---|---|---|
guid | The guid of the service |
|
|
|
label | The name of the service |
|
|
|
description | A short blurb describing the service |
|
|
|
long_description | A longer description of the service |
|
|
|
info_url | A url that points to an info page for the service |
|
|
|
documentation_url | A url that points to a documentation page for the service |
|
|
|
timeout | A timeout used by the v1 service gateway client |
|
|
|
active | A boolean describing that the service can be provisioned by users | false |
|
|
bindable | A boolean describing that the service can be bound to applications | true |
|
|
extra | A JSON field with extra data pertaining to the service |
|
|
|
unique_id | A guid that identifies the service with the broker (not the same as the guid above) |
|
|
|
tags | A list of tags for the service | [] |
|
|
requires | A list of dependencies for services | [] |
|
|
provider | The name of the service provider (used only by v1 service gateways) |
|
|
|
version | The version of the service (used only by v1 service gateways) |
|
|
|
url | The url of ther service provider (used only by v1 service gateways) |
|
|
|
service_broker_guid | The guid of the v2 service broker associated with the service |
|
|
Name | Description | Valid Values | Example Values |
---|---|---|---|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTIwIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYxfQ.BR6T_Qlpbjzyo_2c0srzZXWENKci-jAdyK0vLDrWfbQ Host: example.org Cookie:
GET /v2/services
curl "https://api.[your-domain.com]/v2/services" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYxfQ.BR6T_Qlpbjzyo_2c0srzZXWENKci-jAdyK0vLDrWfbQ" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: aa48d0ba-ec0f-49b4-b21d-854102958307 Content-Length: 1036 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "dc407049-c627-46be-92c6-3c8832aa847d", "url": "/v2/services/dc407049-c627-46be-92c6-3c8832aa847d", "created_at": "2014-12-24T01:39:21+00:00", "updated_at": null }, "entity": { "label": "label-6", "provider": "provider-6", "url": "https://foo.com/url-8", "description": "desc-16", "long_description": null, "version": "version-6", "info_url": null, "active": true, "bindable": true, "unique_id": "6d948887-00b1-4637-bce5-16e55fd7ed49", "extra": null, "tags": [ ], "requires": [ ], "documentation_url": null, "service_broker_guid": "4f601624-1580-4b0c-a0d7-f61985b8a942", "plan_updateable": false, "service_plans_url": "/v2/services/dc407049-c627-46be-92c6-3c8832aa847d/service_plans" } } ] }