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/25f5d1e3-b112-476c-b6e8-4e4d0219cee0/service_bindings/45e56d8d-d1f3-4f2c-9d1b-83898688bce6

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

cURL

curl "https://api.[your-domain.com]/v2/apps/25f5d1e3-b112-476c-b6e8-4e4d0219cee0/service_bindings/45e56d8d-d1f3-4f2c-9d1b-83898688bce6" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOCIsImVtYWlsIjoiZW1haWwtMjQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTl9.dR0HR7IrkPoXNkD5UuPhoTX0VybkdYCUUaZwjavoJ64" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "25f5d1e3-b112-476c-b6e8-4e4d0219cee0",
    "url": "/v2/apps/25f5d1e3-b112-476c-b6e8-4e4d0219cee0",
    "created_at": "2015-06-04T00:05:18Z",
    "updated_at": "2015-06-04T00:05:18Z"
  },
  "entity": {
    "name": "name-2045",
    "production": false,
    "space_guid": "af05abb5-2827-466b-8dcd-9708ab507533",
    "stack_guid": "7b7398e5-6286-44d5-ab44-4e0170f0da49",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "9de31acb-544d-4a86-9c0f-2ca057af3eb5",
    "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-06-04T00:05:18Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/af05abb5-2827-466b-8dcd-9708ab507533",
    "stack_url": "/v2/stacks/7b7398e5-6286-44d5-ab44-4e0170f0da49",
    "events_url": "/v2/apps/25f5d1e3-b112-476c-b6e8-4e4d0219cee0/events",
    "service_bindings_url": "/v2/apps/25f5d1e3-b112-476c-b6e8-4e4d0219cee0/service_bindings",
    "routes_url": "/v2/apps/25f5d1e3-b112-476c-b6e8-4e4d0219cee0/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9227a0aa-d449-488f-b8bd-15a8424eae78
Content-Length: 1477
X-Content-Type-Options: nosniff