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/067ad298-f359-4e6c-8be8-b0fac4d8f409/security_groups/3d4f95cd-0eb7-4351-b301-d6c4dea46859

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/security_groups/3d4f95cd-0eb7-4351-b301-d6c4dea46859" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk3IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQ0fQ.yxsSYOvTkoSMXS7zAn9L_mfulGfxMeXLoASwbRK3k54" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "067ad298-f359-4e6c-8be8-b0fac4d8f409",
    "url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409",
    "created_at": "2015-03-20T18:27:24Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-238",
    "organization_guid": "50a5305a-7a0d-440f-9252-6b09988cb62b",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/50a5305a-7a0d-440f-9252-6b09988cb62b",
    "developers_url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/developers",
    "managers_url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/managers",
    "auditors_url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/auditors",
    "apps_url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/apps",
    "routes_url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/routes",
    "domains_url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/domains",
    "service_instances_url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/service_instances",
    "app_events_url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/app_events",
    "events_url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/events",
    "security_groups_url": "/v2/spaces/067ad298-f359-4e6c-8be8-b0fac4d8f409/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c3aca63d-a3f4-4893-b168-f5a342a928b4
Content-Length: 1254
X-Content-Type-Options: nosniff