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/5badd282-6e07-4fc6-a8c4-78be99040774/routes/237d9236-7997-4b1a-be8d-2aaf2d85421a

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NiIsImVtYWlsIjoiZW1haWwtMTQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTN9.uC0voTc60PaK884k-Q-0RDt97ZggLA2ledcNlN9L1ks
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/5badd282-6e07-4fc6-a8c4-78be99040774/routes/237d9236-7997-4b1a-be8d-2aaf2d85421a" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NiIsImVtYWlsIjoiZW1haWwtMTQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTN9.uC0voTc60PaK884k-Q-0RDt97ZggLA2ledcNlN9L1ks" \
	-H "Host: example.org" \
	-H "Content-Type: application/json" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5badd282-6e07-4fc6-a8c4-78be99040774",
    "url": "/v2/user_provided_service_instances/5badd282-6e07-4fc6-a8c4-78be99040774",
    "created_at": "2016-06-08T16:41:33Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-1676",
    "credentials": {
      "creds-key-52": "creds-val-52"
    },
    "space_guid": "91b53184-6430-4891-8d4b-fabbe96a84f6",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-93",
    "route_service_url": "https://foo.com/url-92",
    "tags": ["accounting", "mongodb"],
    "space_url": "/v2/spaces/91b53184-6430-4891-8d4b-fabbe96a84f6",
    "service_bindings_url": "/v2/user_provided_service_instances/5badd282-6e07-4fc6-a8c4-78be99040774/service_bindings",
    "routes_url": "/v2/user_provided_service_instances/5badd282-6e07-4fc6-a8c4-78be99040774/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d6525643-c080-4940-b408-676d417314c4
Content-Length: 830
X-Content-Type-Options: nosniff