Updating a User Provided Service Instance
PUT /v2/user_provided_service_instances/:guid
Request
Route
PUT /v2/user_provided_service_instances/b70a8db9-b156-44a4-8bd1-8a2986ee2457
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/b70a8db9-b156-44a4-8bd1-8a2986ee2457" -d '{
"credentials": {
"somekey": "somenewvalue"
}
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OSIsImVtYWlsIjoiZW1haWwtMjE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NjN9.Fl_hSE1JXlkE2UhPbB8_yCx827x2D9i-dA1J6Qo4lnQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "b70a8db9-b156-44a4-8bd1-8a2986ee2457",
"url": "/v2/user_provided_service_instances/b70a8db9-b156-44a4-8bd1-8a2986ee2457",
"created_at": "2015-11-13T17:02:43Z",
"updated_at": "2015-11-13T17:02:43Z"
},
"entity": {
"name": "name-1744",
"credentials": {
"somekey": "somenewvalue"
},
"space_guid": "86b46557-3d1a-4e3f-ad30-2838e7be7baf",
"type": "user_provided_service_instance",
"syslog_drain_url": "https://foo.com/url-88",
"route_service_url": null,
"space_url": "/v2/spaces/86b46557-3d1a-4e3f-ad30-2838e7be7baf",
"service_bindings_url": "/v2/user_provided_service_instances/b70a8db9-b156-44a4-8bd1-8a2986ee2457/service_bindings",
"routes_url": "/v2/user_provided_service_instances/b70a8db9-b156-44a4-8bd1-8a2986ee2457/routes"
}
}
Headers