This YANG module provides a data model for SNMP Services.
Copyright 2019-2020 Rubicon Communications, LLC.
Example URL
returns netgate.snmp.SnmpConfig
netgate.snmp.SnmpConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-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
creates netgate.snmp.SnmpConfig
netgate.snmp.SnmpConfig to be added to list
netgate-snmp:snmp-config | object (netgate.snmp.SnmpConfig) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.snmp.SnmpConfig
netgate.snmp.SnmpConfig to be added or updated
netgate-snmp:snmp-config-wrapper | object (netgate.snmp.SnmpConfigWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.snmp.SnmpConfig
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-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
Dataplane-specific parameters of SNMP server.
netgate.snmp.snmpconfig.Dataplane
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/dataplane" 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
Dataplane-specific parameters of SNMP server.
netgate.snmp.snmpconfig.Dataplane to be added to list
dataplane | object (netgate.snmp.snmpconfig.Dataplane) |
Object created
Internal error
Object already exists
Example URL
Dataplane-specific parameters of SNMP server.
netgate.snmp.snmpconfig.Dataplane to be added or updated
netgate-snmp:dataplane-wrapper | object (netgate.snmp.snmpconfig.DataplaneWrapper) |
Object created
Object modified
Internal error
Example URL
Dataplane-specific parameters of SNMP server.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/dataplane" 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.snmp.snmpconfig.SnmpAccessControl
netgate.snmp.snmpconfig.SnmpAccessControl
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-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
creates netgate.snmp.snmpconfig.SnmpAccessControl
netgate.snmp.snmpconfig.SnmpAccessControl to be added to list
snmp-access-control | object (netgate.snmp.snmpconfig.SnmpAccessControl) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.snmp.snmpconfig.SnmpAccessControl
netgate.snmp.snmpconfig.SnmpAccessControl to be added or updated
netgate-snmp:snmp-access-control-wrapper | object (netgate.snmp.snmpconfig.SnmpAccessControlWrapper) |
Object created
Object modified
Internal error