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/7bae7a15-7e6a-4bdd-b21f-ead6e4ce33ac/routes/fac80bdf-5fbe-42f7-9195-8868135fbc87

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NiIsImVtYWlsIjoiZW1haWwtMTIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MTZ9.ha5Aqi75TBCq0-bhKdW3U4I4e-3O-qnMxcvlufyqHvo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/7bae7a15-7e6a-4bdd-b21f-ead6e4ce33ac/routes/fac80bdf-5fbe-42f7-9195-8868135fbc87" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NiIsImVtYWlsIjoiZW1haWwtMTIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MTZ9.ha5Aqi75TBCq0-bhKdW3U4I4e-3O-qnMxcvlufyqHvo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7bae7a15-7e6a-4bdd-b21f-ead6e4ce33ac",
    "url": "/v2/user_provided_service_instances/7bae7a15-7e6a-4bdd-b21f-ead6e4ce33ac",
    "created_at": "2016-01-26T22:20:16Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-664",
    "credentials": {
      "creds-key-25": "creds-val-25"
    },
    "space_guid": "3bf57d69-fde4-408f-adb9-384658cb4327",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-38",
    "route_service_url": "https://foo.com/url-37",
    "space_url": "/v2/spaces/3bf57d69-fde4-408f-adb9-384658cb4327",
    "service_bindings_url": "/v2/user_provided_service_instances/7bae7a15-7e6a-4bdd-b21f-ead6e4ce33ac/service_bindings",
    "routes_url": "/v2/user_provided_service_instances/7bae7a15-7e6a-4bdd-b21f-ead6e4ce33ac/routes"
  }
}

Headers

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