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

Route

DELETE /v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/security_groups/2e61ca76-a21c-4c72-8521-4cff0591594d

cURL

curl "https://api.[your-domain.com]/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/security_groups/2e61ca76-a21c-4c72-8521-4cff0591594d" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNSIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODN9.DYaVGnlGdKMb38mycU-oL3NlmsgKgwb18ewnS9h_M2g" \
	-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: 77f28ebd-c0b7-46d4-b7e8-f547d208ff61
Content-Length: 1255
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "0aca880b-4968-411c-8b97-4c1f808112cc",
    "url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc",
    "created_at": "2015-01-27T19:14:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1915",
    "organization_guid": "4c0b330d-675b-4f04-adcb-a44dac446df7",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/4c0b330d-675b-4f04-adcb-a44dac446df7",
    "developers_url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/developers",
    "managers_url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/managers",
    "auditors_url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/auditors",
    "apps_url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/apps",
    "routes_url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/routes",
    "domains_url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/domains",
    "service_instances_url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/service_instances",
    "app_events_url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/app_events",
    "events_url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/events",
    "security_groups_url": "/v2/spaces/0aca880b-4968-411c-8b97-4c1f808112cc/security_groups"
  }
}