Creating a Service Plan (deprecated)
POST /v2/service_plans
Fields
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.
|
|
|
|
Request
Headers
Route
POST /v2/service_plans
Body
{
"name": "100mb",
"free": true,
"description": "Let's you put data in your database!",
"service_guid": "136abeba-741d-404e-8b77-9131eeb0bfbe"
}
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": "136abeba-741d-404e-8b77-9131eeb0bfbe"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMCIsImVtYWlsIjoiZW1haWwtMTU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDZ9.Ln7dU2NeYTaeiNouflNl0gz2YHtdMb-HHGYsK0Hr548" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "8b81a24b-8513-4995-b98f-f4d3de8e026b",
"url": "/v2/service_plans/8b81a24b-8513-4995-b98f-f4d3de8e026b",
"created_at": "2014-11-13T23:38:26+00:00",
"updated_at": null
},
"entity": {
"name": "100mb",
"free": true,
"description": "Let's you put data in your database!",
"service_guid": "136abeba-741d-404e-8b77-9131eeb0bfbe",
"extra": null,
"unique_id": "f3e1826d-eb48-4639-985a-01366b94b165",
"public": true,
"active": true,
"service_url": "/v2/services/136abeba-741d-404e-8b77-9131eeb0bfbe",
"service_instances_url": "/v2/service_plans/8b81a24b-8513-4995-b98f-f4d3de8e026b/service_instances"
}
}