Firewall Rule

Nom de la ressource firewall rule
URL https://api.alwaysdata.com/v1/firewall
Description Règles de firewall
Operations create, read, update, delete, list

Fields

Name Details
id

readonly: YES

integer

Resource ID.

href

readonly: YES

string

Resource location.

protocol

default value: ANY

string

Protocol

  • TCP
  • UDP
  • ANY

action string

Type

  • ACCEPT
  • DROP
  • REJECT

direction string

Direction

  • IN: Ingoing
  • OUT: Outgoing

hosts

default value: null

string

Hosts affected by the rule, separated by spaces. If the field is empty, all hosts are affected. You can specify a URL to a file containing a list of hosts. You can comment a line with the # character. Examples: 192.0.2.38, 192.0.2.0/24, 2001:db8::1.

ports

default value: null

string

Ports affected by the rule, separated by spaces. If the field is empty, all ports are affected. You can specify ranges of consecutive ports, for example: 10000:10010.

ip_version

default value: ANY

string

IP version

  • 4: IPv4
  • 6: IPv6
  • ANY: IPv4/IPv6

annotation string

L'annotation est facultative et apparaitra dans le listing.