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/b8db8d02-5787-417a-91c3-1477ac2d40b4

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMCIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODF9.D3jYbajkHKM9g7ne9PGpatWGjvEslAmiGUSkS0S9tu0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/b8db8d02-5787-417a-91c3-1477ac2d40b4" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMCIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODF9.D3jYbajkHKM9g7ne9PGpatWGjvEslAmiGUSkS0S9tu0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "b8db8d02-5787-417a-91c3-1477ac2d40b4",
    "url": "/v2/service_plans/b8db8d02-5787-417a-91c3-1477ac2d40b4",
    "created_at": "2016-03-17T21:41:21Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1145",
    "free": false,
    "description": "desc-162",
    "service_guid": "e77a1d76-7785-4f57-8118-e794e39d3092",
    "extra": null,
    "unique_id": "3f5b329e-b905-4a7f-9f21-f82d0d2be4ae",
    "public": true,
    "active": true,
    "service_url": "/v2/services/e77a1d76-7785-4f57-8118-e794e39d3092",
    "service_instances_url": "/v2/service_plans/b8db8d02-5787-417a-91c3-1477ac2d40b4/service_instances"
  }
}

Headers

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