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

Route

DELETE /v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/security_groups/30d225ec-81c3-4e18-9b24-d80d601c7780

cURL

curl "https://api.[your-domain.com]/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/security_groups/30d225ec-81c3-4e18-9b24-d80d601c7780" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYyIiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYzfQ.q5NtLSapOfknSG0W_eJQxsteKgY0WTrM-ReUlBwkCZ8" \
	-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: 53f79a21-6679-488c-823f-61f46e4522ba
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "2e9e49a0-2628-4653-bdd1-074d4830141a",
    "url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a",
    "created_at": "2014-12-24T01:39:23+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-119",
    "organization_guid": "0b6df8a8-10ce-4b5a-a815-cfdd7f774fa6",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/0b6df8a8-10ce-4b5a-a815-cfdd7f774fa6",
    "developers_url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/developers",
    "managers_url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/managers",
    "auditors_url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/auditors",
    "apps_url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/apps",
    "routes_url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/routes",
    "domains_url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/domains",
    "service_instances_url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/service_instances",
    "app_events_url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/app_events",
    "events_url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/events",
    "security_groups_url": "/v2/spaces/2e9e49a0-2628-4653-bdd1-074d4830141a/security_groups"
  }
}