Home
Version 3
User Provided Service Instances API

User Provided Service Instances API

Associate Route with the User Provided Service Instance

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

Request

Route

PUT /v2/user_provided_service_instances/6ae4fb79-2f33-48bc-9123-6c5f370de497/routes/d805fd89-16b0-4eaa-924a-0114cc8f9b55

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/6ae4fb79-2f33-48bc-9123-6c5f370de497/routes/d805fd89-16b0-4eaa-924a-0114cc8f9b55" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkiLCJlbWFpbCI6ImVtYWlsLTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQyMH0.j4pHuBqOTYY4gwYxn5rY0tSvNxEgtyIb56w0rnHVif4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6ae4fb79-2f33-48bc-9123-6c5f370de497",
    "url": "/v2/user_provided_service_instances/6ae4fb79-2f33-48bc-9123-6c5f370de497",
    "created_at": "2016-03-14T22:30:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-9",
    "credentials": {
      "creds-key-3": "creds-val-3"
    },
    "space_guid": "99312fe7-fc8d-4470-9ccb-d0100d33074f",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-8",
    "route_service_url": "https://foo.com/url-7",
    "space_url": "/v2/spaces/99312fe7-fc8d-4470-9ccb-d0100d33074f",
    "service_bindings_url": "/v2/user_provided_service_instances/6ae4fb79-2f33-48bc-9123-6c5f370de497/service_bindings",
    "routes_url": "/v2/user_provided_service_instances/6ae4fb79-2f33-48bc-9123-6c5f370de497/routes"
  }
}

Headers

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