GET /v2/service_plans
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 |
|
|
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. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MiIsImVtYWlsIjoiZW1haWwtMjYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDN9.MWqA701XQrfnYLASgKU_Rh_3ruZEVpkjMDD1rBnavmE Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_plans" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MiIsImVtYWlsIjoiZW1haWwtMjYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDN9.MWqA701XQrfnYLASgKU_Rh_3ruZEVpkjMDD1rBnavmE" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "ae556af8-bf48-4b23-80cc-338466309eb4", "url": "/v2/service_plans/ae556af8-bf48-4b23-80cc-338466309eb4", "created_at": "2015-10-07T00:35:43Z", "updated_at": null }, "entity": { "name": "name-2197", "free": false, "description": "desc-207", "service_guid": "bc545cd7-9bb2-4e19-8da8-2122e02b6ba0", "extra": null, "unique_id": "7fca79b4-925b-46e1-9dca-506d747ab20f", "public": true, "active": true, "service_url": "/v2/services/bc545cd7-9bb2-4e19-8da8-2122e02b6ba0", "service_instances_url": "/v2/service_plans/ae556af8-bf48-4b23-80cc-338466309eb4/service_instances" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: c4ccf07b-1165-472d-a3c6-dfa2612bc749 Content-Length: 842 X-Content-Type-Options: nosniff