Documentation

Data Types

Supported data types

Following data types are supported:

  • none: No value: none
  • any: Any value: any
  • boolean: Boolean value: true or false
  • unsigned: Unsigned number. Examples: 10, 6000
  • enum: Unsigned numeric enum. Examples: START, radius, 1, 2
  • signed: Signed number. Examples: -10, -6000, 10, 6000
  • float: Floating point number. Examples: 3.5, 20.9
  • timestamp: Timestamp. Examples: now, RFC 2822 format, RFC 3339 format
  • duration: Duration with optional unit suffixes. Examples: 5s, 30m, 2h, 1d. See Duration Units
  • string: Text string. Examples: "some text", word
  • bytes: Bytes. Examples: 0xaa00ffee
  • ip: IPv4 or IPv6 address. Examples: 10.10.10.10, 2001:db8:3333:4444:5555:6666:7777:8888
  • ip-prefix: IPv4 or IPv6 address prefix. Examples: 10.10.10.0/24, 2001:db8::0/32
  • regex: Regular expression. Example: /^example.(com|org)$/

If a namespace attribute has no value, none is returned.