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/96b31d27-5521-4585-8221-e124a168e4b0

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMTgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTl9.qk0CLUxlcYHTKznCsa1Q-toLiuYReQT7TqTiKUt4ZRk
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/96b31d27-5521-4585-8221-e124a168e4b0" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMTgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTl9.qk0CLUxlcYHTKznCsa1Q-toLiuYReQT7TqTiKUt4ZRk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "96b31d27-5521-4585-8221-e124a168e4b0",
    "url": "/v2/service_plans/96b31d27-5521-4585-8221-e124a168e4b0",
    "created_at": "2016-05-12T00:45:19Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1659",
    "free": false,
    "description": "desc-95",
    "service_guid": "4ebba2a3-e7c4-4c6e-810c-79b2b773031f",
    "extra": null,
    "unique_id": "e6e1c3f6-88fe-4e1c-9d9d-e46d86f1004f",
    "public": true,
    "active": true,
    "service_url": "/v2/services/4ebba2a3-e7c4-4c6e-810c-79b2b773031f",
    "service_instances_url": "/v2/service_plans/96b31d27-5521-4585-8221-e124a168e4b0/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2b9bdff5-49ac-44b0-91ed-91a3387c4c64
Content-Length: 654
X-Content-Type-Options: nosniff