Home
Version 3
Service Plans API

Service Plans API

Retrieve a Particular Service Plan

GET /v2/service_plans/:guid

Request

Route

GET /v2/service_plans/c75589b9-fd48-414f-8acf-5384458e5866

Parameters

Name Description Valid Values Example Values
guid The guid of the Service Plan

Body

Name Description Default Valid Values Example Values
guid The guid of the service plan
name The name of the service plan
  • 100mb
free A boolean describing if the service plan is free
  • true
  • false
description A description of the service plan
  • Let's you put data in your database!
extra A JSON string with additional data about the plan
  • {"cost": "$2.00"}
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
  • deadbeef
active A boolean that determines whether plans can be used to create new instances.
  • true
  • false

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNiIsImVtYWlsIjoiZW1haWwtOTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNjE4Nzc0M30.gNefqb_O6cj8GWmwnH8KZxyE5BuO85CcYWIYqWBYw5E
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/c75589b9-fd48-414f-8acf-5384458e5866" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNiIsImVtYWlsIjoiZW1haWwtOTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNjE4Nzc0M30.gNefqb_O6cj8GWmwnH8KZxyE5BuO85CcYWIYqWBYw5E" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "c75589b9-fd48-414f-8acf-5384458e5866",
    "url": "/v2/service_plans/c75589b9-fd48-414f-8acf-5384458e5866",
    "created_at": "2015-03-05T19:15:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-444",
    "free": false,
    "description": "desc-43",
    "service_guid": "184bad0c-3c20-47bd-a9d2-32d4d07aa050",
    "extra": null,
    "unique_id": "b166a049-5cec-4ad9-bb3d-0e65071d611b",
    "public": true,
    "active": true,
    "service_url": "/v2/services/184bad0c-3c20-47bd-a9d2-32d4d07aa050",
    "service_instances_url": "/v2/service_plans/c75589b9-fd48-414f-8acf-5384458e5866/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9441fd38-72a5-4c4a-9e2e-a466959ac680
Content-Length: 653
X-Content-Type-Options: nosniff