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/cc122d29-b6df-45d8-9ada-6227e4b373e4/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":"5643a05b-8810-4ea0-8809-d5d27d3eb914"}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plans/cc122d29-b6df-45d8-9ada-6227e4b373e4/service_instances" -d '{"service_plan_guid":"5643a05b-8810-4ea0-8809-d5d27d3eb914"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4OSIsImVtYWlsIjoiZW1haWwtMjkwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MjJ9.LSFSHLpb85fc_nneU9XcP1T9zYTr8KqUhLUKw9keKa8" \
	-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: 968fe116-f19b-4a56-8250-7f55127b3b25
Content-Length: 19
X-Content-Type-Options: nosniff