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": "690c6119-1c69-438a-ac8e-f1d6ae15eda4"
}
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": "690c6119-1c69-438a-ac8e-f1d6ae15eda4"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3IiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzYyfQ.1dKCD8ps8iTy05cP94yc8QpJ_XoR8Eqz2kTatkl1-Gw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "5f32fb09-2d14-4c67-bcc4-77896b23c54a",
"url": "/v2/service_plans/5f32fb09-2d14-4c67-bcc4-77896b23c54a",
"created_at": "2015-02-10T01:42:42Z",
"updated_at": null
},
"entity": {
"name": "100mb",
"free": true,
"description": "Let's you put data in your database!",
"service_guid": "690c6119-1c69-438a-ac8e-f1d6ae15eda4",
"extra": null,
"unique_id": "8b1ba4f7-3cc8-4d9b-bada-58b5627ac87a",
"public": true,
"active": true,
"service_url": "/v2/services/690c6119-1c69-438a-ac8e-f1d6ae15eda4",
"service_instances_url": "/v2/service_plans/5f32fb09-2d14-4c67-bcc4-77896b23c54a/service_instances"
}
}