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/4c2127dd-2a98-446d-a86a-599b8ecedc84/routes/e1b4b777-3411-43b9-a656-654ea1f5af14
Headers
cURL
curl "https://api.[your-domain.com]/v2/user_provided_service_instances/4c2127dd-2a98-446d-a86a-599b8ecedc84/routes/e1b4b777-3411-43b9-a656-654ea1f5af14" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNyIsImVtYWlsIjoiZW1haWwtMTQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NDd9.gG3ft_3_aN2y2ASf_2jKB5vKx4ydMsMVdpF0z-PJZgA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "4c2127dd-2a98-446d-a86a-599b8ecedc84",
"url": "/v2/user_provided_service_instances/4c2127dd-2a98-446d-a86a-599b8ecedc84",
"created_at": "2016-04-06T00:17:27Z",
"updated_at": null
},
"entity": {
"name": "name-626",
"credentials": {
"creds-key-26": "creds-val-26"
},
"space_guid": "75ce2513-aa3f-4162-a586-0d935f63ca02",
"type": "user_provided_service_instance",
"syslog_drain_url": "https://foo.com/url-45",
"route_service_url": "https://foo.com/url-44",
"space_url": "/v2/spaces/75ce2513-aa3f-4162-a586-0d935f63ca02",
"service_bindings_url": "/v2/user_provided_service_instances/4c2127dd-2a98-446d-a86a-599b8ecedc84/service_bindings",
"routes_url": "/v2/user_provided_service_instances/4c2127dd-2a98-446d-a86a-599b8ecedc84/routes"
}
}
Headers