Updating a User Provided Service Instance
PUT /v2/user_provided_service_instances/:guid
Request
Route
PUT /v2/user_provided_service_instances/97f4db2b-d1c2-4235-b089-0ed4bfdca31f
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/97f4db2b-d1c2-4235-b089-0ed4bfdca31f" -d '{
"credentials": {
"somekey": "somenewvalue"
}
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMyIsImVtYWlsIjoiZW1haWwtMjI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzh9._aI3bIbxNIeyKEmA6N5PGa60yNZaV6z0OardF2SwRNc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "97f4db2b-d1c2-4235-b089-0ed4bfdca31f",
"url": "/v2/user_provided_service_instances/97f4db2b-d1c2-4235-b089-0ed4bfdca31f",
"created_at": "2016-01-19T19:41:18Z",
"updated_at": "2016-01-19T19:41:18Z"
},
"entity": {
"name": "name-2129",
"credentials": {
"somekey": "somenewvalue"
},
"space_guid": "c5ceb854-45b5-46c5-940e-3b295670e102",
"type": "user_provided_service_instance",
"syslog_drain_url": "https://foo.com/url-75",
"route_service_url": null,
"space_url": "/v2/spaces/c5ceb854-45b5-46c5-940e-3b295670e102",
"service_bindings_url": "/v2/user_provided_service_instances/97f4db2b-d1c2-4235-b089-0ed4bfdca31f/service_bindings",
"routes_url": "/v2/user_provided_service_instances/97f4db2b-d1c2-4235-b089-0ed4bfdca31f/routes"
}
}
Headers