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/701d7401-cb24-4fd3-a5fc-ee6b659b576b/spaces/7b331c88-b062-44bf-a2a8-2659d78091b7

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

cURL

curl "https://api.[your-domain.com]/v2/security_groups/701d7401-cb24-4fd3-a5fc-ee6b659b576b/spaces/7b331c88-b062-44bf-a2a8-2659d78091b7" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OCIsImVtYWlsIjoiZW1haWwtMTUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDd9.nWiVSK7Tmf0wehoUGHeOQVem2Dc--UncXnn1_hEwBOg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "701d7401-cb24-4fd3-a5fc-ee6b659b576b",
    "url": "/v2/security_groups/701d7401-cb24-4fd3-a5fc-ee6b659b576b",
    "created_at": "2015-03-05T19:15:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/701d7401-cb24-4fd3-a5fc-ee6b659b576b/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: aad6ce42-7e5e-4502-9463-431f33fc0c7c
Content-Length: 419
X-Content-Type-Options: nosniff