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": "1034304f-20c2-4bba-aad1-cf004b679f16"
}
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": "1034304f-20c2-4bba-aad1-cf004b679f16"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NCIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzd9.DP23jU-44-UBxtw41DBj5UkuHEeX2DUtKrVQyARM4Bw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "29847236-61a0-45e5-a73c-01cf63a3cb1b",
"url": "/v2/service_plans/29847236-61a0-45e5-a73c-01cf63a3cb1b",
"created_at": "2014-11-05T01:02:17+00:00",
"updated_at": null
},
"entity": {
"name": "100mb",
"free": true,
"description": "Let's you put data in your database!",
"service_guid": "1034304f-20c2-4bba-aad1-cf004b679f16",
"extra": null,
"unique_id": "e82e4fad-7a84-43e5-acbf-c2626b2da1ca",
"public": true,
"active": true,
"service_url": "/v2/services/1034304f-20c2-4bba-aad1-cf004b679f16",
"service_instances_url": "/v2/service_plans/29847236-61a0-45e5-a73c-01cf63a3cb1b/service_instances"
}
}