Home
Version 3
Security Groups API

Security Groups API

Delete a Particular Security Group

DELETE /v2/security_groups/:guid

Request

Route

DELETE /v2/security_groups/22677b6c-47a3-48a1-96e7-6dd74467ea94

Parameters

Name Description Valid Values Example Values
guid The guid of the Security Group
async Will run the delete request in a background job. Recommended: 'true'.

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/security_groups/22677b6c-47a3-48a1-96e7-6dd74467ea94" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5OCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTN9.ocoL7iY_3qLBTwIzp4aRGTfTf7Y9hnEXoo27_gDvM00" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 1ea71f68-3514-430c-811d-e8f7a6e96ae2
X-Content-Type-Options: nosniff