This YANG module provides a data-model for the Unbound service.
Copyright 2018-2020 Rubicon Communications, LLC.
Example URL
Configuration for the Unbound DNS name resolver daemon.
netgate.unbound.UnboundConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-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
Configuration for the Unbound DNS name resolver daemon.
netgate.unbound.UnboundConfig to be added to list
netgate-unbound:unbound-config | object (netgate.unbound.UnboundConfig) |
Object created
Internal error
Object already exists
Example URL
Configuration for the Unbound DNS name resolver daemon.
netgate.unbound.UnboundConfig to be added or updated
netgate-unbound:unbound-config-wrapper | object (netgate.unbound.UnboundConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Configuration for the Unbound DNS name resolver daemon.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-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
The server attributes.
netgate.unbound.unboundconfig.Daemon
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-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
The server attributes.
netgate.unbound.unboundconfig.Daemon to be added to list
daemon | object (netgate.unbound.unboundconfig.Daemon) |
Object created
Internal error
Object already exists
Example URL
The server attributes.
netgate.unbound.unboundconfig.Daemon to be added or updated
netgate-unbound:daemon-wrapper | object (netgate.unbound.unboundconfig.DaemonWrapper) |
Object created
Object modified
Internal error
Example URL
The server attributes.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-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
The forward-zone attributes.
netgate.unbound.unboundconfig.daemon.ForwardZones
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones" 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 forward-zone attributes.
netgate.unbound.unboundconfig.daemon.ForwardZones to be added to list
forward-zones | object (netgate.unbound.unboundconfig.daemon.ForwardZones) |
Object created
Internal error
Object already exists
Example URL
The forward-zone attributes.
netgate.unbound.unboundconfig.daemon.ForwardZones to be added or updated
netgate-unbound:forward-zones-wrapper | object (netgate.unbound.unboundconfig.daemon.ForwardZonesWrapper) |
Object created
Object modified
Internal error
Example URL
The forward-zone attributes.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones" 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
Each forward-zone is identified by a domain name. Use '.' as the wildcard domain name. Each zone has a list of nameservers specified as hostnames or host addresses.
netgate.unbound.unboundconfig.daemon.forwardzones.Zone to be added to list
zone | object (netgate.unbound.unboundconfig.daemon.forwardzones.Zone) |
Object created
Internal error
Object already exists
Example URL
Each forward-zone is identified by a domain name. Use '.' as the wildcard domain name. Each zone has a list of nameservers specified as hostnames or host addresses.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.Zone
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%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
Each forward-zone is identified by a domain name. Use '.' as the wildcard domain name. Each zone has a list of nameservers specified as hostnames or host addresses.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.Zone to be added or updated
netgate-unbound:zone-wrapper | object (netgate.unbound.unboundconfig.daemon.forwardzones.ZoneWrapper) |
Object created
Object modified
Internal error
Example URL
Each forward-zone is identified by a domain name. Use '.' as the wildcard domain name. Each zone has a list of nameservers specified as hostnames or host addresses.
zone-name required | string Id of zone |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%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 nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-addresses" 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 nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses to be added to list
forward-addresses | object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses) |
Object created
Internal error
Object already exists
Example URL
A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses to be added or updated
netgate-unbound:forward-addresses-wrapper | object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddressesWrapper) |
Object created
Object modified
Internal error
Example URL
A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.
zone-name required | string Id of zone |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-addresses" 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.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address to be added to list
address | object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address) |
Object created
Internal error
Object already exists
Example URL
returns netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address
zone-name required | string Id of zone |
ip-address required | string Id of address |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-addresses/address=%7Bip-address%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.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address
zone-name required | string Id of zone |
ip-address required | string Id of address |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address to be added or updated
netgate-unbound:address-wrapper | object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.AddressWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address
zone-name required | string Id of zone |
ip-address required | string Id of address |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-addresses/address=%7Bip-address%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.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-hosts" 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.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts to be added to list
forward-hosts | object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts to be added or updated
netgate-unbound:forward-hosts-wrapper | object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHostsWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts
zone-name required | string Id of zone |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-hosts" 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 server attributes.
netgate.unbound.unboundconfig.daemon.Server
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server" 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 server attributes.
netgate.unbound.unboundconfig.daemon.Server to be added to list
server | object (netgate.unbound.unboundconfig.daemon.Server) |
Object created
Internal error
Object already exists
Example URL
The server attributes.
netgate.unbound.unboundconfig.daemon.Server to be added or updated
netgate-unbound:server-wrapper | object (netgate.unbound.unboundconfig.daemon.ServerWrapper) |
Object created
Object modified
Internal error
Example URL
The server attributes.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server" 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
Access control specifications.
netgate.unbound.unboundconfig.daemon.server.AccessControl
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/access-control" 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
Access control specifications.
netgate.unbound.unboundconfig.daemon.server.AccessControl to be added to list
access-control | object (netgate.unbound.unboundconfig.daemon.server.AccessControl) |
Object created
Internal error
Object already exists
Example URL
Access control specifications.
netgate.unbound.unboundconfig.daemon.server.AccessControl to be added or updated
netgate-unbound:access-control-wrapper | object (netgate.unbound.unboundconfig.daemon.server.AccessControlWrapper) |
Object created
Object modified
Internal error
Example URL
Access control specifications.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/access-control" 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.unbound.unboundconfig.daemon.server.accesscontrol.Access
netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access to be added to list
access | object (netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access) |
Object created
Internal error
Object already exists
Example URL
returns netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access
ip-prefix required | string Id of access |
netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/access-control/access=%7Bip-prefix%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.unbound.unboundconfig.daemon.server.accesscontrol.Access
ip-prefix required | string Id of access |
netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access to be added or updated
netgate-unbound:access-wrapper | object (netgate.unbound.unboundconfig.daemon.server.accesscontrol.AccessWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access
ip-prefix required | string Id of access |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/access-control/access=%7Bip-prefix%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
Interface binding specifications.
netgate.unbound.unboundconfig.daemon.server.Interfaces
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/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.unbound.unboundconfig.daemon.server.Interfaces to be added to list
interfaces | object (netgate.unbound.unboundconfig.daemon.server.Interfaces) |
Object created
Internal error
Object already exists
Example URL
Interface binding specifications.
netgate.unbound.unboundconfig.daemon.server.Interfaces to be added or updated
netgate-unbound:interfaces-wrapper | object (netgate.unbound.unboundconfig.daemon.server.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-unbound:unbound-config/daemon/server/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.unbound.unboundconfig.daemon.server.interfaces.Interface
netgate.unbound.unboundconfig.daemon.server.interfaces.Interface to be added to list
interface | object (netgate.unbound.unboundconfig.daemon.server.interfaces.Interface) |
Object created
Internal error
Object already exists
Example URL
returns netgate.unbound.unboundconfig.daemon.server.interfaces.Interface
ip-address required | string Id of interface |
netgate.unbound.unboundconfig.daemon.server.interfaces.Interface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/interfaces/interface=%7Bip-address%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.unbound.unboundconfig.daemon.server.interfaces.Interface
ip-address required | string Id of interface |
netgate.unbound.unboundconfig.daemon.server.interfaces.Interface to be added or updated
netgate-unbound:interface-wrapper | object (netgate.unbound.unboundconfig.daemon.server.interfaces.InterfaceWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.unbound.unboundconfig.daemon.server.interfaces.Interface
ip-address required | string Id of interface |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/interfaces/interface=%7Bip-address%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 local-zone attributes.
netgate.unbound.unboundconfig.daemon.server.LocalZones
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones" 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 local-zone attributes.
netgate.unbound.unboundconfig.daemon.server.LocalZones to be added to list
local-zones | object (netgate.unbound.unboundconfig.daemon.server.LocalZones) |
Object created
Internal error
Object already exists
Example URL
The local-zone attributes.
netgate.unbound.unboundconfig.daemon.server.LocalZones to be added or updated
netgate-unbound:local-zones-wrapper | object (netgate.unbound.unboundconfig.daemon.server.LocalZonesWrapper) |
Object created
Object modified
Internal error
Example URL
The local-zone attributes.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones" 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
Each local-zone is identified by a domain name.
netgate.unbound.unboundconfig.daemon.server.localzones.Zone to be added to list
zone | object (netgate.unbound.unboundconfig.daemon.server.localzones.Zone) |
Object created
Internal error
Object already exists
Example URL
Each local-zone is identified by a domain name.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.server.localzones.Zone
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%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
Each local-zone is identified by a domain name.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.server.localzones.Zone to be added or updated
netgate-unbound:zone-wrapper | object (netgate.unbound.unboundconfig.daemon.server.localzones.ZoneWrapper) |
Object created
Object modified
Internal error
Example URL
Each local-zone is identified by a domain name.
zone-name required | string Id of zone |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%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
Local host names within the zone.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%7D/hosts" 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
Local host names within the zone.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts to be added to list
hosts | object (netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts) |
Object created
Internal error
Object already exists
Example URL
Local host names within the zone.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts to be added or updated
netgate-unbound:hosts-wrapper | object (netgate.unbound.unboundconfig.daemon.server.localzones.zone.HostsWrapper) |
Object created
Object modified
Internal error
Example URL
Local host names within the zone.
zone-name required | string Id of zone |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%7D/hosts" 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.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host to be added to list
host | object (netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host) |
Object created
Internal error
Object already exists
Example URL
returns netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host
zone-name required | string Id of zone |
host-name required | string Id of host |
netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%7D/hosts/host=%7Bhost-name%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.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host
zone-name required | string Id of zone |
host-name required | string Id of host |
netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host to be added or updated
netgate-unbound:host-wrapper | object (netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.HostWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host
zone-name required | string Id of zone |
host-name required | string Id of host |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%7D/hosts/host=%7Bhost-name%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 IP addresses of interfaces that should be used for outgoing queries. If more than one IP address is configured, a random interface will be selected from the list.
netgate.unbound.unboundconfig.daemon.server.OutgoingInterfaces
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/outgoing-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
The IP addresses of interfaces that should be used for outgoing queries. If more than one IP address is configured, a random interface will be selected from the list.
netgate.unbound.unboundconfig.daemon.server.OutgoingInterfaces to be added to list
outgoing-interfaces | object (netgate.unbound.unboundconfig.daemon.server.OutgoingInterfaces) |
Object created
Internal error
Object already exists
Example URL
The IP addresses of interfaces that should be used for outgoing queries. If more than one IP address is configured, a random interface will be selected from the list.
netgate.unbound.unboundconfig.daemon.server.OutgoingInterfaces to be added or updated
netgate-unbound:outgoing-interfaces-wrapper | object (netgate.unbound.unboundconfig.daemon.server.OutgoingInterfacesWrapper) |
Object created
Object modified
Internal error
Example URL
The IP addresses of interfaces that should be used for outgoing queries. If more than one IP address is configured, a random interface will be selected from the list.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/outgoing-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
A collection of various Unbound parameters.
netgate.unbound.unboundconfig.Parameters
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/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 Unbound parameters.
netgate.unbound.unboundconfig.Parameters to be added to list
parameters | object (netgate.unbound.unboundconfig.Parameters) |
Object created
Internal error
Object already exists
Example URL
A collection of various Unbound parameters.
netgate.unbound.unboundconfig.Parameters to be added or updated
netgate-unbound:parameters-wrapper | object (netgate.unbound.unboundconfig.ParametersWrapper) |
Object created
Object modified
Internal error
Example URL
A collection of various Unbound parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/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
operates on netgate.unbound.UnboundConfigOperation
input | object (netgate.unbound.unboundconfigoperation.Input) |
Correct response
No response
Internal error
Example URL
operates on netgate.unbound.UnboundControl
input | object (netgate.unbound.unboundcontrol.Input) |
Correct response
No response
Internal error
Example URL
operates on netgate.unbound.UnboundCoredump
input | object (netgate.unbound.unboundcoredump.Input) |
Correct response
No response
Internal error