- Validation constraints
- IPv4
- key: ipv4_constraint
- type: string
- restriction: must be a valid IPv4 address
- hostname
- key: hostname_constraint
- type: string
- restriction: ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-\_][a-zA-Z0-9])\.)([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-\_]*[A-Za-z0-9])$
- size: 1-255
- port
- key: port_constraint
- type: unsigned integer
- restriction: the value must be between 1 and 65535
- netmask:
- key: netmask_constraint
- type: string
- regex: ^(((128|192|224|240|248|252|254)\.0\.0\.0)|(255\.(0|128|192|224|240|248|252|254)\.0\.0)|" "(255\.255\.(0|128|192|224|240|248|252|254)\.0)|(255\.255\.255\.(0|128|192|224|240|248|252|254)))$
- size: no restriction
- mac:
- key: mac_constraint
- type: string
- regex: ^([0-9A-Fa-f]{2}\:){5}([0-9A-Fa-f]{2})$
- size: no restriction
- NTP servers
- key: ntp_server_count_constraint
- size: maximum 16 items in the array
- Zero Tier address
- key: zero_tier_address_constraint
- type: string
- regex: ^([0-9A-Fa-f]{16})$
- size: 16
- name
- key: name_constraint
- type: string
- regex: "*$"
- size: 1-255
Back to Index