Home
Version 3
Spaces API

Spaces API

Remove Security Group from the Space

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

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Space

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMCIsImVtYWlsIjoiZW1haWwtNzJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY4OX0.ZhgHh_5JM0FVPK3oWqljtuCV83b6-x-vs6YR8qxfsHo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/security_groups/184cc0c5-86ce-437e-ad24-3d1d6ac54a53

cURL

curl "https://api.[your-domain.com]/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/security_groups/184cc0c5-86ce-437e-ad24-3d1d6ac54a53" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMCIsImVtYWlsIjoiZW1haWwtNzJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY4OX0.ZhgHh_5JM0FVPK3oWqljtuCV83b6-x-vs6YR8qxfsHo" \
	-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: 9a28b461-48ee-4e7d-9e4e-ec0c5ce7f9b9
Content-Length: 1254
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "dd0bbeb5-814f-48eb-8df7-2521d3243b76",
    "url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76",
    "created_at": "2015-02-13T22:34:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-280",
    "organization_guid": "aabbb747-4b39-496e-8152-c1e1c82c6008",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/aabbb747-4b39-496e-8152-c1e1c82c6008",
    "developers_url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/developers",
    "managers_url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/managers",
    "auditors_url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/auditors",
    "apps_url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/apps",
    "routes_url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/routes",
    "domains_url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/domains",
    "service_instances_url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/service_instances",
    "app_events_url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/app_events",
    "events_url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/events",
    "security_groups_url": "/v2/spaces/dd0bbeb5-814f-48eb-8df7-2521d3243b76/security_groups"
  }
}