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/5f8522ad-4b54-4bfb-9d66-05d33b4ff447/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":"c45d0dd8-6151-4117-9717-1a48c0ac521f"}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMiIsImVtYWlsIjoiZW1haWwtMTcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTV9.m_q6g27kV9jSvpNHm9bMrIp5Yuv24UScO8ucJE-JWXQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/5f8522ad-4b54-4bfb-9d66-05d33b4ff447/service_instances" -d '{"service_plan_guid":"c45d0dd8-6151-4117-9717-1a48c0ac521f"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMiIsImVtYWlsIjoiZW1haWwtMTcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTV9.m_q6g27kV9jSvpNHm9bMrIp5Yuv24UScO8ucJE-JWXQ" \
	-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: 742d4c94-6e15-4c3c-bdae-2123820c1394
Content-Length: 19
X-Content-Type-Options: nosniff