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/fd918fb2-abbc-40df-bd9d-f79d837a71a1

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MCIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTl9.UxAscEMxKFt7dc8X_pLz6fgUPlM3lDz89gcofenvUyw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/fd918fb2-abbc-40df-bd9d-f79d837a71a1" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MCIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTl9.UxAscEMxKFt7dc8X_pLz6fgUPlM3lDz89gcofenvUyw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "fd918fb2-abbc-40df-bd9d-f79d837a71a1",
    "url": "/v2/service_plans/fd918fb2-abbc-40df-bd9d-f79d837a71a1",
    "created_at": "2015-07-06T23:23:19Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2214",
    "free": false,
    "description": "desc-208",
    "service_guid": "78d46747-fb2e-4c4c-839c-75c3ae36649a",
    "extra": null,
    "unique_id": "4e2ed4fe-d4ea-4f7f-ab8c-8df8e7c03218",
    "public": true,
    "active": true,
    "service_url": "/v2/services/78d46747-fb2e-4c4c-839c-75c3ae36649a",
    "service_instances_url": "/v2/service_plans/fd918fb2-abbc-40df-bd9d-f79d837a71a1/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b927e24a-3f2c-4656-b78a-2aeecb971959
Content-Length: 655
X-Content-Type-Options: nosniff