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/84a2437a-99f5-4c2c-aaa4-9268daa11bb2/routes/6e30e5ee-93b7-46d1-9778-c7a10e7fea82
Headers
cURL
curl "https://api.[your-domain.com]/v2/user_provided_service_instances/84a2437a-99f5-4c2c-aaa4-9268daa11bb2/routes/6e30e5ee-93b7-46d1-9778-c7a10e7fea82" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNCIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDB9.OI_04ASSUJ9KvSm_ypFNg1t9kLLhgbnnYtirVx8gIXo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "84a2437a-99f5-4c2c-aaa4-9268daa11bb2",
"url": "/v2/user_provided_service_instances/84a2437a-99f5-4c2c-aaa4-9268daa11bb2",
"created_at": "2016-04-16T01:24:00Z",
"updated_at": null
},
"entity": {
"name": "name-1048",
"credentials": {
"creds-key-48": "creds-val-48"
},
"space_guid": "a1a397fb-8e37-4cf6-b188-f721417a714f",
"type": "user_provided_service_instance",
"syslog_drain_url": "https://foo.com/url-58",
"route_service_url": "https://foo.com/url-57",
"space_url": "/v2/spaces/a1a397fb-8e37-4cf6-b188-f721417a714f",
"service_bindings_url": "/v2/user_provided_service_instances/84a2437a-99f5-4c2c-aaa4-9268daa11bb2/service_bindings",
"routes_url": "/v2/user_provided_service_instances/84a2437a-99f5-4c2c-aaa4-9268daa11bb2/routes"
}
}
Headers