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/e96fdc1f-7ab0-4a30-bfb1-3bf8b8e31469

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTF9.zm95JPSmt9BxSrkqdhRTxKCPpdxucVfBGIyEv498acQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/e96fdc1f-7ab0-4a30-bfb1-3bf8b8e31469" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTF9.zm95JPSmt9BxSrkqdhRTxKCPpdxucVfBGIyEv498acQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e96fdc1f-7ab0-4a30-bfb1-3bf8b8e31469",
    "url": "/v2/service_plans/e96fdc1f-7ab0-4a30-bfb1-3bf8b8e31469",
    "created_at": "2015-04-15T00:55:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2040",
    "free": false,
    "description": "desc-172",
    "service_guid": "09c474be-499e-45ff-a80b-af1a92831f01",
    "extra": null,
    "unique_id": "0e3f6788-b5d5-482c-a5ab-1a59d8653cc3",
    "public": true,
    "active": true,
    "service_url": "/v2/services/09c474be-499e-45ff-a80b-af1a92831f01",
    "service_instances_url": "/v2/service_plans/e96fdc1f-7ab0-4a30-bfb1-3bf8b8e31469/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ae4976d0-02c5-48b6-93b8-a60e514f0368
Content-Length: 655
X-Content-Type-Options: nosniff