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/596f6670-c139-4529-9d6a-d8f790929c6e/spaces/8a17b0f2-2aac-48b1-8303-3c242888b183

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

cURL

curl "https://api.[your-domain.com]/v2/security_groups/596f6670-c139-4529-9d6a-d8f790929c6e/spaces/8a17b0f2-2aac-48b1-8303-3c242888b183" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTciLCJlbWFpbCI6ImVtYWlsLTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNTk0ODY1N30.PQQg5c0bycQf8rpnssK7X9hfzWqDL54uAHTNacRMcWc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "596f6670-c139-4529-9d6a-d8f790929c6e",
    "url": "/v2/security_groups/596f6670-c139-4529-9d6a-d8f790929c6e",
    "created_at": "2015-03-03T00:50:56Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/596f6670-c139-4529-9d6a-d8f790929c6e/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f600e55c-610f-4153-b1b1-967b1619951d
Content-Length: 419
X-Content-Type-Options: nosniff