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": "7209043c-620f-479f-92f4-83c326072a60"
}
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": "7209043c-620f-479f-92f4-83c326072a60"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NSIsImVtYWlsIjoiZW1haWwtOTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY4M30.7tK4BRIgg2LRl4YmG6ID-iXItOO8pp7pm4dPrGRGouI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "6bd96f56-e47a-4a20-9001-de2e129883d6",
"url": "/v2/service_plans/6bd96f56-e47a-4a20-9001-de2e129883d6",
"created_at": "2015-12-22T18:28:03Z",
"updated_at": null
},
"entity": {
"name": "100mb",
"free": true,
"description": "Let's you put data in your database!",
"service_guid": "7209043c-620f-479f-92f4-83c326072a60",
"extra": null,
"unique_id": "2d9e92eb-58d4-4f88-9de6-618682da5511",
"public": true,
"active": true,
"service_url": "/v2/services/7209043c-620f-479f-92f4-83c326072a60",
"service_instances_url": "/v2/service_plans/6bd96f56-e47a-4a20-9001-de2e129883d6/service_instances"
}
}
Headers