Name | Description | Default | Valid Values | Example Values |
---|---|---|---|---|
guid | The guid of the service plan |
|
|
|
name | The name of the service plan |
|
|
|
free | A boolean describing if the service plan is free |
|
|
|
description | A description of the service plan |
|
|
|
extra | A JSON string with additional data about the plan |
|
|
|
unique_id | A guid for the service plan in the service broker (not the same as the cloud controller guid) |
|
|
|
public | A boolean describing that the plan is visible to the all users | true |
|
|
service_guid | The guid of the related service |
|
|
|
active | A boolean that determines whether plans can be used to create new instances. |
|
|
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, service_guid, service_instance_guid, 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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NCIsImVtYWlsIjoiZW1haWwtMjY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5ODB9.mB4tmfP2rrI7si389uVjRzr1a33aLh7jGoFVfWOZjZQ Host: example.org Cookie:
GET /v2/service_plans
curl "https://api.[your-domain.com]/v2/service_plans" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NCIsImVtYWlsIjoiZW1haWwtMjY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5ODB9.mB4tmfP2rrI7si389uVjRzr1a33aLh7jGoFVfWOZjZQ" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 5087d4a5-0a09-49f2-b235-3b2d2c670bf6 Content-Length: 847 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "03d6cb1f-7ead-452e-b79a-0a41f6b2a9de", "url": "/v2/service_plans/03d6cb1f-7ead-452e-b79a-0a41f6b2a9de", "created_at": "2014-12-24T01:39:40+00:00", "updated_at": null }, "entity": { "name": "name-1931", "free": false, "description": "desc-181", "service_guid": "1a7ad36c-c7b6-4543-b6ab-a71d827a87f3", "extra": null, "unique_id": "04f654cd-821f-4408-87a4-849e9103619b", "public": true, "active": true, "service_url": "/v2/services/1a7ad36c-c7b6-4543-b6ab-a71d827a87f3", "service_instances_url": "/v2/service_plans/03d6cb1f-7ead-452e-b79a-0a41f6b2a9de/service_instances" } } ] }