Home
Version 3
User Provided Service Instances API

User Provided Service Instances API

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/4080b0c1-405a-4358-972f-1d113cf819bb/routes/550c2b1d-5d8e-4073-b022-30d9fb876bd0

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/4080b0c1-405a-4358-972f-1d113cf819bb/routes/550c2b1d-5d8e-4073-b022-30d9fb876bd0" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0MCIsImVtYWlsIjoiZW1haWwtMzA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDd9.PkvjYHRRH0c_XYUHeA8Aa4IWwdWIT0ABysScj_x4ieo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "4080b0c1-405a-4358-972f-1d113cf819bb",
    "url": "/v2/user_provided_service_instances/4080b0c1-405a-4358-972f-1d113cf819bb",
    "created_at": "2016-02-19T02:04:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2594",
    "credentials": {
      "creds-key-61": "creds-val-61"
    },
    "space_guid": "dc6295d4-1da6-4bff-87fd-3f0cbe9d0067",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-98",
    "route_service_url": "https://foo.com/url-97",
    "space_url": "/v2/spaces/dc6295d4-1da6-4bff-87fd-3f0cbe9d0067",
    "service_bindings_url": "/v2/user_provided_service_instances/4080b0c1-405a-4358-972f-1d113cf819bb/service_bindings",
    "routes_url": "/v2/user_provided_service_instances/4080b0c1-405a-4358-972f-1d113cf819bb/routes"
  }
}

Headers

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