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

Route

DELETE /v2/security_groups/138030d6-5b21-4a72-a3ab-5d9fa6d96224/spaces/51c0d00c-4ef4-488a-9b41-d70ecaf95f70

cURL

curl "https://api.[your-domain.com]/v2/security_groups/138030d6-5b21-4a72-a3ab-5d9fa6d96224/spaces/51c0d00c-4ef4-488a-9b41-d70ecaf95f70" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgiLCJlbWFpbCI6ImVtYWlsLThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDEzNzM2Mn0.L50ejcPJVcFWjpgMIK8qcHHMExVx8-QJPlNcH9wRJBo" \
	-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: 600f4c14-06b6-4e9f-b450-9424c4229b85
Content-Length: 419
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "138030d6-5b21-4a72-a3ab-5d9fa6d96224",
    "url": "/v2/security_groups/138030d6-5b21-4a72-a3ab-5d9fa6d96224",
    "created_at": "2015-02-10T01:42:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/138030d6-5b21-4a72-a3ab-5d9fa6d96224/spaces"
  }
}