Updating a User Provided Service Instance
PUT /v2/user_provided_service_instances/:guid
Request
Route
PUT /v2/user_provided_service_instances/595c15e3-fed3-4f94-80a2-5a928194f319
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/595c15e3-fed3-4f94-80a2-5a928194f319" -d '{
"credentials": {
"somekey": "somenewvalue"
}
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NCIsImVtYWlsIjoiZW1haWwtMTg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTJ9.p-y9F5Q_EgFibO-_X3stk3ZDKEm0hSI54VxucFkebNg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "595c15e3-fed3-4f94-80a2-5a928194f319",
"url": "/v2/user_provided_service_instances/595c15e3-fed3-4f94-80a2-5a928194f319",
"created_at": "2015-10-13T17:31:52Z",
"updated_at": "2015-10-13T17:31:52Z"
},
"entity": {
"name": "name-1010",
"credentials": {
"somekey": "somenewvalue"
},
"space_guid": "c4e25460-db13-4c43-accd-451eea88c487",
"type": "user_provided_service_instance",
"syslog_drain_url": "https://foo.com/url-50",
"route_service_url": null,
"space_url": "/v2/spaces/c4e25460-db13-4c43-accd-451eea88c487",
"service_bindings_url": "/v2/user_provided_service_instances/595c15e3-fed3-4f94-80a2-5a928194f319/service_bindings"
}
}
Headers