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/feb98c9d-bd34-4ac9-8890-0d85acffd167/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":"0902844a-a9ab-4026-91b2-0a442adbdfcc"}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plans/feb98c9d-bd34-4ac9-8890-0d85acffd167/service_instances" -d '{"service_plan_guid":"0902844a-a9ab-4026-91b2-0a442adbdfcc"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NSIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTR9.MFZP_sVuOYTczHRHXIGGABI5lpYJEv9FfY8nUVuHEEE" \
	-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: 72ac9132-c157-4bae-b6d8-e11470a7d21b
Content-Length: 19
X-Content-Type-Options: nosniff