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/855ea4be-d8d7-487e-8c8b-dc9c40d56845/routes/f75dc4bf-3baa-4cea-b778-a08d59d7a76a
Headers
cURL
curl "https://api.[your-domain.com]/v2/user_provided_service_instances/855ea4be-d8d7-487e-8c8b-dc9c40d56845/routes/f75dc4bf-3baa-4cea-b778-a08d59d7a76a" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NCIsImVtYWlsIjoiZW1haWwtMTcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2Nzh9.0xWaotfAEDYWgaHNtLvfEDin86bE3HVwYb2WHoPJCh4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "855ea4be-d8d7-487e-8c8b-dc9c40d56845",
"url": "/v2/user_provided_service_instances/855ea4be-d8d7-487e-8c8b-dc9c40d56845",
"created_at": "2016-03-17T21:41:17Z",
"updated_at": null
},
"entity": {
"name": "name-997",
"credentials": {
"creds-key-45": "creds-val-45"
},
"space_guid": "05221e0b-5a8a-40dd-bf36-61e34848ae0a",
"type": "user_provided_service_instance",
"syslog_drain_url": "https://foo.com/url-40",
"route_service_url": "https://foo.com/url-39",
"space_url": "/v2/spaces/05221e0b-5a8a-40dd-bf36-61e34848ae0a",
"service_bindings_url": "/v2/user_provided_service_instances/855ea4be-d8d7-487e-8c8b-dc9c40d56845/service_bindings",
"routes_url": "/v2/user_provided_service_instances/855ea4be-d8d7-487e-8c8b-dc9c40d56845/routes"
}
}
Headers