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/99cdd896-ef58-4221-a9d3-45ae2844f1e7/service_bindings/02b72561-fad6-414e-b1aa-e3e99d24b24d

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

cURL

curl "https://api.[your-domain.com]/v2/apps/99cdd896-ef58-4221-a9d3-45ae2844f1e7/service_bindings/02b72561-fad6-414e-b1aa-e3e99d24b24d" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOSIsImVtYWlsIjoiZW1haWwtMjMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzR9.l0uSAI45OMPQKe04ICVoaE8xBbcizebe59dDts5CBzc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "99cdd896-ef58-4221-a9d3-45ae2844f1e7",
    "url": "/v2/apps/99cdd896-ef58-4221-a9d3-45ae2844f1e7",
    "created_at": "2015-03-03T00:51:14Z",
    "updated_at": "2015-03-03T00:51:14Z"
  },
  "entity": {
    "name": "name-1722",
    "production": false,
    "space_guid": "0c20f9b4-cfed-440e-87d5-bb33ecb1e827",
    "stack_guid": "e46dab24-c8bd-484e-8f5b-3a75b982b4eb",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "e556c09e-6b67-405e-b749-873d23c3cca1",
    "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-03T00:51:14Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/0c20f9b4-cfed-440e-87d5-bb33ecb1e827",
    "stack_url": "/v2/stacks/e46dab24-c8bd-484e-8f5b-3a75b982b4eb",
    "events_url": "/v2/apps/99cdd896-ef58-4221-a9d3-45ae2844f1e7/events",
    "service_bindings_url": "/v2/apps/99cdd896-ef58-4221-a9d3-45ae2844f1e7/service_bindings",
    "routes_url": "/v2/apps/99cdd896-ef58-4221-a9d3-45ae2844f1e7/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 50154a68-6554-4f77-8cc5-f0786094249d
Content-Length: 1363
X-Content-Type-Options: nosniff