Home
Version 3
Service Instances API

Service Instances API

Migrate Service Instances from one Service Plan to another Service Plan (experimental)

PUT /v2/service_plans/:service_plan_guid/service_instances

Move all Service Instances for the service plan from the URL to the service plan in the request body

Request

Route

PUT /v2/service_plans/3160f5e2-85ad-4ea6-803c-ea6adbe5ef33/service_instances

Body

Name Description Default Valid Values Example Values
service_plan_guid The guid of the plan to move the existing instances to
  • 6c4bd80f-4593-41d1-a2c9-b20cb65ec76e
{"service_plan_guid":"dbb44ec9-132e-4303-8082-f12eb6c786a9"}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMyIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NjB9._vmOapDdQ6WLXYFkpN_mZoD_owbwYvxNb8iknlrXc0g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/3160f5e2-85ad-4ea6-803c-ea6adbe5ef33/service_instances" -d '{"service_plan_guid":"dbb44ec9-132e-4303-8082-f12eb6c786a9"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMyIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NjB9._vmOapDdQ6WLXYFkpN_mZoD_owbwYvxNb8iknlrXc0g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "changed_count": 1
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e1148d84-7bb4-4bec-aee2-9a40645e28ed
Content-Length: 19
X-Content-Type-Options: nosniff