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/d0a738cf-0a19-4f9c-ae78-4a67ad2bcda3

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NCIsImVtYWlsIjoiZW1haWwtMjIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTV9.hRYp1SUu6_fhh4_jWvUIeWWzDOZ0hP1E6KymYzQZfsc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/d0a738cf-0a19-4f9c-ae78-4a67ad2bcda3" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NCIsImVtYWlsIjoiZW1haWwtMjIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTV9.hRYp1SUu6_fhh4_jWvUIeWWzDOZ0hP1E6KymYzQZfsc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "d0a738cf-0a19-4f9c-ae78-4a67ad2bcda3",
    "url": "/v2/service_plans/d0a738cf-0a19-4f9c-ae78-4a67ad2bcda3",
    "created_at": "2015-05-21T01:03:15Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1950",
    "free": false,
    "description": "desc-196",
    "service_guid": "138662d7-2c0f-43f3-a404-88d6ada04c4e",
    "extra": null,
    "unique_id": "85b485c6-494d-4c21-b77e-8c5d6adf23fb",
    "public": true,
    "active": true,
    "service_url": "/v2/services/138662d7-2c0f-43f3-a404-88d6ada04c4e",
    "service_instances_url": "/v2/service_plans/d0a738cf-0a19-4f9c-ae78-4a67ad2bcda3/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a2b65e52-f03d-409b-a760-be1bf618f83a
Content-Length: 655
X-Content-Type-Options: nosniff