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/775d0046-7505-40a4-bfad-ca472485e332

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MCIsImVtYWlsIjoiZW1haWwtMTE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTB9.LU_EyvYwa11qkiee2NjOjsJ8hnlmVPyWNw8k8yJoOOs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/775d0046-7505-40a4-bfad-ca472485e332" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MCIsImVtYWlsIjoiZW1haWwtMTE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTB9.LU_EyvYwa11qkiee2NjOjsJ8hnlmVPyWNw8k8yJoOOs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "775d0046-7505-40a4-bfad-ca472485e332",
    "url": "/v2/service_plans/775d0046-7505-40a4-bfad-ca472485e332",
    "created_at": "2016-06-08T16:41:30Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-1573",
    "free": false,
    "description": "desc-107",
    "service_guid": "a00cacc0-0ca6-422e-91d3-6b22bcd33450",
    "extra": null,
    "unique_id": "35c56e06-f0c6-4abe-b158-b7c24c889905",
    "public": true,
    "active": true,
    "service_url": "/v2/services/a00cacc0-0ca6-422e-91d3-6b22bcd33450",
    "service_instances_url": "/v2/service_plans/775d0046-7505-40a4-bfad-ca472485e332/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b7365f93-69ac-459e-9fae-73ce56701efe
Content-Length: 655
X-Content-Type-Options: nosniff