Remove Security Group from the Space
DELETE /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
DELETE /v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/security_groups/1c5c53d7-5dc5-4004-87d9-50e05677d8b3
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/a6b18f09-14c2-4a87-b622-0927003e3536/security_groups/1c5c53d7-5dc5-4004-87d9-50e05677d8b3" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU0IiwiZW1haWwiOiJlbWFpbC0zM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIxfQ.wu4mNzU_IRpREpaL2YOOxTwEC4G-Ffd6Mf-vVewr_lg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "a6b18f09-14c2-4a87-b622-0927003e3536",
"url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536",
"created_at": "2015-10-07T00:35:21Z",
"updated_at": null
},
"entity": {
"name": "name-120",
"organization_guid": "80692839-6b76-4a43-bc55-fc6e6c50dd15",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/80692839-6b76-4a43-bc55-fc6e6c50dd15",
"developers_url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/developers",
"managers_url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/managers",
"auditors_url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/auditors",
"apps_url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/apps",
"routes_url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/routes",
"domains_url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/domains",
"service_instances_url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/service_instances",
"app_events_url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/app_events",
"events_url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/events",
"security_groups_url": "/v2/spaces/a6b18f09-14c2-4a87-b622-0927003e3536/security_groups"
}
}
Headers