post https://example.com/vms//fw_rules
Creates a firewall rule of the VM. One side is always the current VM the other side can be defined in target
.
target
- The string
"all"
for all targets. - An object with the key
ip
and the IP address in a string as value for a single IP target. - An object with the key
subnet
with the base address of the subnet as string, and keymask
with a number indicating the relevant bits as value for a subnet as target.
filters
- A list of one or more ports for UDP and TCP.
- The string
"all"
for UDP and TCP. - A list of objects containing the key
type
and optionallycode
, both with numbers as values for ICMP.