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

Route

DELETE /v2/security_groups/5e9d4c04-a516-441c-bf41-115d044128cf/spaces/13050423-0798-491d-abbe-3c3ebe56a020

cURL

curl "https://api.[your-domain.com]/v2/security_groups/5e9d4c04-a516-441c-bf41-115d044128cf/spaces/13050423-0798-491d-abbe-3c3ebe56a020" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OSIsImVtYWlsIjoiZW1haWwtMTg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDR9.EUCA4PDqsDu4YELAQVXHRUfsHYmluI9A7LIZwPeKPg8" \
	-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: b0d5dd95-d7ea-4319-9e8a-3734e8b4fb10
Content-Length: 424
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "5e9d4c04-a516-441c-bf41-115d044128cf",
    "url": "/v2/security_groups/5e9d4c04-a516-441c-bf41-115d044128cf",
    "created_at": "2014-11-05T01:02:07+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/5e9d4c04-a516-441c-bf41-115d044128cf/spaces"
  }
}