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/26184aab-9d3e-470c-bd89-c32a8f065216

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.eyJ1c2VyX2lkIjoidWFhLWlkLTQwOSIsImVtYWlsIjoiZW1haWwtMjc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzJ9.pI2nNMkifq6MMm9QLfSHEkhAU9WyumBaYmlSTl25Qn4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/26184aab-9d3e-470c-bd89-c32a8f065216" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwOSIsImVtYWlsIjoiZW1haWwtMjc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzJ9.pI2nNMkifq6MMm9QLfSHEkhAU9WyumBaYmlSTl25Qn4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "26184aab-9d3e-470c-bd89-c32a8f065216",
    "url": "/v2/service_plans/26184aab-9d3e-470c-bd89-c32a8f065216",
    "created_at": "2015-11-13T17:02:52Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2338",
    "free": false,
    "description": "desc-210",
    "service_guid": "3d0d5541-9c63-4e20-96de-be02b00ae84d",
    "extra": null,
    "unique_id": "dbda3187-4077-4c66-b7d7-93513b352481",
    "public": true,
    "active": true,
    "service_url": "/v2/services/3d0d5541-9c63-4e20-96de-be02b00ae84d",
    "service_instances_url": "/v2/service_plans/26184aab-9d3e-470c-bd89-c32a8f065216/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 655
X-Content-Type-Options: nosniff