Home
Version 3
Service Instances API

Service Instances API

Binding a service instance to a route (experimental)

PUT /v2/service_instances/:service_instance_guid/routes/:route_guid

Request

Route

PUT /v2/service_instances/b512b03f-0445-4ffc-a8cf-1c16a29b33a0/routes/28928926-23db-4a90-a44c-5e6ff5b831cc

Body

Name Description Default Valid Values Example Values
guid The guid of the Service Instance.
{}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNSIsImVtYWlsIjoiZW1haWwtMjgzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NjB9.FvSIiq_Q3td_orXZpe3EYGBU-UdjUq9sovfi7gYR7aU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_instances/b512b03f-0445-4ffc-a8cf-1c16a29b33a0/routes/28928926-23db-4a90-a44c-5e6ff5b831cc" -d '{}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNSIsImVtYWlsIjoiZW1haWwtMjgzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NjB9.FvSIiq_Q3td_orXZpe3EYGBU-UdjUq9sovfi7gYR7aU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b512b03f-0445-4ffc-a8cf-1c16a29b33a0",
    "url": "/v2/service_instances/b512b03f-0445-4ffc-a8cf-1c16a29b33a0",
    "created_at": "2015-09-30T23:31:00Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2271",
    "credentials": {
      "creds-key-614": "creds-val-614"
    },
    "service_plan_guid": "8b29fbf4-82b2-4a75-8b52-62b4a6da01a4",
    "space_guid": "cd3c255c-c951-4359-ac82-280717734d15",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "last_operation": null,
    "tags": [

    ],
    "space_url": "/v2/spaces/cd3c255c-c951-4359-ac82-280717734d15",
    "service_plan_url": "/v2/service_plans/8b29fbf4-82b2-4a75-8b52-62b4a6da01a4",
    "service_bindings_url": "/v2/service_instances/b512b03f-0445-4ffc-a8cf-1c16a29b33a0/service_bindings",
    "service_keys_url": "/v2/service_instances/b512b03f-0445-4ffc-a8cf-1c16a29b33a0/service_keys",
    "routes_url": "/v2/service_instances/b512b03f-0445-4ffc-a8cf-1c16a29b33a0/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: eb7aef6d-4f51-4d01-bdd2-91717521aa4f
Content-Length: 1032
X-Content-Type-Options: nosniff