Home
Version 3
Security Groups API

Security Groups API

Remove Space from the Security Group

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOCIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzR9.nQM-_3emMTNH6bIU7Jae1U9yvGLwzmyWnQhz590uFfI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/security_groups/32b8532a-ec24-434a-9ea9-3e5a6db66327/spaces/d7f27459-6934-4ebd-a3e5-1f41298edab9

cURL

curl "https://api.[your-domain.com]/v2/security_groups/32b8532a-ec24-434a-9ea9-3e5a6db66327/spaces/d7f27459-6934-4ebd-a3e5-1f41298edab9" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOCIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzR9.nQM-_3emMTNH6bIU7Jae1U9yvGLwzmyWnQhz590uFfI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 21a29dfa-c6c0-4ec8-98cf-cdac8d9b5410
Content-Length: 419
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "32b8532a-ec24-434a-9ea9-3e5a6db66327",
    "url": "/v2/security_groups/32b8532a-ec24-434a-9ea9-3e5a6db66327",
    "created_at": "2015-01-27T19:14:28Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/32b8532a-ec24-434a-9ea9-3e5a6db66327/spaces"
  }
}