This YANG module provides a data model for host ACL data.
Copyright 2019-2020 Rubicon Communications, LLC.
Example URL
Host configuration parameters.
netgate.host.acl.HostConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-acl:host-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
Host configuration parameters.
netgate.host.acl.HostConfig to be added to list
netgate-host-acl:host-config | object (netgate.host.acl.HostConfig) |
Object created
Internal error
Object already exists
Example URL
Host configuration parameters.
netgate.host.acl.HostConfig to be added or updated
netgate-host-acl:host-config-wrapper | object (netgate.host.acl.HostConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Host configuration parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-acl:host-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
Host security configuration parameters.
netgate.host.acl.hostconfig.Security
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-acl:host-config/security" 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
Host security configuration parameters.
netgate.host.acl.hostconfig.Security to be added to list
security | object (netgate.host.acl.hostconfig.Security) |
Object created
Internal error
Object already exists
Example URL
Host security configuration parameters.
netgate.host.acl.hostconfig.Security to be added or updated
netgate-host-acl:security-wrapper | object (netgate.host.acl.hostconfig.SecurityWrapper) |
Object created
Object modified
Internal error