Updating a User Provided Service Instance
PUT /v2/user_provided_service_instances/:guid
Request
Route
PUT /v2/user_provided_service_instances/1a77ae06-91eb-42cb-894b-9d04c6915ee6
Body
Name |
Description |
Default |
Valid Values |
Example Values |
name
|
A name for the service instance
|
|
|
- my-user-provided-instance
|
syslog_drain_url
|
The url for the syslog_drain to direct to
|
|
|
|
credentials
|
A hash that can be used to store credentials
|
|
|
|
route_service_url
|
URL to which requests for bound routes will be forwarded.
|
|
|
- https://logger.example.com
|
{
"credentials": {
"somekey": "somenewvalue"
}
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/user_provided_service_instances/1a77ae06-91eb-42cb-894b-9d04c6915ee6" -d '{
"credentials": {
"somekey": "somenewvalue"
}
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMyIsImVtYWlsIjoiZW1haWwtMTQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NDZ9.wkHGl80tjwCA4d8d53tthY8f3EWT73Wl-Jlz_nYD6XE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1a77ae06-91eb-42cb-894b-9d04c6915ee6",
"url": "/v2/user_provided_service_instances/1a77ae06-91eb-42cb-894b-9d04c6915ee6",
"created_at": "2016-04-06T00:17:26Z",
"updated_at": "2016-04-06T00:17:26Z"
},
"entity": {
"name": "name-607",
"credentials": {
"somekey": "somenewvalue"
},
"space_guid": "ab7964cd-0f79-4d33-919c-8839522788a8",
"type": "user_provided_service_instance",
"syslog_drain_url": "https://foo.com/url-40",
"route_service_url": null,
"space_url": "/v2/spaces/ab7964cd-0f79-4d33-919c-8839522788a8",
"service_bindings_url": "/v2/user_provided_service_instances/1a77ae06-91eb-42cb-894b-9d04c6915ee6/service_bindings",
"routes_url": "/v2/user_provided_service_instances/1a77ae06-91eb-42cb-894b-9d04c6915ee6/routes"
}
}
Headers