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

Route

DELETE /v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8/spaces/d54411c3-c9de-455c-9860-5c1ae140e530

cURL

curl "https://api.[your-domain.com]/v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8/spaces/d54411c3-c9de-455c-9860-5c1ae140e530" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgwIiwiZW1haWwiOiJlbWFpbC01MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIyfQ.ZExilGAXFvRqkayp0GrePSWo6kOjDqZYkGDICRhKuoA" \
	-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: ab05d6d1-c588-49b9-b3fa-b6b2b8b7ed0f
Content-Length: 419
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "479b592b-f278-430f-9745-624de4c93fd8",
    "url": "/v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8",
    "created_at": "2015-02-12T01:41:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8/spaces"
  }
}