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/9b9111e0-71bd-45a1-a71e-2d0adfff3059

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNCIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NzR9.2gfGwsz8Fnp7hDHq1CGY0lEoFz2ZdJkmUD-h2g-C6AU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/9b9111e0-71bd-45a1-a71e-2d0adfff3059" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNCIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NzR9.2gfGwsz8Fnp7hDHq1CGY0lEoFz2ZdJkmUD-h2g-C6AU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "9b9111e0-71bd-45a1-a71e-2d0adfff3059",
    "url": "/v2/service_plans/9b9111e0-71bd-45a1-a71e-2d0adfff3059",
    "created_at": "2015-03-18T22:52:54Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1209",
    "free": false,
    "description": "desc-152",
    "service_guid": "2b546f8d-ac09-4a50-9e85-392efd33d531",
    "extra": null,
    "unique_id": "f0422375-fe09-45a9-bc35-229717b18a6d",
    "public": true,
    "active": true,
    "service_url": "/v2/services/2b546f8d-ac09-4a50-9e85-392efd33d531",
    "service_instances_url": "/v2/service_plans/9b9111e0-71bd-45a1-a71e-2d0adfff3059/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 206987a3-4704-4454-8fca-4834a9b8da00
Content-Length: 655
X-Content-Type-Options: nosniff