Home
Version 3
Apps API

Apps API

Remove Service Binding from the App

DELETE /v2/apps/:guid/service_bindings/:service_binding_guid

Request

Route

DELETE /v2/apps/119f68b1-e9a5-4e3c-bad5-b1df905c5183/service_bindings/07e0aab4-12b5-4935-84c7-ded266f18b75

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NSIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NjB9.GZ7yYsa6HLADwQ12uKQUyc68kbodyoNEwOgsUcVd0hk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/119f68b1-e9a5-4e3c-bad5-b1df905c5183/service_bindings/07e0aab4-12b5-4935-84c7-ded266f18b75" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NSIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NjB9.GZ7yYsa6HLADwQ12uKQUyc68kbodyoNEwOgsUcVd0hk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "119f68b1-e9a5-4e3c-bad5-b1df905c5183",
    "url": "/v2/apps/119f68b1-e9a5-4e3c-bad5-b1df905c5183",
    "created_at": "2015-03-20T18:27:40Z",
    "updated_at": "2015-03-20T18:27:40Z"
  },
  "entity": {
    "name": "name-1579",
    "production": false,
    "space_guid": "dbece84f-74e5-41cd-b93e-50038c38a9d7",
    "stack_guid": "04a55f4c-a998-4984-854d-757feaf37237",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "9e4a0f90-f7b6-418d-9106-0d3f522fec88",
    "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,
    "diego": false,
    "docker_image": null,
    "package_updated_at": "2015-03-20T18:27:40Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/dbece84f-74e5-41cd-b93e-50038c38a9d7",
    "stack_url": "/v2/stacks/04a55f4c-a998-4984-854d-757feaf37237",
    "events_url": "/v2/apps/119f68b1-e9a5-4e3c-bad5-b1df905c5183/events",
    "service_bindings_url": "/v2/apps/119f68b1-e9a5-4e3c-bad5-b1df905c5183/service_bindings",
    "routes_url": "/v2/apps/119f68b1-e9a5-4e3c-bad5-b1df905c5183/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ef20cd3c-22b2-4632-b5c4-8a8fa8d94fb4
Content-Length: 1363
X-Content-Type-Options: nosniff