Security groups
Delete security group
Delete a security group.
Authorization
ApiKeyAuth x-api-key<token>
In: header
Path Parameters
id*string
Unique identifier of the security group.
Query Parameters
region*string
Region code where the resource exists (e.g., eu2).
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://cloud.huddleapis.com/api/v1/security-groups/sg-9f3c7c2?region=eu2"{
"message": "Operation successful"
}{
"message": "Bad request",
"error": {
"code": "BAD_REQUEST",
"message": "Invalid request body",
"type": "client"
},
"timestamp": "2024-03-18T10:22:00Z"
}{
"message": "Unauthorized",
"error": {
"code": "UNAUTHORIZED",
"message": "x-api-key header missing",
"type": "auth"
},
"timestamp": "2024-03-18T10:22:00Z"
}{
"message": "Internal server error",
"error": {
"code": "INTERNAL_ERROR",
"message": "Failed to create instance",
"type": "server"
},
"timestamp": "2024-03-18T10:22:00Z"
}