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.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0yNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUxfQ.n2PWDwJ-XzLQwPmeYLY2m5T-3NaDQGW5AluwAv5MzlU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/service_plans/9e5024a8-478c-4a16-b377-02a633805316/service_instances

Body

{"service_plan_guid":"95b35bf2-2c65-4fcc-9f4e-81b4d3e1bb5c"}

cURL

curl "https://api.[your-domain.com]/v2/service_plans/9e5024a8-478c-4a16-b377-02a633805316/service_instances" -d '{"service_plan_guid":"95b35bf2-2c65-4fcc-9f4e-81b4d3e1bb5c"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0yNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUxfQ.n2PWDwJ-XzLQwPmeYLY2m5T-3NaDQGW5AluwAv5MzlU" \
	-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: 2699473b-de16-422e-b975-65057cf43533
Content-Length: 19
X-Content-Type-Options: nosniff

Status

200 OK

Body

{"changed_count":1}