This YANG module provides a Netgate-defined data-model for Network Address Translation data.
Copyright 2017-2020 Rubicon Communications, LLC.
Example URL
Network Address Translation (NAT) data needed to support VPP.
netgate.nat.NatConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-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
Network Address Translation (NAT) data needed to support VPP.
netgate.nat.NatConfig to be added to list
netgate-nat:nat-config | object (netgate.nat.NatConfig) |
Object created
Internal error
Object already exists
Example URL
Network Address Translation (NAT) data needed to support VPP.
netgate.nat.NatConfig to be added or updated
netgate-nat:nat-config-wrapper | object (netgate.nat.NatConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Network Address Translation (NAT) data needed to support VPP.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-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
Dynamic mapping information.
netgate.nat.natconfig.Dynamic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic" 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
Dynamic mapping information.
netgate.nat.natconfig.Dynamic to be added to list
dynamic | object (netgate.nat.natconfig.Dynamic) |
Object created
Internal error
Object already exists
Example URL
Dynamic mapping information.
netgate.nat.natconfig.Dynamic to be added or updated
netgate-nat:dynamic-wrapper | object (netgate.nat.natconfig.DynamicWrapper) |
Object created
Object modified
Internal error
Example URL
Dynamic mapping information.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic" 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
NAT interface pool table.
netgate.nat.natconfig.dynamic.PoolIfTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic/pool-if-table" 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
NAT interface pool table.
netgate.nat.natconfig.dynamic.PoolIfTable to be added to list
pool-if-table | object (netgate.nat.natconfig.dynamic.PoolIfTable) |
Object created
Internal error
Object already exists
Example URL
NAT interface pool table.
netgate.nat.natconfig.dynamic.PoolIfTable to be added or updated
netgate-nat:pool-if-table-wrapper | object (netgate.nat.natconfig.dynamic.PoolIfTableWrapper) |
Object created
Object modified
Internal error
Example URL
NAT interface pool table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic/pool-if-table" 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
Dynamic pool interface entries.
netgate.nat.natconfig.dynamic.pooliftable.IfEntry to be added to list
if-entry | object (netgate.nat.natconfig.dynamic.pooliftable.IfEntry) |
Object created
Internal error
Object already exists
Example URL
Dynamic pool interface entries.
if-name required | string Id of if-entry |
netgate.nat.natconfig.dynamic.pooliftable.IfEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic/pool-if-table/if-entry=%7Bif-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
Dynamic pool interface entries.
if-name required | string Id of if-entry |
netgate.nat.natconfig.dynamic.pooliftable.IfEntry to be added or updated
netgate-nat:if-entry-wrapper | object (netgate.nat.natconfig.dynamic.pooliftable.IfEntryWrapper) |
Object created
Object modified
Internal error
Example URL
Dynamic pool interface entries.
if-name required | string Id of if-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic/pool-if-table/if-entry=%7Bif-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
NAT address pool table.
netgate.nat.natconfig.dynamic.PoolTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic/pool-table" 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
NAT address pool table.
netgate.nat.natconfig.dynamic.PoolTable to be added to list
pool-table | object (netgate.nat.natconfig.dynamic.PoolTable) |
Object created
Internal error
Object already exists
Example URL
NAT address pool table.
netgate.nat.natconfig.dynamic.PoolTable to be added or updated
netgate-nat:pool-table-wrapper | object (netgate.nat.natconfig.dynamic.PoolTableWrapper) |
Object created
Object modified
Internal error
Example URL
NAT address pool table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic/pool-table" 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
NAT address range entry.
netgate.nat.natconfig.dynamic.pooltable.PoolEntry to be added to list
pool-entry | object (netgate.nat.natconfig.dynamic.pooltable.PoolEntry) |
Object created
Internal error
Object already exists
Example URL
NAT address range entry.
first-address required | string Id of pool-entry |
netgate.nat.natconfig.dynamic.pooltable.PoolEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic/pool-table/pool-entry=%7Bfirst-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
NAT address range entry.
first-address required | string Id of pool-entry |
netgate.nat.natconfig.dynamic.pooltable.PoolEntry to be added or updated
netgate-nat:pool-entry-wrapper | object (netgate.nat.natconfig.dynamic.pooltable.PoolEntryWrapper) |
Object created
Object modified
Internal error
Example URL
NAT address range entry.
first-address required | string Id of pool-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic/pool-table/pool-entry=%7Bfirst-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
NAT global options
netgate.nat.natconfig.GlobalOptions
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/global-options" 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
NAT global options
netgate.nat.natconfig.GlobalOptions to be added to list
global-options | object (netgate.nat.natconfig.GlobalOptions) |
Object created
Internal error
Object already exists
Example URL
NAT global options
netgate.nat.natconfig.GlobalOptions to be added or updated
netgate-nat:global-options-wrapper | object (netgate.nat.natconfig.GlobalOptionsWrapper) |
Object created
Object modified
Internal error
Example URL
NAT global options
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/global-options" 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
NAT44 options
netgate.nat.natconfig.globaloptions.Nat44
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/global-options/nat44" 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
NAT44 options
netgate.nat.natconfig.globaloptions.Nat44 to be added to list
nat44 | object (netgate.nat.natconfig.globaloptions.Nat44) |
Object created
Internal error
Object already exists
Example URL
NAT44 options
netgate.nat.natconfig.globaloptions.Nat44 to be added or updated
netgate-nat:nat44-wrapper | object (netgate.nat.natconfig.globaloptions.Nat44Wrapper) |
Object created
Object modified
Internal error
Example URL
NAT44 options
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/global-options/nat44" 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
NAT global timeouts
netgate.nat.natconfig.globaloptions.Timeouts
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/global-options/timeouts" 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
NAT global timeouts
netgate.nat.natconfig.globaloptions.Timeouts to be added to list
timeouts | object (netgate.nat.natconfig.globaloptions.Timeouts) |
Object created
Internal error
Object already exists
Example URL
NAT global timeouts
netgate.nat.natconfig.globaloptions.Timeouts to be added or updated
netgate-nat:timeouts-wrapper | object (netgate.nat.natconfig.globaloptions.TimeoutsWrapper) |
Object created
Object modified
Internal error
Example URL
NAT global timeouts
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/global-options/timeouts" 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
IPFIX information.
netgate.nat.natconfig.Ipfix
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/ipfix" 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
IPFIX information.
netgate.nat.natconfig.Ipfix to be added to list
ipfix | object (netgate.nat.natconfig.Ipfix) |
Object created
Internal error
Object already exists
Example URL
IPFIX information.
netgate.nat.natconfig.Ipfix to be added or updated
netgate-nat:ipfix-wrapper | object (netgate.nat.natconfig.IpfixWrapper) |
Object created
Object modified
Internal error
Example URL
IPFIX information.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/ipfix" 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
IPFIX logging information.
netgate.nat.natconfig.ipfix.Logging
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/ipfix/logging" 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
IPFIX logging information.
netgate.nat.natconfig.ipfix.Logging to be added to list
logging | object (netgate.nat.natconfig.ipfix.Logging) |
Object created
Internal error
Object already exists
Example URL
IPFIX logging information.
netgate.nat.natconfig.ipfix.Logging to be added or updated
netgate-nat:logging-wrapper | object (netgate.nat.natconfig.ipfix.LoggingWrapper) |
Object created
Object modified
Internal error
Example URL
IPFIX logging information.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/ipfix/logging" 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
NAT for IPv6/IPv4.
netgate.nat.natconfig.Nat64
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/nat64" 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
NAT for IPv6/IPv4.
netgate.nat.natconfig.Nat64 to be added to list
nat64 | object (netgate.nat.natconfig.Nat64) |
Object created
Internal error
Object already exists
Example URL
NAT for IPv6/IPv4.
netgate.nat.natconfig.Nat64 to be added or updated
netgate-nat:nat64-wrapper | object (netgate.nat.natconfig.Nat64Wrapper) |
Object created
Object modified
Internal error
Example URL
NAT for IPv6/IPv4.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/nat64" 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
Static mapping information.
netgate.nat.natconfig.Static
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/static" 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
Static mapping information.
netgate.nat.natconfig.Static to be added to list
static | object (netgate.nat.natconfig.Static) |
Object created
Internal error
Object already exists
Example URL
Static mapping information.
netgate.nat.natconfig.Static to be added or updated
netgate-nat:static-wrapper | object (netgate.nat.natconfig.StaticWrapper) |
Object created
Object modified
Internal error
Example URL
Static mapping information.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/static" 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
NAT mapping table.
netgate.nat.natconfig.static.MappingTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/static/mapping-table" 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
NAT mapping table.
netgate.nat.natconfig.static.MappingTable to be added to list
mapping-table | object (netgate.nat.natconfig.static.MappingTable) |
Object created
Internal error
Object already exists
Example URL
NAT mapping table.
netgate.nat.natconfig.static.MappingTable to be added or updated
netgate-nat:mapping-table-wrapper | object (netgate.nat.natconfig.static.MappingTableWrapper) |
Object created
Object modified
Internal error
Example URL
NAT mapping table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/static/mapping-table" 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
NAT Mapping Entry.
netgate.nat.natconfig.static.mappingtable.MappingEntry to be added to list
mapping-entry | object (netgate.nat.natconfig.static.mappingtable.MappingEntry) |
Object created
Internal error
Object already exists
Example URL
NAT Mapping Entry.
transport-protocol required | string Id of mapping-entry |
local-address required | string Id of mapping-entry |
local-port required | string Id of mapping-entry |
external-address required | string Id of mapping-entry |
external-port required | string Id of mapping-entry |
route-table-name required | string Id of mapping-entry |
netgate.nat.natconfig.static.mappingtable.MappingEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/static/mapping-table/mapping-entry=%7Btransport-protocol%7D,%7Blocal-address%7D,%7Blocal-port%7D,%7Bexternal-address%7D,%7Bexternal-port%7D,%7Broute-table-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
NAT Mapping Entry.
transport-protocol required | string Id of mapping-entry |
local-address required | string Id of mapping-entry |
local-port required | string Id of mapping-entry |
external-address required | string Id of mapping-entry |
external-port required | string Id of mapping-entry |
route-table-name required | string Id of mapping-entry |
netgate.nat.natconfig.static.mappingtable.MappingEntry to be added or updated
netgate-nat:mapping-entry-wrapper | object (netgate.nat.natconfig.static.mappingtable.MappingEntryWrapper) |
Object created
Object modified
Internal error
Example URL
NAT Mapping Entry.
transport-protocol required | string Id of mapping-entry |
local-address required | string Id of mapping-entry |
local-port required | string Id of mapping-entry |
external-address required | string Id of mapping-entry |
external-port required | string Id of mapping-entry |
route-table-name required | string Id of mapping-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/static/mapping-table/mapping-entry=%7Btransport-protocol%7D,%7Blocal-address%7D,%7Blocal-port%7D,%7Bexternal-address%7D,%7Bexternal-port%7D,%7Broute-table-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
Network Address Translation (NAT) state data.
netgate.nat.NatState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state" 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
Dynamic mapping information.
netgate.nat.natstate.Dynamic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/dynamic" 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
NAT interface pool table.
netgate.nat.natstate.dynamic.PoolIfTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/dynamic/pool-if-table" 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
Dynamic pool interface entries.
if-name required | string Id of if-entry |
netgate.nat.natstate.dynamic.pooliftable.IfEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/dynamic/pool-if-table/if-entry=%7Bif-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
NAT address pool table.
netgate.nat.natstate.dynamic.PoolTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/dynamic/pool-table" 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
NAT pool address.
address required | string Id of pool-entry |
netgate.nat.natstate.dynamic.pooltable.PoolEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/dynamic/pool-table/pool-entry=%7Baddress%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
Side information for each interface.
netgate.nat.natstate.InterfaceSides
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/interface-sides" 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
Side information about interfaces.
if-name required | string Id of interface-side |
netgate.nat.natstate.interfacesides.InterfaceSide
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/interface-sides/interface-side=%7Bif-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
NAT for IPv6/IPv4.
netgate.nat.natstate.Nat64
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/nat64" 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
NAT configuration parameters.
netgate.nat.natstate.Parameters
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/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
Static mapping information.
netgate.nat.natstate.Static
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/static" 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
NAT mapping table.
netgate.nat.natstate.static.MappingTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/static/mapping-table" 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
NAT Mapping Entry.
transport-protocol required | string Id of mapping-entry |
local-address required | string Id of mapping-entry |
local-port required | string Id of mapping-entry |
external-address required | string Id of mapping-entry |
external-port required | string Id of mapping-entry |
route-table-name required | string Id of mapping-entry |
netgate.nat.natstate.static.mappingtable.MappingEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/static/mapping-table/mapping-entry=%7Btransport-protocol%7D,%7Blocal-address%7D,%7Blocal-port%7D,%7Bexternal-address%7D,%7Bexternal-port%7D,%7Broute-table-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
NAT users.
netgate.nat.natstate.Users
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/users" 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
NAT user.
route-table required | string Id of user |
ip-address required | string Id of user |
netgate.nat.natstate.users.User
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/users/user=%7Broute-table%7D,%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
NAT user session.
route-table required | string Id of user |
ip-address required | string Id of user |
index required | integer <int64> Id of session |
netgate.nat.natstate.users.user.Session
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/users/user=%7Broute-table%7D,%7Bip-address%7D/session=%7Bindex%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)) }