Creating a Service Plan (deprecated)
POST /v2/service_plans
Request
Route
POST /v2/service_plans
Body
Name |
Description |
Default |
Valid Values |
Example Values |
guid
|
The guid of the service plan
|
|
|
|
name
|
The name of the service plan
|
|
|
|
free
|
A boolean describing if the service plan is free
|
|
|
|
description
|
A description of the service plan
|
|
|
- Let's you put data in your database!
|
extra
|
A JSON string with additional data about the plan
|
|
|
|
unique_id
|
A guid for the service plan in the service broker (not the same as the cloud controller guid)
|
|
|
|
public
|
A boolean describing that the plan is visible to the all users
|
true
|
|
|
service_guid
|
The guid of the related service
|
|
|
|
active
|
A boolean that determines whether plans can be used to create new instances.
|
|
|
|
{
"name": "100mb",
"free": true,
"description": "Let's you put data in your database!",
"service_guid": "b9399772-4d78-45a9-938d-cebd23d4602b"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plans" -d '{
"name": "100mb",
"free": true,
"description": "Let\u0027s you put data in your database!",
"service_guid": "b9399772-4d78-45a9-938d-cebd23d4602b"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUyIiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA2fQ.hnTGI-WfBjKw4xrzEEmu73yLuPArJTB3JHRbhXCh6oY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "5265c43b-3ed0-4d5f-9c24-6c909c313743",
"url": "/v2/service_plans/5265c43b-3ed0-4d5f-9c24-6c909c313743",
"created_at": "2015-05-15T16:53:26Z",
"updated_at": null
},
"entity": {
"name": "100mb",
"free": true,
"description": "Let's you put data in your database!",
"service_guid": "b9399772-4d78-45a9-938d-cebd23d4602b",
"extra": null,
"unique_id": "9d8aba8f-f735-49fa-ae3c-6b6a276b87b0",
"public": true,
"active": true,
"service_url": "/v2/services/b9399772-4d78-45a9-938d-cebd23d4602b",
"service_instances_url": "/v2/service_plans/5265c43b-3ed0-4d5f-9c24-6c909c313743/service_instances"
}
}
Headers