This YANG module provides a data model for SNMP Services.
Copyright 2019-2020 Rubicon Communications, LLC.
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)) }
{- "netgate-snmp:snmp-config": {
- "netgate-snmp:dataplane": {
- "netgate-snmp:enable": true
}, - "netgate-snmp:snmp-enable": false,
- "netgate-snmp:snmp-access-control": {
- "netgate-snmp:view": [
- {
- "netgate-snmp:view-name": "string",
- "netgate-snmp:view-entry": [
- {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
]
}
], - "netgate-snmp:access": [
- {
- "netgate-snmp:group-name": "string",
- "netgate-snmp:access-entry": [
- {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
]
}
], - "netgate-snmp:community-map": [
- {
- "netgate-snmp:community-name": "string",
- "netgate-snmp:map-entry": [
- {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
]
}
], - "netgate-snmp:group": [
- {
- "netgate-snmp:group-entry": [
- {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
], - "netgate-snmp:group-name": "string"
}
]
}
}
}
Simple Network Management Protocol (SNMP) configuration.
netgate.snmp.SnmpConfig to be added to list
object (netgate.snmp.snmpconfig.Dataplane) Dataplane-specific parameters of SNMP server. | |
netgate-snmp:snmp-enable | boolean Default: false Enable the SNMP daemons. |
object (netgate.snmp.snmpconfig.SnmpAccessControl) |
{- "netgate-snmp:dataplane": {
- "netgate-snmp:enable": true
}, - "netgate-snmp:snmp-enable": false,
- "netgate-snmp:snmp-access-control": {
- "netgate-snmp:view": [
- {
- "netgate-snmp:view-name": "string",
- "netgate-snmp:view-entry": [
- {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
]
}
], - "netgate-snmp:access": [
- {
- "netgate-snmp:group-name": "string",
- "netgate-snmp:access-entry": [
- {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
]
}
], - "netgate-snmp:community-map": [
- {
- "netgate-snmp:community-name": "string",
- "netgate-snmp:map-entry": [
- {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
]
}
], - "netgate-snmp:group": [
- {
- "netgate-snmp:group-entry": [
- {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
], - "netgate-snmp:group-name": "string"
}
]
}
}
Simple Network Management Protocol (SNMP) configuration.
netgate.snmp.SnmpConfig to be added or updated
object (netgate.snmp.SnmpConfig) Simple Network Management Protocol (SNMP) configuration. |
{- "netgate-snmp:snmp-config": {
- "netgate-snmp:dataplane": {
- "netgate-snmp:enable": true
}, - "netgate-snmp:snmp-enable": false,
- "netgate-snmp:snmp-access-control": {
- "netgate-snmp:view": [
- {
- "netgate-snmp:view-name": "string",
- "netgate-snmp:view-entry": [
- {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
]
}
], - "netgate-snmp:access": [
- {
- "netgate-snmp:group-name": "string",
- "netgate-snmp:access-entry": [
- {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
]
}
], - "netgate-snmp:community-map": [
- {
- "netgate-snmp:community-name": "string",
- "netgate-snmp:map-entry": [
- {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
]
}
], - "netgate-snmp:group": [
- {
- "netgate-snmp:group-entry": [
- {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
], - "netgate-snmp:group-name": "string"
}
]
}
}
}
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)) }
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)) }
{- "netgate-snmp:dataplane": {
- "netgate-snmp:enable": true
}
}
Dataplane-specific parameters of SNMP server.
netgate.snmp.snmpconfig.Dataplane to be added to list
netgate-snmp:enable | boolean If true, SNMP server is enabled for dataplane interfaces. |
{- "netgate-snmp:enable": true
}
Dataplane-specific parameters of SNMP server.
netgate.snmp.snmpconfig.Dataplane to be added or updated
object (netgate.snmp.snmpconfig.Dataplane) Dataplane-specific parameters of SNMP server. |
{- "netgate-snmp:dataplane": {
- "netgate-snmp:enable": true
}
}
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)) }
returns netgate.snmp.snmpconfig.SnmpAccessControl
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)) }
{- "netgate-snmp:snmp-access-control": {
- "netgate-snmp:view": [
- {
- "netgate-snmp:view-name": "string",
- "netgate-snmp:view-entry": [
- {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
]
}
], - "netgate-snmp:access": [
- {
- "netgate-snmp:group-name": "string",
- "netgate-snmp:access-entry": [
- {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
]
}
], - "netgate-snmp:community-map": [
- {
- "netgate-snmp:community-name": "string",
- "netgate-snmp:map-entry": [
- {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
]
}
], - "netgate-snmp:group": [
- {
- "netgate-snmp:group-entry": [
- {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
], - "netgate-snmp:group-name": "string"
}
]
}
}
creates netgate.snmp.snmpconfig.SnmpAccessControl
netgate.snmp.snmpconfig.SnmpAccessControl to be added to list
Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.View) Defines a subset of the OID tree. | |
Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.Access) Map from group to views. | |
Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.CommunityMap) Map community name from SNMP request to security name. | |
Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.Group) Map security name to group. |
{- "netgate-snmp:view": [
- {
- "netgate-snmp:view-name": "string",
- "netgate-snmp:view-entry": [
- {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
]
}
], - "netgate-snmp:access": [
- {
- "netgate-snmp:group-name": "string",
- "netgate-snmp:access-entry": [
- {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
]
}
], - "netgate-snmp:community-map": [
- {
- "netgate-snmp:community-name": "string",
- "netgate-snmp:map-entry": [
- {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
]
}
], - "netgate-snmp:group": [
- {
- "netgate-snmp:group-entry": [
- {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
], - "netgate-snmp:group-name": "string"
}
]
}
creates or updates netgate.snmp.snmpconfig.SnmpAccessControl
netgate.snmp.snmpconfig.SnmpAccessControl to be added or updated
object (netgate.snmp.snmpconfig.SnmpAccessControl) |
{- "netgate-snmp:snmp-access-control": {
- "netgate-snmp:view": [
- {
- "netgate-snmp:view-name": "string",
- "netgate-snmp:view-entry": [
- {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
]
}
], - "netgate-snmp:access": [
- {
- "netgate-snmp:group-name": "string",
- "netgate-snmp:access-entry": [
- {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
]
}
], - "netgate-snmp:community-map": [
- {
- "netgate-snmp:community-name": "string",
- "netgate-snmp:map-entry": [
- {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
]
}
], - "netgate-snmp:group": [
- {
- "netgate-snmp:group-entry": [
- {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
], - "netgate-snmp:group-name": "string"
}
]
}
}
removes netgate.snmp.snmpconfig.SnmpAccessControl
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("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Map from group to views.
netgate.snmp.snmpconfig.snmpaccesscontrol.Access to be added to list
netgate-snmp:group-name | string |
Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.access.AccessEntry) |
{- "netgate-snmp:group-name": "string",
- "netgate-snmp:access-entry": [
- {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
]
}
Map from group to views.
group-name required | string Id of access |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/access=%7Bgroup-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)) }
{- "netgate-snmp:access": {
- "netgate-snmp:group-name": "string",
- "netgate-snmp:access-entry": [
- {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
]
}
}
Map from group to views.
group-name required | string Id of access |
netgate.snmp.snmpconfig.snmpaccesscontrol.Access to be added or updated
object (netgate.snmp.snmpconfig.snmpaccesscontrol.Access) Map from group to views. |
{- "netgate-snmp:access": {
- "netgate-snmp:group-name": "string",
- "netgate-snmp:access-entry": [
- {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
]
}
}
Map from group to views.
group-name required | string Id of access |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/access=%7Bgroup-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)) }
creates netgate.snmp.snmpconfig.snmpaccesscontrol.access.AccessEntry
group-name required | string Id of access |
netgate.snmp.snmpconfig.snmpaccesscontrol.access.AccessEntry to be added to list
netgate-snmp:security-level | string (netgate.snmp.SnmpSecurityLevel) Value: "noauth" |
netgate-snmp:context | string |
netgate-snmp:read | string View to use for read ops. |
netgate-snmp:write | string View to use for write ops. |
netgate-snmp:security-model | string (netgate.snmp.SnmpSecurityModel) Enum: "any" "v1" "v2c" |
netgate-snmp:prefix | string (netgate.snmp.SnmpContextMatch) Value: "exact" |
{- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
returns netgate.snmp.snmpconfig.snmpaccesscontrol.access.AccessEntry
group-name required | string Id of access |
context required | string Id of access-entry |
prefix required | string Id of access-entry |
security-model required | string Id of access-entry |
security-level required | string Id of access-entry |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/access=%7Bgroup-name%7D/access-entry=%7Bcontext%7D,%7Bprefix%7D,%7Bsecurity-model%7D,%7Bsecurity-level%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)) }
{- "netgate-snmp:access-entry": {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
}
creates or updates netgate.snmp.snmpconfig.snmpaccesscontrol.access.AccessEntry
group-name required | string Id of access |
context required | string Id of access-entry |
prefix required | string Id of access-entry |
security-model required | string Id of access-entry |
security-level required | string Id of access-entry |
netgate.snmp.snmpconfig.snmpaccesscontrol.access.AccessEntry to be added or updated
object (netgate.snmp.snmpconfig.snmpaccesscontrol.access.AccessEntry) |
{- "netgate-snmp:access-entry": {
- "netgate-snmp:security-level": "noauth",
- "netgate-snmp:context": "string",
- "netgate-snmp:read": "string",
- "netgate-snmp:write": "string",
- "netgate-snmp:security-model": "any",
- "netgate-snmp:prefix": "exact"
}
}
removes netgate.snmp.snmpconfig.snmpaccesscontrol.access.AccessEntry
group-name required | string Id of access |
context required | string Id of access-entry |
prefix required | string Id of access-entry |
security-model required | string Id of access-entry |
security-level required | string Id of access-entry |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/access=%7Bgroup-name%7D/access-entry=%7Bcontext%7D,%7Bprefix%7D,%7Bsecurity-model%7D,%7Bsecurity-level%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)) }
Map community name from SNMP request to security name.
netgate.snmp.snmpconfig.snmpaccesscontrol.CommunityMap to be added to list
netgate-snmp:community-name | string Community name. |
Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.communitymap.MapEntry) |
{- "netgate-snmp:community-name": "string",
- "netgate-snmp:map-entry": [
- {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
]
}
Map community name from SNMP request to security name.
community-name required | string Id of community-map |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/community-map=%7Bcommunity-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)) }
{- "netgate-snmp:community-map": {
- "netgate-snmp:community-name": "string",
- "netgate-snmp:map-entry": [
- {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
]
}
}
Map community name from SNMP request to security name.
community-name required | string Id of community-map |
netgate.snmp.snmpconfig.snmpaccesscontrol.CommunityMap to be added or updated
object (netgate.snmp.snmpconfig.snmpaccesscontrol.CommunityMap) Map community name from SNMP request to security name. |
{- "netgate-snmp:community-map": {
- "netgate-snmp:community-name": "string",
- "netgate-snmp:map-entry": [
- {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
]
}
}
Map community name from SNMP request to security name.
community-name required | string Id of community-map |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/community-map=%7Bcommunity-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)) }
creates netgate.snmp.snmpconfig.snmpaccesscontrol.communitymap.MapEntry
community-name required | string Id of community-map |
netgate.snmp.snmpconfig.snmpaccesscontrol.communitymap.MapEntry to be added to list
netgate-snmp:context | string SNMPv3 context. |
netgate-snmp:security-name | string Security name. |
netgate-snmp:source | string Host name or IP address for source host. |
{- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
returns netgate.snmp.snmpconfig.snmpaccesscontrol.communitymap.MapEntry
community-name required | string Id of community-map |
context required | string Id of map-entry |
source required | string Id of map-entry |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/community-map=%7Bcommunity-name%7D/map-entry=%7Bcontext%7D,%7Bsource%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)) }
{- "netgate-snmp:map-entry": {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
}
creates or updates netgate.snmp.snmpconfig.snmpaccesscontrol.communitymap.MapEntry
community-name required | string Id of community-map |
context required | string Id of map-entry |
source required | string Id of map-entry |
netgate.snmp.snmpconfig.snmpaccesscontrol.communitymap.MapEntry to be added or updated
object (netgate.snmp.snmpconfig.snmpaccesscontrol.communitymap.MapEntry) |
{- "netgate-snmp:map-entry": {
- "netgate-snmp:context": "string",
- "netgate-snmp:security-name": "string",
- "netgate-snmp:source": "string"
}
}
removes netgate.snmp.snmpconfig.snmpaccesscontrol.communitymap.MapEntry
community-name required | string Id of community-map |
context required | string Id of map-entry |
source required | string Id of map-entry |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/community-map=%7Bcommunity-name%7D/map-entry=%7Bcontext%7D,%7Bsource%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)) }
Map security name to group.
netgate.snmp.snmpconfig.snmpaccesscontrol.Group to be added to list
Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.group.GroupEntry) | |
netgate-snmp:group-name | string |
{- "netgate-snmp:group-entry": [
- {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
], - "netgate-snmp:group-name": "string"
}
Map security name to group.
group-name required | string Id of group |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/group=%7Bgroup-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)) }
{- "netgate-snmp:group": {
- "netgate-snmp:group-entry": [
- {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
], - "netgate-snmp:group-name": "string"
}
}
Map security name to group.
group-name required | string Id of group |
netgate.snmp.snmpconfig.snmpaccesscontrol.Group to be added or updated
object (netgate.snmp.snmpconfig.snmpaccesscontrol.Group) Map security name to group. |
{- "netgate-snmp:group": {
- "netgate-snmp:group-entry": [
- {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
], - "netgate-snmp:group-name": "string"
}
}
Map security name to group.
group-name required | string Id of group |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/group=%7Bgroup-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)) }
creates netgate.snmp.snmpconfig.snmpaccesscontrol.group.GroupEntry
group-name required | string Id of group |
netgate.snmp.snmpconfig.snmpaccesscontrol.group.GroupEntry to be added to list
netgate-snmp:security-model | string (netgate.snmp.SnmpSecurityModel) Enum: "any" "v1" "v2c" |
netgate-snmp:security-name | string |
{- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
returns netgate.snmp.snmpconfig.snmpaccesscontrol.group.GroupEntry
group-name required | string Id of group |
security-name required | string Id of group-entry |
security-model required | string Id of group-entry |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/group=%7Bgroup-name%7D/group-entry=%7Bsecurity-name%7D,%7Bsecurity-model%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)) }
{- "netgate-snmp:group-entry": {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
}
creates or updates netgate.snmp.snmpconfig.snmpaccesscontrol.group.GroupEntry
group-name required | string Id of group |
security-name required | string Id of group-entry |
security-model required | string Id of group-entry |
netgate.snmp.snmpconfig.snmpaccesscontrol.group.GroupEntry to be added or updated
object (netgate.snmp.snmpconfig.snmpaccesscontrol.group.GroupEntry) |
{- "netgate-snmp:group-entry": {
- "netgate-snmp:security-model": "any",
- "netgate-snmp:security-name": "string"
}
}
removes netgate.snmp.snmpconfig.snmpaccesscontrol.group.GroupEntry
group-name required | string Id of group |
security-name required | string Id of group-entry |
security-model required | string Id of group-entry |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/group=%7Bgroup-name%7D/group-entry=%7Bsecurity-name%7D,%7Bsecurity-model%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)) }
Defines a subset of the OID tree.
netgate.snmp.snmpconfig.snmpaccesscontrol.View to be added to list
netgate-snmp:view-name | string |
Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.view.ViewEntry) |
{- "netgate-snmp:view-name": "string",
- "netgate-snmp:view-entry": [
- {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
]
}
Defines a subset of the OID tree.
view-name required | string Id of view |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/view=%7Bview-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)) }
{- "netgate-snmp:view": {
- "netgate-snmp:view-name": "string",
- "netgate-snmp:view-entry": [
- {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
]
}
}
Defines a subset of the OID tree.
view-name required | string Id of view |
netgate.snmp.snmpconfig.snmpaccesscontrol.View to be added or updated
object (netgate.snmp.snmpconfig.snmpaccesscontrol.View) Defines a subset of the OID tree. |
{- "netgate-snmp:view": {
- "netgate-snmp:view-name": "string",
- "netgate-snmp:view-entry": [
- {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
]
}
}
Defines a subset of the OID tree.
view-name required | string Id of view |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/view=%7Bview-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)) }
creates netgate.snmp.snmpconfig.snmpaccesscontrol.view.ViewEntry
view-name required | string Id of view |
netgate.snmp.snmpconfig.snmpaccesscontrol.view.ViewEntry to be added to list
netgate-snmp:type | string (netgate.snmp.SnmpViewType) Enum: "included" "excluded" |
netgate-snmp:oid | string SNMP OID. |
netgate-snmp:mask | string |
{- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
returns netgate.snmp.snmpconfig.snmpaccesscontrol.view.ViewEntry
view-name required | string Id of view |
type required | string Id of view-entry |
oid required | string Id of view-entry |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/view=%7Bview-name%7D/view-entry=%7Btype%7D,%7Boid%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)) }
{- "netgate-snmp:view-entry": {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
}
creates or updates netgate.snmp.snmpconfig.snmpaccesscontrol.view.ViewEntry
view-name required | string Id of view |
type required | string Id of view-entry |
oid required | string Id of view-entry |
netgate.snmp.snmpconfig.snmpaccesscontrol.view.ViewEntry to be added or updated
object (netgate.snmp.snmpconfig.snmpaccesscontrol.view.ViewEntry) |
{- "netgate-snmp:view-entry": {
- "netgate-snmp:type": "included",
- "netgate-snmp:oid": "string",
- "netgate-snmp:mask": "string"
}
}
removes netgate.snmp.snmpconfig.snmpaccesscontrol.view.ViewEntry
view-name required | string Id of view |
type required | string Id of view-entry |
oid required | string Id of view-entry |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/snmp-access-control/view=%7Bview-name%7D/view-entry=%7Btype%7D,%7Boid%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)) }
operates on netgate.snmp.SnmpControl
object (netgate.snmp.snmpcontrol.Input) |
{- "input": {
- "netgate-snmp:namespace": "host",
- "netgate-snmp:operation": "start"
}
}
{- "output": {
- "netgate-snmp:stdout": "string"
}
}
operates on netgate.snmp.SnmpCoredump
object (netgate.snmp.snmpcoredump.Input) |
{- "input": {
- "netgate-snmp:namespace": "host",
- "netgate-snmp:operation": "enable"
}
}
{- "output": {
- "netgate-snmp:stdout": "string"
}
}