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/4791b72a-e514-4dc2-b8df-20a54117ff66/service_bindings/ece47de7-d84b-429c-b624-d5d915d5bf45

Parameters

Name Description Valid Values Example Values
guid The guid of the App
service_binding_guid The guid of the service binding

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MCIsImVtYWlsIjoiZW1haWwtMTU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NTB9.ePjWI-QEIH6I7_PBliPryI-6kpDOrmxFccfiZyoveYw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/4791b72a-e514-4dc2-b8df-20a54117ff66/service_bindings/ece47de7-d84b-429c-b624-d5d915d5bf45" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MCIsImVtYWlsIjoiZW1haWwtMTU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NTB9.ePjWI-QEIH6I7_PBliPryI-6kpDOrmxFccfiZyoveYw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "4791b72a-e514-4dc2-b8df-20a54117ff66",
    "url": "/v2/apps/4791b72a-e514-4dc2-b8df-20a54117ff66",
    "created_at": "2015-10-15T23:52:30Z",
    "updated_at": "2015-10-15T23:52:30Z"
  },
  "entity": {
    "name": "name-1719",
    "production": false,
    "space_guid": "1f5a034c-02c5-4908-bd47-3896fad2f3ad",
    "stack_guid": "15cd7eeb-1a18-45dd-a42d-1dccf3426cbc",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "3b6294d4-c8fa-4d61-8ab0-21e219434bf8",
    "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-15T23:52:30Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/1f5a034c-02c5-4908-bd47-3896fad2f3ad",
    "stack_url": "/v2/stacks/15cd7eeb-1a18-45dd-a42d-1dccf3426cbc",
    "events_url": "/v2/apps/4791b72a-e514-4dc2-b8df-20a54117ff66/events",
    "service_bindings_url": "/v2/apps/4791b72a-e514-4dc2-b8df-20a54117ff66/service_bindings",
    "routes_url": "/v2/apps/4791b72a-e514-4dc2-b8df-20a54117ff66/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b5c8e134-b2b6-458e-bf5f-546d3c9c8660
Content-Length: 1517
X-Content-Type-Options: nosniff