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)) }