Updating a User Provided Service Instance
PUT /v2/user_provided_service_instances/:guid
Request
Route
PUT /v2/user_provided_service_instances/37edfd70-e3e8-40da-8b78-16af77e9cbdd
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/37edfd70-e3e8-40da-8b78-16af77e9cbdd" -d '{
"credentials": {
"somekey": "somenewvalue"
}
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzNCIsImVtYWlsIjoiZW1haWwtMzAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDZ9.zmhW3PqBz1d3BXr6mv_SZmuLKPHBTZEVs47dr2Ykvno" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "37edfd70-e3e8-40da-8b78-16af77e9cbdd",
"url": "/v2/user_provided_service_instances/37edfd70-e3e8-40da-8b78-16af77e9cbdd",
"created_at": "2015-10-07T00:35:46Z",
"updated_at": "2015-10-07T00:35:46Z"
},
"entity": {
"name": "name-2359",
"credentials": {
"somekey": "somenewvalue"
},
"space_guid": "901055df-67c5-4e95-b284-1ebeb369764b",
"type": "user_provided_service_instance",
"syslog_drain_url": "https://foo.com/url-89",
"space_url": "/v2/spaces/901055df-67c5-4e95-b284-1ebeb369764b",
"service_bindings_url": "/v2/user_provided_service_instances/37edfd70-e3e8-40da-8b78-16af77e9cbdd/service_bindings"
}
}
Headers