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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NyIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5ODB9.3nLRpGW73YlmCd5SU77PH8KZUZKwTcAA0rc5Q_Qa51M
Host: example.org
Cookie: 

Route

GET /v2/service_plans/eaa04034-ce57-4518-a2b2-bb67dde8760e

cURL

curl "https://api.[your-domain.com]/v2/service_plans/eaa04034-ce57-4518-a2b2-bb67dde8760e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NyIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5ODB9.3nLRpGW73YlmCd5SU77PH8KZUZKwTcAA0rc5Q_Qa51M" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: dddf0143-339d-4a6d-80c8-de78b37e1940
Content-Length: 660
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "eaa04034-ce57-4518-a2b2-bb67dde8760e",
    "url": "/v2/service_plans/eaa04034-ce57-4518-a2b2-bb67dde8760e",
    "created_at": "2014-12-24T01:39:40+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1934",
    "free": false,
    "description": "desc-187",
    "service_guid": "2a4494f0-e6d1-42e0-b483-0c6f0a0b02e0",
    "extra": null,
    "unique_id": "cb38abc9-ba87-413c-868f-6973365a442c",
    "public": true,
    "active": true,
    "service_url": "/v2/services/2a4494f0-e6d1-42e0-b483-0c6f0a0b02e0",
    "service_instances_url": "/v2/service_plans/eaa04034-ce57-4518-a2b2-bb67dde8760e/service_instances"
  }
}