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/8f9ebf08-d301-4f27-bf32-2ea792e34e66

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2Mzl9.Y-GGpelzwqfS_ykplZBOlf6uPr_5m-_saR7mqJHSG3c
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/8f9ebf08-d301-4f27-bf32-2ea792e34e66" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2Mzl9.Y-GGpelzwqfS_ykplZBOlf6uPr_5m-_saR7mqJHSG3c" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "8f9ebf08-d301-4f27-bf32-2ea792e34e66",
    "url": "/v2/service_plans/8f9ebf08-d301-4f27-bf32-2ea792e34e66",
    "created_at": "2016-04-16T01:23:59Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1030",
    "free": false,
    "description": "desc-159",
    "service_guid": "33915666-1db0-4526-80ff-ddf967690ae5",
    "extra": null,
    "unique_id": "33bf8abc-1312-4974-9785-24637ca7bedc",
    "public": true,
    "active": true,
    "service_url": "/v2/services/33915666-1db0-4526-80ff-ddf967690ae5",
    "service_instances_url": "/v2/service_plans/8f9ebf08-d301-4f27-bf32-2ea792e34e66/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cc0d3f94-048b-463d-b8ce-e2c24bd0ed5b
Content-Length: 655
X-Content-Type-Options: nosniff