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/eaf3bfd9-4370-4922-9a87-20a5bff05446

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMiIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1NDQ1MTYxNH0.hiSDkQZPwxPvI2fj2fpaQA7aiO7mgKVsCnQkgVaDIn0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/eaf3bfd9-4370-4922-9a87-20a5bff05446" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMiIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1NDQ1MTYxNH0.hiSDkQZPwxPvI2fj2fpaQA7aiO7mgKVsCnQkgVaDIn0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "eaf3bfd9-4370-4922-9a87-20a5bff05446",
    "url": "/v2/service_plans/eaf3bfd9-4370-4922-9a87-20a5bff05446",
    "created_at": "2016-01-26T22:20:14Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-540",
    "free": false,
    "description": "desc-94",
    "service_guid": "555623a8-8df6-4929-8b0e-c5b23c24e84d",
    "extra": null,
    "unique_id": "d7d70718-f0f9-4bcb-9f94-0d8d9a20048b",
    "public": true,
    "active": true,
    "service_url": "/v2/services/555623a8-8df6-4929-8b0e-c5b23c24e84d",
    "service_instances_url": "/v2/service_plans/eaf3bfd9-4370-4922-9a87-20a5bff05446/service_instances"
  }
}

Headers

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