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/a4a7d3f1-e447-4eea-a209-3afc96448a8e/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":"400ea328-d813-4389-8500-a07e250957d6"}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMCIsImVtYWlsIjoiZW1haWwtODFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3OX0.2cpCr0OZMJMFzJyGua20ZesYkZTrR2ZjE_3zQPJpEF4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/a4a7d3f1-e447-4eea-a209-3afc96448a8e/service_instances" -d '{"service_plan_guid":"400ea328-d813-4389-8500-a07e250957d6"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMCIsImVtYWlsIjoiZW1haWwtODFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3OX0.2cpCr0OZMJMFzJyGua20ZesYkZTrR2ZjE_3zQPJpEF4" \
	-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: 563623c7-88fe-499c-8d88-5adac34a349d
Content-Length: 19
X-Content-Type-Options: nosniff