Home
Version 3
Security Groups API

Security Groups API

Remove Space from the Security Group

DELETE /v2/security_groups/:guid/spaces/:space_guid

Request

Route

DELETE /v2/security_groups/bb301b19-9fad-4522-b94c-2e26832f5681/spaces/30b66078-4f83-4070-873d-ee1e20911949

Parameters

Name Description Valid Values Example Values
guid The guid of the Security Group
space_guid The guid of the Space

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NiIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTR9.vioC5z_ufU2OSN-wxMZotNsXlEY2_yJX9_DBeHk1-eA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/bb301b19-9fad-4522-b94c-2e26832f5681/spaces/30b66078-4f83-4070-873d-ee1e20911949" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NiIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTR9.vioC5z_ufU2OSN-wxMZotNsXlEY2_yJX9_DBeHk1-eA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "bb301b19-9fad-4522-b94c-2e26832f5681",
    "url": "/v2/security_groups/bb301b19-9fad-4522-b94c-2e26832f5681",
    "created_at": "2015-06-04T00:05:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/bb301b19-9fad-4522-b94c-2e26832f5681/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bd6c56cc-8507-4946-b412-6b5a9e3d606e
Content-Length: 419
X-Content-Type-Options: nosniff