curl --location --request POST 'https://barrack.ai/api/instances//security-rules/' \
--header 'Content-Type: application/json' \
--data-raw '{
"direction": "ingress",
"protocol": "tcp",
"ethertype": "IPv4",
"remote_ip_prefix": "string",
"port_range_min": 1,
"port_range_max": 1
}'{
"success": true,
"message": "Security rule added successfully",
"security_rule": {
"id": "sg-rule-123",
"direction": "ingress",
"protocol": "tcp",
"ethertype": "IPv4",
"remote_ip_prefix": "203.0.113.0/24",
"port_range_min": 3306,
"port_range_max": 3306
},
"instance_id": "BRK-123456D",
"tier": "legacy",
"request_id": "i7j8k9l0"
}