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/f725a430-74d8-43fc-9ccc-2f39dd429c80

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzIiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4Njk3fQ.o3n4ouuIGhlLFRdf8Chue_86U3ETd84IH4fJdQrYPKw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/f725a430-74d8-43fc-9ccc-2f39dd429c80" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzIiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4Njk3fQ.o3n4ouuIGhlLFRdf8Chue_86U3ETd84IH4fJdQrYPKw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "f725a430-74d8-43fc-9ccc-2f39dd429c80",
    "url": "/v2/service_plans/f725a430-74d8-43fc-9ccc-2f39dd429c80",
    "created_at": "2015-04-07T19:11:37Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-72",
    "free": false,
    "description": "desc-24",
    "service_guid": "db716fdb-f18c-43ed-8110-852441069a85",
    "extra": null,
    "unique_id": "4e2ef3fb-4753-4a36-9c0b-f30a9a944b0d",
    "public": true,
    "active": true,
    "service_url": "/v2/services/db716fdb-f18c-43ed-8110-852441069a85",
    "service_instances_url": "/v2/service_plans/f725a430-74d8-43fc-9ccc-2f39dd429c80/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6adb41d6-3fba-4b13-88ae-7cc21b11fa51
Content-Length: 652
X-Content-Type-Options: nosniff