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/92c4d695-7181-4bae-98c9-a80960608b7f/security_groups/e894a7a8-e961-47ba-b09c-c54d770ef877

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/security_groups/e894a7a8-e961-47ba-b09c-c54d770ef877" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExOCIsImVtYWlsIjoiZW1haWwtNjlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3OH0.ZLkQBzHU1aN9TOvYFdfsw_drCr4Nwt0m8TuTYWjePcA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "92c4d695-7181-4bae-98c9-a80960608b7f",
    "url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f",
    "created_at": "2015-07-06T23:22:58Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-319",
    "organization_guid": "d71a8c9b-afd5-4bad-aef9-dca5f129d3b9",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/d71a8c9b-afd5-4bad-aef9-dca5f129d3b9",
    "developers_url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/developers",
    "managers_url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/managers",
    "auditors_url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/auditors",
    "apps_url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/apps",
    "routes_url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/routes",
    "domains_url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/domains",
    "service_instances_url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/service_instances",
    "app_events_url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/app_events",
    "events_url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/events",
    "security_groups_url": "/v2/spaces/92c4d695-7181-4bae-98c9-a80960608b7f/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ea84c296-936f-4cd8-bcdf-def9d5670544
Content-Length: 1277
X-Content-Type-Options: nosniff