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.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIyfQ.zsX24f1DYhGlOB7s1erfukU_jpEUIShK4n_TmwQ4R3w
Host: example.org
Cookie: 

Route

GET /v2/service_plans/5ba994c8-942e-4c54-83a1-a02628bae7bb

cURL

curl "https://api.[your-domain.com]/v2/service_plans/5ba994c8-942e-4c54-83a1-a02628bae7bb" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIyfQ.zsX24f1DYhGlOB7s1erfukU_jpEUIShK4n_TmwQ4R3w" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c93914fd-eea5-4fce-bfe1-c1e95ab8ed77
Content-Length: 653
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "5ba994c8-942e-4c54-83a1-a02628bae7bb",
    "url": "/v2/service_plans/5ba994c8-942e-4c54-83a1-a02628bae7bb",
    "created_at": "2015-02-12T01:42:02Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-307",
    "free": false,
    "description": "desc-21",
    "service_guid": "229d4840-fbfe-45a5-91be-141159e71fab",
    "extra": null,
    "unique_id": "a53992ac-d9e2-45d1-8fdb-bf3f734e949d",
    "public": true,
    "active": true,
    "service_url": "/v2/services/229d4840-fbfe-45a5-91be-141159e71fab",
    "service_instances_url": "/v2/service_plans/5ba994c8-942e-4c54-83a1-a02628bae7bb/service_instances"
  }
}