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/d4645220-6d41-43e5-b596-c7a163edbd02

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.eyJ1c2VyX2lkIjoidWFhLWlkLTk4IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTc0fQ.ilXFtLBF2-jDHgk4R9mAlaNDkABOCEbY9M2EAH3aKL0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/d4645220-6d41-43e5-b596-c7a163edbd02" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk4IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTc0fQ.ilXFtLBF2-jDHgk4R9mAlaNDkABOCEbY9M2EAH3aKL0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "d4645220-6d41-43e5-b596-c7a163edbd02",
    "url": "/v2/service_plans/d4645220-6d41-43e5-b596-c7a163edbd02",
    "created_at": "2016-01-13T17:29:34Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-266",
    "free": false,
    "description": "desc-19",
    "service_guid": "6f8b43f7-0499-4845-9ff3-4b56ecd580a2",
    "extra": null,
    "unique_id": "fa309767-e5c1-4221-9436-2d30cba6059c",
    "public": true,
    "active": true,
    "service_url": "/v2/services/6f8b43f7-0499-4845-9ff3-4b56ecd580a2",
    "service_instances_url": "/v2/service_plans/d4645220-6d41-43e5-b596-c7a163edbd02/service_instances"
  }
}

Headers

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