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/58aaa881-a5cc-4196-88bd-4fde731f0b40

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTl9.9fbHm2W-JmUz2xSo2lKY1QNQtljAVet4ks7AM85scP4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/58aaa881-a5cc-4196-88bd-4fde731f0b40" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTl9.9fbHm2W-JmUz2xSo2lKY1QNQtljAVet4ks7AM85scP4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "58aaa881-a5cc-4196-88bd-4fde731f0b40",
    "url": "/v2/service_plans/58aaa881-a5cc-4196-88bd-4fde731f0b40",
    "created_at": "2015-08-06T00:36:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-611",
    "free": false,
    "description": "desc-70",
    "service_guid": "f349fcdd-67b2-43eb-80ea-a086be0855e9",
    "extra": null,
    "unique_id": "e79bde9c-866c-4071-959b-1d26c52514e9",
    "public": true,
    "active": true,
    "service_url": "/v2/services/f349fcdd-67b2-43eb-80ea-a086be0855e9",
    "service_instances_url": "/v2/service_plans/58aaa881-a5cc-4196-88bd-4fde731f0b40/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 58fb90c4-c261-4eda-8aab-5b3222805e74
Content-Length: 653
X-Content-Type-Options: nosniff