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/1a9d19b7-7b70-4ed1-b350-74ed3a5d54b1/service_bindings/a0b7e050-0f6b-40c2-ace7-00c4f5ff63c2

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMiIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk2M30.yuS46cfc5W87ByYgxaAFg8MUNdQrGc91qlRpu8AVIBc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/1a9d19b7-7b70-4ed1-b350-74ed3a5d54b1/service_bindings/a0b7e050-0f6b-40c2-ace7-00c4f5ff63c2" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMiIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk2M30.yuS46cfc5W87ByYgxaAFg8MUNdQrGc91qlRpu8AVIBc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1a9d19b7-7b70-4ed1-b350-74ed3a5d54b1",
    "url": "/v2/apps/1a9d19b7-7b70-4ed1-b350-74ed3a5d54b1",
    "created_at": "2015-03-18T22:52:43Z",
    "updated_at": "2015-03-18T22:52:43Z"
  },
  "entity": {
    "name": "name-536",
    "production": false,
    "space_guid": "a99faf62-1719-4065-9fda-7563a8a07e15",
    "stack_guid": "72ebe8ec-a7a2-4823-8fcf-8497fdaa3988",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "cb171561-9c06-471f-b8c3-bb4c312bf4fb",
    "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-18T22:52:43Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/a99faf62-1719-4065-9fda-7563a8a07e15",
    "stack_url": "/v2/stacks/72ebe8ec-a7a2-4823-8fcf-8497fdaa3988",
    "events_url": "/v2/apps/1a9d19b7-7b70-4ed1-b350-74ed3a5d54b1/events",
    "service_bindings_url": "/v2/apps/1a9d19b7-7b70-4ed1-b350-74ed3a5d54b1/service_bindings",
    "routes_url": "/v2/apps/1a9d19b7-7b70-4ed1-b350-74ed3a5d54b1/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a79ea0d7-ecb6-4c26-b1fa-432cd31f5305
Content-Length: 1362
X-Content-Type-Options: nosniff