Remove Security Group from the Space
DELETE /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
DELETE /v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/security_groups/1ee217f8-d964-45e2-8294-9825ce241430
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/8fe605e3-1156-42ef-b17d-f4d275168f6e/security_groups/1ee217f8-d964-45e2-8294-9825ce241430" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNiIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDZ9.MykWNyopOUSlYTJEhbOvlSnwdFFBv2wVTUJXIVY8kAE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "8fe605e3-1156-42ef-b17d-f4d275168f6e",
"url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e",
"created_at": "2015-08-31T21:50:05Z",
"updated_at": null
},
"entity": {
"name": "name-826",
"organization_guid": "b4312f75-843b-43c9-823b-ef1c6d6797f3",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/b4312f75-843b-43c9-823b-ef1c6d6797f3",
"developers_url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/developers",
"managers_url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/managers",
"auditors_url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/auditors",
"apps_url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/apps",
"routes_url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/routes",
"domains_url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/domains",
"service_instances_url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/service_instances",
"app_events_url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/app_events",
"events_url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/events",
"security_groups_url": "/v2/spaces/8fe605e3-1156-42ef-b17d-f4d275168f6e/security_groups"
}
}
Headers