This YANG module provides a data-model for the NTP service.
Copyright 2018-2019 Rubicon Communications, LLC.
Example URL
Network Time Protocol daemon configuration for time keeping and services.
netgate.ntp.NtpConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Network Time Protocol daemon configuration for time keeping and services.
netgate.ntp.NtpConfig to be added to list
tinker | object (netgate.ntp.ntpconfig.Tinker) |
interfaces | object (netgate.ntp.ntpconfig.Interfaces) |
servers | object (netgate.ntp.ntpconfig.Servers) |
tos | object (netgate.ntp.ntpconfig.Tos) |
restrictions | object (netgate.ntp.ntpconfig.Restrictions) |
logconfigs | object (netgate.ntp.ntpconfig.Logconfigs) |
parameters | object (netgate.ntp.ntpconfig.Parameters) |
Object created
Internal error
Object already exists
Example URL
Network Time Protocol daemon configuration for time keeping and services.
netgate.ntp.NtpConfig to be added or updated
netgate-ntp:ntp-config | object (netgate.ntp.NtpConfig) |
Object created
Object modified
Internal error
Example URL
Network Time Protocol daemon configuration for time keeping and services.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Interface binding specifications.
netgate.ntp.ntpconfig.Interfaces
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:interfaces" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Interface binding specifications.
netgate.ntp.ntpconfig.Interfaces to be added to list
interface | Array of objects (netgate.ntp.ntpconfig.interfaces.Interface) |
Object created
Internal error
Object already exists
Example URL
Interface binding specifications.
netgate.ntp.ntpconfig.Interfaces to be added or updated
netgate-ntp:interfaces | object (netgate.ntp.ntpconfig.Interfaces) |
Object created
Object modified
Internal error
Example URL
Interface binding specifications.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:interfaces" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.ntpconfig.interfaces.Interface
netgate.ntp.ntpconfig.interfaces.Interface to be added to list
sequence | integer <int64> The sequence numbers provide an ordering for the list of interface commands. |
action | string (netgate.ntp.NtpInterfaceAction) Enum: "listen" "ignore" "drop" |
match-ip-prefix | string Match an IP prefix. |
match-all | boolean Match all interfaces. |
match-interface | string Match an interface name. |
Object created
Internal error
Object already exists
Example URL
returns netgate.ntp.ntpconfig.interfaces.Interface
sequence required | integer <int64> Id of interface |
netgate.ntp.ntpconfig.interfaces.Interface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:interfaces/netgate-ntp:interface=%7Bsequence%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.ntpconfig.interfaces.Interface
sequence required | integer <int64> Id of interface |
netgate.ntp.ntpconfig.interfaces.Interface to be added to list
sequence | integer <int64> The sequence numbers provide an ordering for the list of interface commands. |
action | string (netgate.ntp.NtpInterfaceAction) Enum: "listen" "ignore" "drop" |
match-ip-prefix | string Match an IP prefix. |
match-all | boolean Match all interfaces. |
match-interface | string Match an interface name. |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ntp.ntpconfig.interfaces.Interface
sequence required | integer <int64> Id of interface |
netgate.ntp.ntpconfig.interfaces.Interface to be added or updated
netgate-ntp:interface | object (netgate.ntp.ntpconfig.interfaces.Interface) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.interfaces.Interface
sequence required | integer <int64> Id of interface |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:interfaces/netgate-ntp:interface=%7Bsequence%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An ordered sequence of NTPD logconfig settings.
netgate.ntp.ntpconfig.Logconfigs
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:logconfigs" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An ordered sequence of NTPD logconfig settings.
netgate.ntp.ntpconfig.Logconfigs to be added to list
logconfig | Array of objects (netgate.ntp.ntpconfig.logconfigs.Logconfig) |
Object created
Internal error
Object already exists
Example URL
An ordered sequence of NTPD logconfig settings.
netgate.ntp.ntpconfig.Logconfigs to be added or updated
netgate-ntp:logconfigs | object (netgate.ntp.ntpconfig.Logconfigs) |
Object created
Object modified
Internal error
Example URL
An ordered sequence of NTPD logconfig settings.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:logconfigs" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.ntpconfig.logconfigs.Logconfig
netgate.ntp.ntpconfig.logconfigs.Logconfig to be added to list
sequence | integer <int64> Logconfig options must be ordered. |
action | string (netgate.ntp.NtpLogAction) Enum: "set" "add" "delete" |
type | string (netgate.ntp.NtpLogType) Enum: "all" "info" "events" "statistics" "status" |
class | string (netgate.ntp.NtpLogClass) Enum: "all" "clock" "peer" "sys" "sync" |
Object created
Internal error
Object already exists
Example URL
returns netgate.ntp.ntpconfig.logconfigs.Logconfig
sequence required | integer <int64> Id of logconfig |
netgate.ntp.ntpconfig.logconfigs.Logconfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:logconfigs/netgate-ntp:logconfig=%7Bsequence%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.ntpconfig.logconfigs.Logconfig
sequence required | integer <int64> Id of logconfig |
netgate.ntp.ntpconfig.logconfigs.Logconfig to be added to list
sequence | integer <int64> Logconfig options must be ordered. |
action | string (netgate.ntp.NtpLogAction) Enum: "set" "add" "delete" |
type | string (netgate.ntp.NtpLogType) Enum: "all" "info" "events" "statistics" "status" |
class | string (netgate.ntp.NtpLogClass) Enum: "all" "clock" "peer" "sys" "sync" |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ntp.ntpconfig.logconfigs.Logconfig
sequence required | integer <int64> Id of logconfig |
netgate.ntp.ntpconfig.logconfigs.Logconfig to be added or updated
netgate-ntp:logconfig | object (netgate.ntp.ntpconfig.logconfigs.Logconfig) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.logconfigs.Logconfig
sequence required | integer <int64> Id of logconfig |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:logconfigs/netgate-ntp:logconfig=%7Bsequence%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A collection of various NTP daemon parameters.
netgate.ntp.ntpconfig.Parameters
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:parameters" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A collection of various NTP daemon parameters.
netgate.ntp.ntpconfig.Parameters to be added to list
enabled-flags | object (netgate.ntp.ntpconfig.parameters.EnabledFlags) |
driftfile | string Full path name of the drift file. If not specified, /var/lib/ntp/drift. |
statsdir | string Full path name of the statistics directory. If not specified, /var/log/ntpstats |
enable | boolean If true, the NTP daemon is enabled. |
disabled-flags | object (netgate.ntp.ntpconfig.parameters.DisabledFlags) |
Object created
Internal error
Object already exists
Example URL
A collection of various NTP daemon parameters.
netgate.ntp.ntpconfig.Parameters to be added or updated
netgate-ntp:parameters | object (netgate.ntp.ntpconfig.Parameters) |
Object created
Object modified
Internal error
Example URL
A collection of various NTP daemon parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:parameters" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A set of flags explicitly disabled.
netgate.ntp.ntpconfig.parameters.DisabledFlags
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:parameters/netgate-ntp:disabled-flags" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A set of flags explicitly disabled.
netgate.ntp.ntpconfig.parameters.DisabledFlags to be added to list
monitor | boolean If true, disable monitor. |
Object created
Internal error
Object already exists
Example URL
A set of flags explicitly disabled.
netgate.ntp.ntpconfig.parameters.DisabledFlags to be added or updated
netgate-ntp:disabled-flags | object (netgate.ntp.ntpconfig.parameters.DisabledFlags) |
Object created
Object modified
Internal error
Example URL
A set of flags explicitly disabled.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:parameters/netgate-ntp:disabled-flags" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A set of flags explicitly enabled.
netgate.ntp.ntpconfig.parameters.EnabledFlags
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:parameters/netgate-ntp:enabled-flags" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A set of flags explicitly enabled.
netgate.ntp.ntpconfig.parameters.EnabledFlags to be added to list
monitor | boolean If true, enable monitor. |
Object created
Internal error
Object already exists
Example URL
A set of flags explicitly enabled.
netgate.ntp.ntpconfig.parameters.EnabledFlags to be added or updated
netgate-ntp:enabled-flags | object (netgate.ntp.ntpconfig.parameters.EnabledFlags) |
Object created
Object modified
Internal error
Example URL
A set of flags explicitly enabled.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:parameters/netgate-ntp:enabled-flags" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.ntp.ntpconfig.Restrictions
netgate.ntp.ntpconfig.Restrictions
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:restrictions" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.ntpconfig.Restrictions
netgate.ntp.ntpconfig.Restrictions to be added to list
restriction | Array of objects (netgate.ntp.ntpconfig.restrictions.Restriction) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ntp.ntpconfig.Restrictions
netgate.ntp.ntpconfig.Restrictions to be added or updated
netgate-ntp:restrictions | object (netgate.ntp.ntpconfig.Restrictions) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.Restrictions
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:restrictions" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.ntpconfig.restrictions.Restriction
netgate.ntp.ntpconfig.restrictions.Restriction to be added to list
noquery | boolean If true, disable ntpq/ntpdc queries. |
kod | boolean If true, enable Kiss o' Death packets. |
address | string Network to restrict. |
noserve | boolean If true, disable service/everything except ntpq and ntpdc queries. |
limited | boolean If true, enable Kiss o' Death packets. |
nopeer | boolean If true, deny peer association packets. |
notrap | boolean If true, deny mode 6 control message trap service. |
nomodify | boolean If true, deny run-time config by ntpq and ntpdc. |
present | boolean |
address-family | string (netgate.common.IpAddressFamily) Enum: "ipv4" "ipv6" |
Object created
Internal error
Object already exists
Example URL
returns netgate.ntp.ntpconfig.restrictions.Restriction
address required | string Id of restriction |
netgate.ntp.ntpconfig.restrictions.Restriction
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:restrictions/netgate-ntp:restriction=%7Baddress%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.ntpconfig.restrictions.Restriction
address required | string Id of restriction |
netgate.ntp.ntpconfig.restrictions.Restriction to be added to list
noquery | boolean If true, disable ntpq/ntpdc queries. |
kod | boolean If true, enable Kiss o' Death packets. |
address | string Network to restrict. |
noserve | boolean If true, disable service/everything except ntpq and ntpdc queries. |
limited | boolean If true, enable Kiss o' Death packets. |
nopeer | boolean If true, deny peer association packets. |
notrap | boolean If true, deny mode 6 control message trap service. |
nomodify | boolean If true, deny run-time config by ntpq and ntpdc. |
present | boolean |
address-family | string (netgate.common.IpAddressFamily) Enum: "ipv4" "ipv6" |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ntp.ntpconfig.restrictions.Restriction
address required | string Id of restriction |
netgate.ntp.ntpconfig.restrictions.Restriction to be added or updated
netgate-ntp:restriction | object (netgate.ntp.ntpconfig.restrictions.Restriction) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.restrictions.Restriction
address required | string Id of restriction |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:restrictions/netgate-ntp:restriction=%7Baddress%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.ntp.ntpconfig.Servers
netgate.ntp.ntpconfig.Servers
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:servers" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.ntpconfig.Servers
netgate.ntp.ntpconfig.Servers to be added to list
server | Array of objects (netgate.ntp.ntpconfig.servers.Server) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ntp.ntpconfig.Servers
netgate.ntp.ntpconfig.Servers to be added or updated
netgate-ntp:servers | object (netgate.ntp.ntpconfig.Servers) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.Servers
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:servers" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.ntpconfig.servers.Server
netgate.ntp.ntpconfig.servers.Server to be added to list
prefer | boolean If true, favor this server more than others. |
operational-mode | string (netgate.ntp.NtpServerMode) Enum: "server" "pool" |
host | string NTP server IP address or FQDN. |
noselect | boolean If true, disable time sync for this server, track stats only. |
maxpoll | integer <int32> Maximum poll interval expressed as a power of 2 in seconds. |
iburst | boolean If true, send a burst of attempts to an unreachable server to speed up acquisition of time synchronization. |
Object created
Internal error
Object already exists
Example URL
returns netgate.ntp.ntpconfig.servers.Server
host required | string Id of server |
netgate.ntp.ntpconfig.servers.Server
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:servers/netgate-ntp:server=%7Bhost%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.ntpconfig.servers.Server
host required | string Id of server |
netgate.ntp.ntpconfig.servers.Server to be added to list
prefer | boolean If true, favor this server more than others. |
operational-mode | string (netgate.ntp.NtpServerMode) Enum: "server" "pool" |
host | string NTP server IP address or FQDN. |
noselect | boolean If true, disable time sync for this server, track stats only. |
maxpoll | integer <int32> Maximum poll interval expressed as a power of 2 in seconds. |
iburst | boolean If true, send a burst of attempts to an unreachable server to speed up acquisition of time synchronization. |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ntp.ntpconfig.servers.Server
host required | string Id of server |
netgate.ntp.ntpconfig.servers.Server to be added or updated
netgate-ntp:server | object (netgate.ntp.ntpconfig.servers.Server) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.servers.Server
host required | string Id of server |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:servers/netgate-ntp:server=%7Bhost%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Tinker options.
netgate.ntp.ntpconfig.Tinker
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:tinker" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Tinker options.
netgate.ntp.ntpconfig.Tinker to be added to list
panic | integer <int64> Panic threshold in seconds. 0 disables. Default 1000. |
Object created
Internal error
Object already exists
Example URL
Tinker options.
netgate.ntp.ntpconfig.Tinker to be added or updated
netgate-ntp:tinker | object (netgate.ntp.ntpconfig.Tinker) |
Object created
Object modified
Internal error
Example URL
Tinker options.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:tinker" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
TOS options.
netgate.ntp.ntpconfig.Tos
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:tos" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
TOS options.
netgate.ntp.ntpconfig.Tos to be added to list
orphan | integer <int32> Orphan stratum in the range 1 through 16. |
Object created
Internal error
Object already exists
Example URL
TOS options.
netgate.ntp.ntpconfig.Tos to be added or updated
netgate-ntp:tos | object (netgate.ntp.ntpconfig.Tos) |
Object created
Object modified
Internal error
Example URL
TOS options.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/netgate-ntp:tos" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Network Time Protocol daemon configuration for time keeping and services.
netgate.ntp.NtpState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Interface binding specifications.
netgate.ntp.ntpstate.Interfaces
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:interfaces" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.ntp.ntpstate.interfaces.Interface
sequence required | integer <int64> Id of interface |
netgate.ntp.ntpstate.interfaces.Interface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:interfaces/netgate-ntp:interface=%7Bsequence%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An ordered sequence of NTPD logconfig settings.
netgate.ntp.ntpstate.Logconfigs
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:logconfigs" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.ntp.ntpstate.logconfigs.Logconfig
sequence required | integer <int64> Id of logconfig |
netgate.ntp.ntpstate.logconfigs.Logconfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:logconfigs/netgate-ntp:logconfig=%7Bsequence%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A collection of various NTP daemon parameters.
netgate.ntp.ntpstate.Parameters
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:parameters" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A set of flags explicitly disabled.
netgate.ntp.ntpstate.parameters.DisabledFlags
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:parameters/netgate-ntp:disabled-flags" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A set of flags explicitly enabled.
netgate.ntp.ntpstate.parameters.EnabledFlags
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:parameters/netgate-ntp:enabled-flags" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Information about the server's peer associations.
netgate.ntp.ntpstate.Peers
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:peers" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.ntp.ntpstate.peers.Peer
id required | integer <int32> Id of peer |
netgate.ntp.ntpstate.peers.Peer
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:peers/netgate-ntp:peer=%7Bid%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
The decoded peer status.
id required | integer <int32> Id of peer |
netgate.ntp.ntpstate.peers.peer.Status
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:peers/netgate-ntp:peer=%7Bid%7D/netgate-ntp:status" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
The peer variables of an association.
id required | integer <int32> Id of peer |
netgate.ntp.ntpstate.peers.peer.Variables
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:peers/netgate-ntp:peer=%7Bid%7D/netgate-ntp:variables" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.ntp.ntpstate.peers.peer.variables.Variable
id required | integer <int32> Id of peer |
name required | string Id of variable |
netgate.ntp.ntpstate.peers.peer.variables.Variable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:peers/netgate-ntp:peer=%7Bid%7D/netgate-ntp:variables/netgate-ntp:variable=%7Bname%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.ntp.ntpstate.Restrictions
netgate.ntp.ntpstate.Restrictions
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:restrictions" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.ntp.ntpstate.restrictions.Restriction
address required | string Id of restriction |
netgate.ntp.ntpstate.restrictions.Restriction
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:restrictions/netgate-ntp:restriction=%7Baddress%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.ntp.ntpstate.Servers
netgate.ntp.ntpstate.Servers
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:servers" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.ntp.ntpstate.servers.Server
host required | string Id of server |
netgate.ntp.ntpstate.servers.Server
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:servers/netgate-ntp:server=%7Bhost%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Tinker options.
netgate.ntp.ntpstate.Tinker
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:tinker" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
TOS options.
netgate.ntp.ntpstate.Tos
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-state/netgate-ntp:tos" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.ntp.NtpConfigOperation
input | object (netgate.ntp.ntpconfigoperation.Input) |
Correct response
No response
Internal error
Example URL
creates netgate.ntp.NtpControl
input | object (netgate.ntp.ntpcontrol.Input) |
Correct response
No response
Internal error