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/41e8cc15-1ebb-4071-9abc-04100d0105f5/security_groups/5f3e4e67-a994-4f25-91d3-f12315163cde

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/security_groups/5f3e4e67-a994-4f25-91d3-f12315163cde" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtOTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTY2NDEzOH0.logX3XabCN0fhQOZZtrajWWG4b3n1b06YjPQe7GdhpM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "41e8cc15-1ebb-4071-9abc-04100d0105f5",
    "url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5",
    "created_at": "2015-04-15T00:55:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1202",
    "organization_guid": "f3d33906-de2d-4245-9ad6-f78651116659",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/f3d33906-de2d-4245-9ad6-f78651116659",
    "developers_url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/developers",
    "managers_url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/managers",
    "auditors_url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/auditors",
    "apps_url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/apps",
    "routes_url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/routes",
    "domains_url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/domains",
    "service_instances_url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/service_instances",
    "app_events_url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/app_events",
    "events_url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/events",
    "security_groups_url": "/v2/spaces/41e8cc15-1ebb-4071-9abc-04100d0105f5/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: be0d46de-e2af-4725-9a7c-9974761f10f4
Content-Length: 1255
X-Content-Type-Options: nosniff