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/103b0ede-6a61-450a-b0fc-4b8af8a18465/routes/adacc704-f25d-419f-9613-d3d42700fbbe

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMyIsImVtYWlsIjoiZW1haWwtMjI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDd9.li6MUK_tx5z8m3jfWnJ_Hu6HhKE8wUU-yANQN3PoPD4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/103b0ede-6a61-450a-b0fc-4b8af8a18465/routes/adacc704-f25d-419f-9613-d3d42700fbbe" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMyIsImVtYWlsIjoiZW1haWwtMjI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDd9.li6MUK_tx5z8m3jfWnJ_Hu6HhKE8wUU-yANQN3PoPD4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "103b0ede-6a61-450a-b0fc-4b8af8a18465",
    "url": "/v2/user_provided_service_instances/103b0ede-6a61-450a-b0fc-4b8af8a18465",
    "created_at": "2016-04-22T19:33:27Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1087",
    "credentials": {
      "creds-key-39": "creds-val-39"
    },
    "space_guid": "b32e7c14-56d7-4987-9827-fd9b5a86e50e",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-63",
    "route_service_url": "https://foo.com/url-62",
    "space_url": "/v2/spaces/b32e7c14-56d7-4987-9827-fd9b5a86e50e",
    "service_bindings_url": "/v2/user_provided_service_instances/103b0ede-6a61-450a-b0fc-4b8af8a18465/service_bindings",
    "routes_url": "/v2/user_provided_service_instances/103b0ede-6a61-450a-b0fc-4b8af8a18465/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a6aa4376-dc53-4597-bb67-a4c50db35ca7
Content-Length: 830
X-Content-Type-Options: nosniff