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/3ede2a55-6930-4b38-9965-5dfa20a6c503/routes/4cbc6557-ec75-45e2-8110-8172b6f80528

Body

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/3ede2a55-6930-4b38-9965-5dfa20a6c503/routes/4cbc6557-ec75-45e2-8110-8172b6f80528" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc3IiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcyfQ.hP1dbN5p8CwCl4df1gieELHM2DQK6VwwxL_OjD_7UC0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3ede2a55-6930-4b38-9965-5dfa20a6c503",
    "url": "/v2/user_provided_service_instances/3ede2a55-6930-4b38-9965-5dfa20a6c503",
    "created_at": "2016-01-13T17:29:32Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-149",
    "credentials": {
      "creds-key-7": "creds-val-7"
    },
    "space_guid": "fe52dff8-f8e8-4031-b064-318e7bf8a331",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-9",
    "route_service_url": "https://foo.com/url-8",
    "space_url": "/v2/spaces/fe52dff8-f8e8-4031-b064-318e7bf8a331",
    "service_bindings_url": "/v2/user_provided_service_instances/3ede2a55-6930-4b38-9965-5dfa20a6c503/service_bindings",
    "routes_url": "/v2/user_provided_service_instances/3ede2a55-6930-4b38-9965-5dfa20a6c503/routes"
  }
}

Headers

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