Security groups
Get security group by ID
Returns a security group by its ID.
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.
get/v1/security-groups/{securityGroupId}
Request
- Base URLhttps://api.emma.ms/external
- AuthHTTP bearer
Path parameters
securityGroupIdinteger required
ID of the security group
Query parameters
projectIdinteger
Unused, created for future API extention. Will be ignored if used.
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.