Remove Service Binding from the App
DELETE /v2/apps/:guid/service_bindings/:service_binding_guid
Request
Route
DELETE /v2/apps/0cc5f3ce-6f80-422e-aa9a-6a5295b48062/service_bindings/686557f8-662b-4122-a0dc-e32854f7291f
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
service_binding_guid
|
The guid of the service binding
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/0cc5f3ce-6f80-422e-aa9a-6a5295b48062/service_bindings/686557f8-662b-4122-a0dc-e32854f7291f" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtODJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDc4MjkyN30.5p_FuoyEEZ-FcaXho92-w8eJGmvZPcPSNbFnWN56Nz4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "0cc5f3ce-6f80-422e-aa9a-6a5295b48062",
"url": "/v2/apps/0cc5f3ce-6f80-422e-aa9a-6a5295b48062",
"created_at": "2015-10-07T00:35:27Z",
"updated_at": "2015-10-07T00:35:27Z"
},
"entity": {
"name": "name-500",
"production": false,
"space_guid": "52bbb440-7269-431b-9d37-8dbccf19753a",
"stack_guid": "28563ce9-2ea1-4198-9827-98d082f4952d",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "bff7d540-0d6e-4871-a524-4d68e6654d26",
"command": null,
"console": false,
"debug": null,
"staging_task_id": null,
"package_state": "PENDING",
"health_check_type": "port",
"health_check_timeout": null,
"staging_failed_reason": null,
"staging_failed_description": null,
"diego": false,
"docker_image": null,
"package_updated_at": "2015-10-07T00:35:27Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"space_url": "/v2/spaces/52bbb440-7269-431b-9d37-8dbccf19753a",
"stack_url": "/v2/stacks/28563ce9-2ea1-4198-9827-98d082f4952d",
"events_url": "/v2/apps/0cc5f3ce-6f80-422e-aa9a-6a5295b48062/events",
"service_bindings_url": "/v2/apps/0cc5f3ce-6f80-422e-aa9a-6a5295b48062/service_bindings",
"routes_url": "/v2/apps/0cc5f3ce-6f80-422e-aa9a-6a5295b48062/routes"
}
}
Headers