Remove Security Group from the Space
DELETE /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
DELETE /v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/security_groups/4f9a82c9-d12e-448d-96e8-4a1f991f5424
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
security_group_guid
|
The guid of the security group
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/security_groups/4f9a82c9-d12e-448d-96e8-4a1f991f5424" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0MjYwNjM5fQ.HJlFy9yxIWKpNn0p2nkiGEMVyEIiDNcNtcViNOnQR7Q" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "befbd5c7-5115-43e9-b256-fe01f7d98638",
"url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638",
"created_at": "2015-09-30T23:30:39Z",
"updated_at": null
},
"entity": {
"name": "name-1139",
"organization_guid": "59fe5ebd-bdfe-47e2-894b-270d0df5fa20",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/59fe5ebd-bdfe-47e2-894b-270d0df5fa20",
"developers_url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/developers",
"managers_url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/managers",
"auditors_url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/auditors",
"apps_url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/apps",
"routes_url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/routes",
"domains_url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/domains",
"service_instances_url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/service_instances",
"app_events_url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/app_events",
"events_url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/events",
"security_groups_url": "/v2/spaces/befbd5c7-5115-43e9-b256-fe01f7d98638/security_groups"
}
}
Headers