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/884a578c-007c-4bcd-8972-48d7effe0624/service_bindings/ea9f9740-ca33-4b10-923e-6f26c6205e25

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

cURL

curl "https://api.[your-domain.com]/v2/apps/884a578c-007c-4bcd-8972-48d7effe0624/service_bindings/ea9f9740-ca33-4b10-923e-6f26c6205e25" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NSIsImVtYWlsIjoiZW1haWwtMjA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTN9.cNW0HdyprKoGbKQeyCO_TRzxliNFAjayGMjB5xvE-Zg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "884a578c-007c-4bcd-8972-48d7effe0624",
    "url": "/v2/apps/884a578c-007c-4bcd-8972-48d7effe0624",
    "created_at": "2015-03-10T23:11:52Z",
    "updated_at": "2015-03-10T23:11:52Z"
  },
  "entity": {
    "name": "name-915",
    "production": false,
    "space_guid": "d0147aca-6993-400f-b6ed-a145f17b9b13",
    "stack_guid": "82dd465d-6c06-4d22-8aac-a439c0d91985",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "a4b1811b-1f7e-4c6d-98c6-63474f53ac19",
    "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-10T23:11:52Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/d0147aca-6993-400f-b6ed-a145f17b9b13",
    "stack_url": "/v2/stacks/82dd465d-6c06-4d22-8aac-a439c0d91985",
    "events_url": "/v2/apps/884a578c-007c-4bcd-8972-48d7effe0624/events",
    "service_bindings_url": "/v2/apps/884a578c-007c-4bcd-8972-48d7effe0624/service_bindings",
    "routes_url": "/v2/apps/884a578c-007c-4bcd-8972-48d7effe0624/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a0f859d4-6cf3-4e09-bd57-a74e8da6f4ad
Content-Length: 1362
X-Content-Type-Options: nosniff