Delete security group
This method deletes a security group.
A security group refers to a set of rules that determine what network traffic is allowed to enter or leave a particular compute instance. It acts as a virtual firewall, controlling inbound and outbound traffic based on predefined rules.
Security groups operate based on predefined rules that allow traffic based on specified criteria, such as source IP address, destination IP address, port number, and protocol.
You can't delete a security group if any compute instance is using this security group. To delete a security group, first remove a compute instance from the security group using this method: POST /v1/security-groups/{securityGroupId}/instances
Request
- Base URLhttps://api.emma.ms/external
- AuthHTTP bearer
Path parameters
ID of the security group
Response
Successful operation
Example response
{
"id": 5,
"name": "default",
"createdById": 123,
"createdByName": "Jack Rur",
"modifiedById": 123,
"modifiedByName": "Jack Rur",
"createdAt": "2023-08-31T09:26:19.347+00:00",
"modifiedAt": "2023-08-31T09:26:19.347+00:00",
"lastModificationErrorDescription": "Unable to update security group",
"rules": [
{
"type": "Custom TCP",
"policy": "ALLOW",
"direction": "INBOUND",
"protocol": "TCP",
"ports": "30321",
"ipRange": "0.0.0.0/0",
"isMutable": true
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.