Add Firewall Rule to VM

Creates a firewall rule of the VM. One side is always the current VM the other side can be defined in 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 key mask with a number indicating the relevant bits as value for a subnet as target.


  • 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 optionally code, both with numbers as values for ICMP.
Click Try It! to start a request and see the response here!