This YANG module provides a data-model for the NTP service.
Copyright 2018-2020 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
netgate-ntp:ntp-config | object (netgate.ntp.NtpConfig) |
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-wrapper | object (netgate.ntp.NtpConfigWrapper) |
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
NTP daemon configuration parameters.
netgate.ntp.ntpconfig.Daemon
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon" 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
NTP daemon configuration parameters.
netgate.ntp.ntpconfig.Daemon to be added to list
daemon | object (netgate.ntp.ntpconfig.Daemon) |
Object created
Internal error
Object already exists
Example URL
NTP daemon configuration parameters.
netgate.ntp.ntpconfig.Daemon to be added or updated
netgate-ntp:daemon-wrapper | object (netgate.ntp.ntpconfig.DaemonWrapper) |
Object created
Object modified
Internal error
Example URL
NTP daemon configuration parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon" 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.daemon.Interfaces
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/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.daemon.Interfaces to be added to list
interfaces | object (netgate.ntp.ntpconfig.daemon.Interfaces) |
Object created
Internal error
Object already exists
Example URL
Interface binding specifications.
netgate.ntp.ntpconfig.daemon.Interfaces to be added or updated
netgate-ntp:interfaces-wrapper | object (netgate.ntp.ntpconfig.daemon.InterfacesWrapper) |
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/daemon/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.daemon.interfaces.Interface
netgate.ntp.ntpconfig.daemon.interfaces.Interface to be added to list
interface | object (netgate.ntp.ntpconfig.daemon.interfaces.Interface) |
Object created
Internal error
Object already exists
Example URL
returns netgate.ntp.ntpconfig.daemon.interfaces.Interface
sequence required | integer <int64> Id of interface |
netgate.ntp.ntpconfig.daemon.interfaces.Interface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces/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 or updates netgate.ntp.ntpconfig.daemon.interfaces.Interface
sequence required | integer <int64> Id of interface |
netgate.ntp.ntpconfig.daemon.interfaces.Interface to be added or updated
netgate-ntp:interface-wrapper | object (netgate.ntp.ntpconfig.daemon.interfaces.InterfaceWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.daemon.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/daemon/interfaces/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.daemon.Logconfigs
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/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.daemon.Logconfigs to be added to list
logconfigs | object (netgate.ntp.ntpconfig.daemon.Logconfigs) |
Object created
Internal error
Object already exists
Example URL
An ordered sequence of NTPD logconfig settings.
netgate.ntp.ntpconfig.daemon.Logconfigs to be added or updated
netgate-ntp:logconfigs-wrapper | object (netgate.ntp.ntpconfig.daemon.LogconfigsWrapper) |
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/daemon/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.daemon.logconfigs.Logconfig
netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig to be added to list
logconfig | object (netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig) |
Object created
Internal error
Object already exists
Example URL
returns netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig
sequence required | integer <int64> Id of logconfig |
netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs/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 or updates netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig
sequence required | integer <int64> Id of logconfig |
netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig to be added or updated
netgate-ntp:logconfig-wrapper | object (netgate.ntp.ntpconfig.daemon.logconfigs.LogconfigWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.daemon.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/daemon/logconfigs/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
The NTP parameters managed by the NTP daemon.
netgate.ntp.ntpconfig.daemon.Parameters
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/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
The NTP parameters managed by the NTP daemon.
netgate.ntp.ntpconfig.daemon.Parameters to be added to list
parameters | object (netgate.ntp.ntpconfig.daemon.Parameters) |
Object created
Internal error
Object already exists
Example URL
The NTP parameters managed by the NTP daemon.
netgate.ntp.ntpconfig.daemon.Parameters to be added or updated
netgate-ntp:parameters-wrapper | object (netgate.ntp.ntpconfig.daemon.ParametersWrapper) |
Object created
Object modified
Internal error
Example URL
The NTP parameters managed by the NTP daemon.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/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
Force monitor flags to disabled.
netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/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
Force monitor flags to disabled.
netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags to be added to list
disabled-flags | object (netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags) |
Object created
Internal error
Object already exists
Example URL
Force monitor flags to disabled.
netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags to be added or updated
netgate-ntp:disabled-flags-wrapper | object (netgate.ntp.ntpconfig.daemon.parameters.DisabledFlagsWrapper) |
Object created
Object modified
Internal error
Example URL
Force monitor flags to disabled.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/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
Force monitor flags to enabled.
netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/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
Force monitor flags to enabled.
netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags to be added to list
enabled-flags | object (netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags) |
Object created
Internal error
Object already exists
Example URL
Force monitor flags to enabled.
netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags to be added or updated
netgate-ntp:enabled-flags-wrapper | object (netgate.ntp.ntpconfig.daemon.parameters.EnabledFlagsWrapper) |
Object created
Object modified
Internal error
Example URL
Force monitor flags to enabled.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/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.daemon.Restrictions
netgate.ntp.ntpconfig.daemon.Restrictions
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/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.daemon.Restrictions
netgate.ntp.ntpconfig.daemon.Restrictions to be added to list
restrictions | object (netgate.ntp.ntpconfig.daemon.Restrictions) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ntp.ntpconfig.daemon.Restrictions
netgate.ntp.ntpconfig.daemon.Restrictions to be added or updated
netgate-ntp:restrictions-wrapper | object (netgate.ntp.ntpconfig.daemon.RestrictionsWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.daemon.Restrictions
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/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.daemon.restrictions.Restriction
netgate.ntp.ntpconfig.daemon.restrictions.Restriction to be added to list
restriction | object (netgate.ntp.ntpconfig.daemon.restrictions.Restriction) |
Object created
Internal error
Object already exists
Example URL
returns netgate.ntp.ntpconfig.daemon.restrictions.Restriction
address required | string Id of restriction |
netgate.ntp.ntpconfig.daemon.restrictions.Restriction
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions/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 or updates netgate.ntp.ntpconfig.daemon.restrictions.Restriction
address required | string Id of restriction |
netgate.ntp.ntpconfig.daemon.restrictions.Restriction to be added or updated
netgate-ntp:restriction-wrapper | object (netgate.ntp.ntpconfig.daemon.restrictions.RestrictionWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.daemon.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/daemon/restrictions/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.daemon.Servers
netgate.ntp.ntpconfig.daemon.Servers
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/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.daemon.Servers
netgate.ntp.ntpconfig.daemon.Servers to be added to list
servers | object (netgate.ntp.ntpconfig.daemon.Servers) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ntp.ntpconfig.daemon.Servers
netgate.ntp.ntpconfig.daemon.Servers to be added or updated
netgate-ntp:servers-wrapper | object (netgate.ntp.ntpconfig.daemon.ServersWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.daemon.Servers
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/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.daemon.servers.Server
netgate.ntp.ntpconfig.daemon.servers.Server to be added to list
server | object (netgate.ntp.ntpconfig.daemon.servers.Server) |
Object created
Internal error
Object already exists
Example URL
returns netgate.ntp.ntpconfig.daemon.servers.Server
host required | string Id of server |
netgate.ntp.ntpconfig.daemon.servers.Server
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers/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 or updates netgate.ntp.ntpconfig.daemon.servers.Server
host required | string Id of server |
netgate.ntp.ntpconfig.daemon.servers.Server to be added or updated
netgate-ntp:server-wrapper | object (netgate.ntp.ntpconfig.daemon.servers.ServerWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.ntp.ntpconfig.daemon.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/daemon/servers/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.daemon.Tinker
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/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.daemon.Tinker to be added to list
tinker | object (netgate.ntp.ntpconfig.daemon.Tinker) |
Object created
Internal error
Object already exists
Example URL
Tinker options.
netgate.ntp.ntpconfig.daemon.Tinker to be added or updated
netgate-ntp:tinker-wrapper | object (netgate.ntp.ntpconfig.daemon.TinkerWrapper) |
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/daemon/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.daemon.Tos
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/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.daemon.Tos to be added to list
tos | object (netgate.ntp.ntpconfig.daemon.Tos) |
Object created
Internal error
Object already exists
Example URL
TOS options.
netgate.ntp.ntpconfig.daemon.Tos to be added or updated
netgate-ntp:tos-wrapper | object (netgate.ntp.ntpconfig.daemon.TosWrapper) |
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/daemon/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
The NTP system parameters not managed by the daemon.
netgate.ntp.ntpconfig.System
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/system" 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 NTP system parameters not managed by the daemon.
netgate.ntp.ntpconfig.System to be added to list
system | object (netgate.ntp.ntpconfig.System) |
Object created
Internal error
Object already exists
Example URL
The NTP system parameters not managed by the daemon.
netgate.ntp.ntpconfig.System to be added or updated
netgate-ntp:system-wrapper | object (netgate.ntp.ntpconfig.SystemWrapper) |
Object created
Object modified
Internal error
Example URL
The NTP system parameters not managed by the daemon.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/system" 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
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/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/peers/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/peers/peer=%7Bid%7D/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/peers/peer=%7Bid%7D/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/peers/peer=%7Bid%7D/variables/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
operates on netgate.ntp.NtpConfigOperation
input | object (netgate.ntp.ntpconfigoperation.Input) |
Correct response
No response
Internal error
Example URL
operates on netgate.ntp.NtpControl
input | object (netgate.ntp.ntpcontrol.Input) |
Correct response
No response
Internal error
Example URL
operates on netgate.ntp.NtpCoredump
input | object (netgate.ntp.ntpcoredump.Input) |
Correct response
No response
Internal error