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/29eaa0f9-4726-4a29-bd6c-68023005359d/routes/9874240c-8eea-48de-83e9-2824f4aae245

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY4M30.xipcpWRGdHp6G-EP1FPSRUItC4vsKlcJT-aQ3xfmwX8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/29eaa0f9-4726-4a29-bd6c-68023005359d/routes/9874240c-8eea-48de-83e9-2824f4aae245" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY4M30.xipcpWRGdHp6G-EP1FPSRUItC4vsKlcJT-aQ3xfmwX8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "29eaa0f9-4726-4a29-bd6c-68023005359d",
    "url": "/v2/user_provided_service_instances/29eaa0f9-4726-4a29-bd6c-68023005359d",
    "created_at": "2015-12-22T18:28:03Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-524",
    "credentials": {
      "creds-key-217": "creds-val-217"
    },
    "space_guid": "7fa41f52-e7a8-4712-a055-4c5ee2b4a3e7",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-29",
    "route_service_url": "https://foo.com/url-28",
    "space_url": "/v2/spaces/7fa41f52-e7a8-4712-a055-4c5ee2b4a3e7",
    "service_bindings_url": "/v2/user_provided_service_instances/29eaa0f9-4726-4a29-bd6c-68023005359d/service_bindings",
    "routes_url": "/v2/user_provided_service_instances/29eaa0f9-4726-4a29-bd6c-68023005359d/routes"
  }
}

Headers

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