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/199b3eb1-7631-4184-b778-3e66ee1f4c4b/routes/30c9bb05-ab90-4cd8-a2aa-26478c20f4c5

Body

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/199b3eb1-7631-4184-b778-3e66ee1f4c4b/routes/30c9bb05-ab90-4cd8-a2aa-26478c20f4c5" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MCIsImVtYWlsIjoiZW1haWwtMjYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5Njd9.uvIa77kJvnlICXUOhVhYManMfnKjvX09mGDQrWkvK_Y" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "199b3eb1-7631-4184-b778-3e66ee1f4c4b",
    "url": "/v2/user_provided_service_instances/199b3eb1-7631-4184-b778-3e66ee1f4c4b",
    "created_at": "2015-10-15T23:52:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2329",
    "credentials": {
      "creds-key-593": "creds-val-593"
    },
    "space_guid": "16705a2f-2e79-4505-a46f-2776b4f72133",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-110",
    "route_service_url": "https://foo.com/url-109",
    "space_url": "/v2/spaces/16705a2f-2e79-4505-a46f-2776b4f72133",
    "service_bindings_url": "/v2/user_provided_service_instances/199b3eb1-7631-4184-b778-3e66ee1f4c4b/service_bindings",
    "routes_url": "/v2/user_provided_service_instances/199b3eb1-7631-4184-b778-3e66ee1f4c4b/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fb492128-ed98-438a-bf86-dea4d4b512da
Content-Length: 834
X-Content-Type-Options: nosniff