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/87461476-1f32-45dc-ad79-58a99b130437/security_groups/90e9fe29-4059-49eb-b206-f57159152942

Parameters

Name Description Valid Values Example Values
guid The guid of the Space
security_group_guid The guid of the security group

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/security_groups/90e9fe29-4059-49eb-b206-f57159152942" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY3IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.iMo3tufIBlokkYC2K0N4H1JWN4Td4vrUGMhNFemzsko" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "87461476-1f32-45dc-ad79-58a99b130437",
    "url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437",
    "created_at": "2015-10-13T17:31:37Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-154",
    "organization_guid": "d2fb4234-1f97-4f86-b7b7-1bddeec66418",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/d2fb4234-1f97-4f86-b7b7-1bddeec66418",
    "developers_url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/developers",
    "managers_url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/managers",
    "auditors_url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/auditors",
    "apps_url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/apps",
    "routes_url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/routes",
    "domains_url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/domains",
    "service_instances_url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/service_instances",
    "app_events_url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/app_events",
    "events_url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/events",
    "security_groups_url": "/v2/spaces/87461476-1f32-45dc-ad79-58a99b130437/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fb48087c-9ace-4af0-9074-c4b2aff381a7
Content-Length: 1277
X-Content-Type-Options: nosniff