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/0dee399b-b9a5-421e-bd5c-241bcc0985de/service_bindings/eaacb487-9be7-465e-a77f-042b270b94ad

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NiIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjYwMH0.0-8NElEOV6wAUzLtf4SNKTFP5mbMHXcobcCmSGuLaws
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/0dee399b-b9a5-421e-bd5c-241bcc0985de/service_bindings/eaacb487-9be7-465e-a77f-042b270b94ad" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NiIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjYwMH0.0-8NElEOV6wAUzLtf4SNKTFP5mbMHXcobcCmSGuLaws" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0dee399b-b9a5-421e-bd5c-241bcc0985de",
    "url": "/v2/apps/0dee399b-b9a5-421e-bd5c-241bcc0985de",
    "created_at": "2015-08-31T21:50:00Z",
    "updated_at": "2015-08-31T21:50:00Z"
  },
  "entity": {
    "name": "name-481",
    "production": false,
    "space_guid": "d4b991a8-8cf1-4480-a6b5-70357fe8d7f6",
    "stack_guid": "1fb640c7-d627-4720-9fe7-5084e7d5f97f",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "00545e75-0bca-40b6-bd45-dceda16da7f9",
    "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-08-31T21:50:00Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/d4b991a8-8cf1-4480-a6b5-70357fe8d7f6",
    "stack_url": "/v2/stacks/1fb640c7-d627-4720-9fe7-5084e7d5f97f",
    "events_url": "/v2/apps/0dee399b-b9a5-421e-bd5c-241bcc0985de/events",
    "service_bindings_url": "/v2/apps/0dee399b-b9a5-421e-bd5c-241bcc0985de/service_bindings",
    "routes_url": "/v2/apps/0dee399b-b9a5-421e-bd5c-241bcc0985de/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5a96036a-bb46-451d-acce-2071196168d7
Content-Length: 1516
X-Content-Type-Options: nosniff