Updating a User Provided Service Instance
PUT /v2/user_provided_service_instances/:guid
Request
Route
PUT /v2/user_provided_service_instances/39e01aae-545b-40f0-80ac-331ad14936d3
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
|
|
|
|
{
"credentials": {
"somekey": "somenewvalue"
}
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/user_provided_service_instances/39e01aae-545b-40f0-80ac-331ad14936d3" -d '{
"credentials": {
"somekey": "somenewvalue"
}
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzIiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQxfQ.IB-xSZNcUBa2QXd7JOToHk177NQn19GioVMQ7pqEMc0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "39e01aae-545b-40f0-80ac-331ad14936d3",
"url": "/v2/user_provided_service_instances/39e01aae-545b-40f0-80ac-331ad14936d3",
"created_at": "2015-03-20T18:27:21Z",
"updated_at": "2015-03-20T18:27:21Z"
},
"entity": {
"name": "name-118",
"credentials": {
"somekey": "somenewvalue"
},
"space_guid": "d3058dc9-f4ad-44d0-a2dc-50f539ddac62",
"type": "user_provided_service_instance",
"syslog_drain_url": "https://foo.com/url-15",
"space_url": "/v2/spaces/d3058dc9-f4ad-44d0-a2dc-50f539ddac62",
"service_bindings_url": "/v2/user_provided_service_instances/39e01aae-545b-40f0-80ac-331ad14936d3/service_bindings"
}
}
Headers