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/f023710d-e18f-43de-adc1-806b9875b51c

Body

Name Description Default Valid Values Example Values
guid The guid of the service plan
public A boolean describing that the plan is visible to the all users true

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOCIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMH0.PxOP8twZvj_qtwbu2UsgLI1dGOigOtSPBKaYJNhYjLw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/f023710d-e18f-43de-adc1-806b9875b51c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOCIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMH0.PxOP8twZvj_qtwbu2UsgLI1dGOigOtSPBKaYJNhYjLw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "f023710d-e18f-43de-adc1-806b9875b51c",
    "url": "/v2/service_plans/f023710d-e18f-43de-adc1-806b9875b51c",
    "created_at": "2016-03-14T22:30:30Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1360",
    "free": false,
    "description": "desc-78",
    "service_guid": "a0691d6a-090f-490b-87c0-fad00ef44b0e",
    "extra": null,
    "unique_id": "2319ebb8-a79e-4b24-b1dc-91da3eff6fe0",
    "public": true,
    "active": true,
    "service_url": "/v2/services/a0691d6a-090f-490b-87c0-fad00ef44b0e",
    "service_instances_url": "/v2/service_plans/f023710d-e18f-43de-adc1-806b9875b51c/service_instances"
  }
}

Headers

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