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

Fields

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMiIsImVtYWlsIjoiZW1haWwtNzNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg3MH0.8O33AMHAc4EhKh2dJuCgktXyqq-F5EH_HS8LRwygZ4A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/service_plans/7d8f30de-8f68-4eb7-b76a-9a045f560a15/service_instances

Body

{"service_plan_guid":"d029f7d4-ec23-4bd9-a86f-fd055f8c9e46"}

cURL

curl "https://api.[your-domain.com]/v2/service_plans/7d8f30de-8f68-4eb7-b76a-9a045f560a15/service_instances" -d '{"service_plan_guid":"d029f7d4-ec23-4bd9-a86f-fd055f8c9e46"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMiIsImVtYWlsIjoiZW1haWwtNzNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg3MH0.8O33AMHAc4EhKh2dJuCgktXyqq-F5EH_HS8LRwygZ4A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 54d812bf-7774-4233-ba23-5b663ab29695
Content-Length: 19
X-Content-Type-Options: nosniff

Status

200 OK

Body

{"changed_count":1}