Update security group
This method updates 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.
When editing a security group, you can add and delete the inbound and outbound rules. You can only define rules that allow traffic, not deny it. All traffic is denied except for explicitly allowed traffic.
Security groups control TCP, UDP and ICMP protocols, or all the selected protocols at once.
Both IPv4 and IPv6 addresses are supported in the 'ipRange' field.
All traffic in the selected protocol is allowed if the IP range in a rule is set to 0.0.0.0/0.
Request
- Base URLhttps://api.emma.ms/external
- AuthHTTP bearer
Path parameters
ID of the security group
Request body
Example request
{
"name": "new_default",
"rules": [
{
"direction": "INBOUND",
"protocol": "TCP",
"ports": "1-30321",
"ipRange": "0.0.0.0/0"
}
]
}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.