Remove Security Group from the Space
DELETE /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
DELETE /v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/security_groups/31080fcc-4ed6-4748-8962-eaed23cb1af1
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/security_groups/31080fcc-4ed6-4748-8962-eaed23cb1af1" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MCIsImVtYWlsIjoiZW1haWwtMjkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzUwMDB9.IYcszYOuauhWaZ0xp-NHVALVDXstXhotSOwVh-207OY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "20ed8d91-6c44-4def-8a3f-bd42b6e51760",
"url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760",
"created_at": "2015-05-21T01:03:20Z",
"updated_at": null
},
"entity": {
"name": "name-2254",
"organization_guid": "bfd01842-0618-4b5a-8281-32be1940c3ef",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/bfd01842-0618-4b5a-8281-32be1940c3ef",
"developers_url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/developers",
"managers_url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/managers",
"auditors_url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/auditors",
"apps_url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/apps",
"routes_url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/routes",
"domains_url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/domains",
"service_instances_url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/service_instances",
"app_events_url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/app_events",
"events_url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/events",
"security_groups_url": "/v2/spaces/20ed8d91-6c44-4def-8a3f-bd42b6e51760/security_groups"
}
}
Headers