Home
Version 3
User Provided Service Instances API

User Provided Service Instances API

Associate Route with the User Provided Service Instance (experimental)

PUT /v2/user_provided_service_instances/:guid/routes/:route_guid

Request

Route

PUT /v2/user_provided_service_instances/f78ac51c-e064-4e0c-baab-1d989128593c/routes/4783c7a5-ac37-41ad-acd1-43242848d53f

Body

Name Description Default Valid Values Example Values
route_guid The guid of the route

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MyIsImVtYWlsIjoiZW1haWwtMjg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mzd9.R4GJvTJThXSfpXD6kjgT7YZo_Iaze6OEWnvA-7sxCj0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/f78ac51c-e064-4e0c-baab-1d989128593c/routes/4783c7a5-ac37-41ad-acd1-43242848d53f" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MyIsImVtYWlsIjoiZW1haWwtMjg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mzd9.R4GJvTJThXSfpXD6kjgT7YZo_Iaze6OEWnvA-7sxCj0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f78ac51c-e064-4e0c-baab-1d989128593c",
    "url": "/v2/user_provided_service_instances/f78ac51c-e064-4e0c-baab-1d989128593c",
    "created_at": "2015-11-30T23:38:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2428",
    "credentials": {
      "creds-key-631": "creds-val-631"
    },
    "space_guid": "4ee2abed-6ee8-4b82-ab33-4c337f83a7a4",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-92",
    "route_service_url": "https://foo.com/url-91",
    "space_url": "/v2/spaces/4ee2abed-6ee8-4b82-ab33-4c337f83a7a4",
    "service_bindings_url": "/v2/user_provided_service_instances/f78ac51c-e064-4e0c-baab-1d989128593c/service_bindings",
    "routes_url": "/v2/user_provided_service_instances/f78ac51c-e064-4e0c-baab-1d989128593c/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 832
X-Content-Type-Options: nosniff