Home
Version 3
Spaces API

Spaces API

Remove Security Group from the Space

DELETE /v2/spaces/:guid/security_groups/:security_group_guid

Request

Route

DELETE /v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/security_groups/cc21d493-b43d-47f7-8dcd-ed67d259ce1b

Parameters

Name Description Valid Values Example Values
guid The guid of the Space
security_group_guid The guid of the security group

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTciLCJlbWFpbCI6ImVtYWlsLTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc4N30.Bjc6bW9jq4cv7eSghDmt0Id9WbpclW6PzfOcqSCrLMA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/security_groups/cc21d493-b43d-47f7-8dcd-ed67d259ce1b" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTciLCJlbWFpbCI6ImVtYWlsLTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc4N30.Bjc6bW9jq4cv7eSghDmt0Id9WbpclW6PzfOcqSCrLMA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c5fd640c-4be6-4865-8954-e3fe094b5c37",
    "url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37",
    "created_at": "2015-07-27T22:43:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-49",
    "organization_guid": "484a9c23-898d-4d54-ab3d-75bbf03cc5c0",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/484a9c23-898d-4d54-ab3d-75bbf03cc5c0",
    "developers_url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/developers",
    "managers_url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/managers",
    "auditors_url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/auditors",
    "apps_url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/apps",
    "routes_url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/routes",
    "domains_url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/domains",
    "service_instances_url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/service_instances",
    "app_events_url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/app_events",
    "events_url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/events",
    "security_groups_url": "/v2/spaces/c5fd640c-4be6-4865-8954-e3fe094b5c37/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8afcbfdb-e4e8-4a07-83cf-7171eb5e4e44
Content-Length: 1276
X-Content-Type-Options: nosniff