Home
Version 3
Service Plans API

Service Plans API

Retrieve a Particular Service Plan

GET /v2/service_plans/:guid

Fields

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

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc2IiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTMyfQ.PS8cPYy2PepOKXRtJEujrhtqA18LvhahYp-XN0Ib50U
Host: example.org
Cookie: 

Route

GET /v2/service_plans/dda35c6b-84b1-48e2-828f-5039b777f61f

cURL

curl "https://api.[your-domain.com]/v2/service_plans/dda35c6b-84b1-48e2-828f-5039b777f61f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc2IiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTMyfQ.PS8cPYy2PepOKXRtJEujrhtqA18LvhahYp-XN0Ib50U" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6ae4af27-41f6-414d-8444-820668cdac46
Content-Length: 658
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "dda35c6b-84b1-48e2-828f-5039b777f61f",
    "url": "/v2/service_plans/dda35c6b-84b1-48e2-828f-5039b777f61f",
    "created_at": "2015-01-20T01:52:12+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-269",
    "free": false,
    "description": "desc-18",
    "service_guid": "fdd55ba4-6baa-434a-851d-3e61b54a69b1",
    "extra": null,
    "unique_id": "318704db-fa9a-401e-8b31-95f7562251bf",
    "public": true,
    "active": true,
    "service_url": "/v2/services/fdd55ba4-6baa-434a-851d-3e61b54a69b1",
    "service_instances_url": "/v2/service_plans/dda35c6b-84b1-48e2-828f-5039b777f61f/service_instances"
  }
}