This YANG module provides a Netgate-defined data-model for SYSTEM data.
Copyright 2018-2024 Rubicon Communications, LLC.
Example URL
System group configuration.
netgate.system.System
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system" 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
System group configuration.
netgate.system.System to be added to list
netgate-system:system | object (netgate.system.System) |
Object created
Internal error
Object already exists
Example URL
System group configuration.
netgate.system.System to be added or updated
netgate-system:system-wrapper | object (netgate.system.SystemWrapper) |
Object created
Object modified
Internal error
Example URL
System group configuration.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system" 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.system.system.Auth
netgate.system.system.Auth
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth" 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.system.system.Auth
netgate.system.system.Auth to be added to list
auth | object (netgate.system.system.Auth) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.system.system.Auth
netgate.system.system.Auth to be added or updated
netgate-system:auth-wrapper | object (netgate.system.system.AuthWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.system.system.Auth
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth" 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.system.system.auth.AuthenticationMethods
netgate.system.system.auth.AuthenticationMethods
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/authentication-methods" 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.system.system.auth.AuthenticationMethods
netgate.system.system.auth.AuthenticationMethods to be added to list
authentication-methods | object (netgate.system.system.auth.AuthenticationMethods) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.system.system.auth.AuthenticationMethods
netgate.system.system.auth.AuthenticationMethods to be added or updated
netgate-system:authentication-methods-wrapper | object (netgate.system.system.auth.AuthenticationMethodsWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.system.system.auth.AuthenticationMethods
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/authentication-methods" 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
LDAP server-group to use.
netgate.system.system.auth.authenticationmethods.Ldap
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/authentication-methods/ldap" 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
LDAP server-group to use.
netgate.system.system.auth.authenticationmethods.Ldap to be added to list
ldap | object (netgate.system.system.auth.authenticationmethods.Ldap) |
Object created
Internal error
Object already exists
Example URL
LDAP server-group to use.
netgate.system.system.auth.authenticationmethods.Ldap to be added or updated
netgate-system:ldap-wrapper | object (netgate.system.system.auth.authenticationmethods.LdapWrapper) |
Object created
Object modified
Internal error
Example URL
LDAP server-group to use.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/authentication-methods/ldap" 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
Radius server-group to use.
netgate.system.system.auth.authenticationmethods.Radius
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/authentication-methods/radius" 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
Radius server-group to use.
netgate.system.system.auth.authenticationmethods.Radius to be added to list
radius | object (netgate.system.system.auth.authenticationmethods.Radius) |
Object created
Internal error
Object already exists
Example URL
Radius server-group to use.
netgate.system.system.auth.authenticationmethods.Radius to be added or updated
netgate-system:radius-wrapper | object (netgate.system.system.auth.authenticationmethods.RadiusWrapper) |
Object created
Object modified
Internal error
Example URL
Radius server-group to use.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/authentication-methods/radius" 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
Server groups to use for authentication methods.
netgate.system.system.auth.ServerGroups
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/server-groups" 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
Server groups to use for authentication methods.
netgate.system.system.auth.ServerGroups to be added to list
server-groups | object (netgate.system.system.auth.ServerGroups) |
Object created
Internal error
Object already exists
Example URL
Server groups to use for authentication methods.
netgate.system.system.auth.ServerGroups to be added or updated
netgate-system:server-groups-wrapper | object (netgate.system.system.auth.ServerGroupsWrapper) |
Object created
Object modified
Internal error
Example URL
Server groups to use for authentication methods.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/server-groups" 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
creates netgate.system.system.auth.servergroups.ServerGroup
netgate.system.system.auth.servergroups.ServerGroup to be added to list
server-group | object (netgate.system.system.auth.servergroups.ServerGroup) |
Object created
Internal error
Object already exists
Example URL
returns netgate.system.system.auth.servergroups.ServerGroup
name required | string Id of server-group |
netgate.system.system.auth.servergroups.ServerGroup
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/server-groups/server-group=%7Bname%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
creates or updates netgate.system.system.auth.servergroups.ServerGroup
name required | string Id of server-group |
netgate.system.system.auth.servergroups.ServerGroup to be added or updated
netgate-system:server-group-wrapper | object (netgate.system.system.auth.servergroups.ServerGroupWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.system.system.auth.servergroups.ServerGroup
name required | string Id of server-group |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/server-groups/server-group=%7Bname%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
Servers in this group.
name required | string Id of server-group |
netgate.system.system.auth.servergroups.servergroup.Servers
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/server-groups/server-group=%7Bname%7D/servers" 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
Servers in this group.
name required | string Id of server-group |
netgate.system.system.auth.servergroups.servergroup.Servers to be added to list
servers | object (netgate.system.system.auth.servergroups.servergroup.Servers) |
Object created
Internal error
Object already exists
Example URL
Servers in this group.
name required | string Id of server-group |
netgate.system.system.auth.servergroups.servergroup.Servers to be added or updated
netgate-system:servers-wrapper | object (netgate.system.system.auth.servergroups.servergroup.ServersWrapper) |
Object created
Object modified
Internal error
Example URL
Servers in this group.
name required | string Id of server-group |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/server-groups/server-group=%7Bname%7D/servers" 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
Configured auth server of the type used by this group.
name required | string Id of server-group |
netgate.system.system.auth.servergroups.servergroup.servers.serverlisttype.subset.Server to be added to list
server | object (netgate.system.system.auth.servergroups.servergroup.servers.serverlisttype.subset.Server) |
Object created
Internal error
Object already exists
Example URL
Configured auth server of the type used by this group.
name required | string Id of server-group |
priority required | integer <int32> Id of server |
netgate.system.system.auth.servergroups.servergroup.servers.serverlisttype.subset.Server
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/server-groups/server-group=%7Bname%7D/servers/server=%7Bpriority%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
Configured auth server of the type used by this group.
name required | string Id of server-group |
priority required | integer <int32> Id of server |
netgate.system.system.auth.servergroups.servergroup.servers.serverlisttype.subset.Server to be added or updated
netgate-system:server-wrapper | object (netgate.system.system.auth.servergroups.servergroup.servers.serverlisttype.subset.ServerWrapper) |
Object created
Object modified
Internal error
Example URL
Configured auth server of the type used by this group.
name required | string Id of server-group |
priority required | integer <int32> Id of server |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/server-groups/server-group=%7Bname%7D/servers/server=%7Bpriority%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
allowed users of the system
netgate.system.system.auth.User to be added to list
user | object (netgate.system.system.auth.User) |
Object created
Internal error
Object already exists
Example URL
allowed users of the system
user-name required | string Id of user |
netgate.system.system.auth.User
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/user=%7Buser-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
allowed users of the system
user-name required | string Id of user |
netgate.system.system.auth.User to be added or updated
netgate-system:user-wrapper | object (netgate.system.system.auth.UserWrapper) |
Object created
Object modified
Internal error
Example URL
allowed users of the system
user-name required | string Id of user |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/user=%7Buser-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
A list of user's public keys.
user-name required | string Id of user |
netgate.system.system.auth.user.UserKeys to be added to list
user-keys | object (netgate.system.system.auth.user.UserKeys) |
Object created
Internal error
Object already exists
Example URL
A list of user's public keys.
user-name required | string Id of user |
key-name required | string Id of user-keys |
netgate.system.system.auth.user.UserKeys
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/user=%7Buser-name%7D/user-keys=%7Bkey-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
A list of user's public keys.
user-name required | string Id of user |
key-name required | string Id of user-keys |
netgate.system.system.auth.user.UserKeys to be added or updated
netgate-system:user-keys-wrapper | object (netgate.system.system.auth.user.UserKeysWrapper) |
Object created
Object modified
Internal error
Example URL
A list of user's public keys.
user-name required | string Id of user |
key-name required | string Id of user-keys |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/auth/user=%7Buser-name%7D/user-keys=%7Bkey-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
Configuration of the DNS resolver.
netgate.system.system.DnsResolver to be added to list
dns-resolver | object (netgate.system.system.DnsResolver) |
Object created
Internal error
Object already exists
Example URL
Configuration of the DNS resolver.
namespace required | string Id of dns-resolver |
netgate.system.system.DnsResolver
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/dns-resolver=%7Bnamespace%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
Configuration of the DNS resolver.
namespace required | string Id of dns-resolver |
netgate.system.system.DnsResolver to be added or updated
netgate-system:dns-resolver-wrapper | object (netgate.system.system.DnsResolverWrapper) |
Object created
Object modified
Internal error
Example URL
Configuration of the DNS resolver.
namespace required | string Id of dns-resolver |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/dns-resolver=%7Bnamespace%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
List of the DNS servers that the resolver should query.
When the resolver is invoked by a calling application, it
sends the query to the first name server in this list. If
no response has been received within 'timeout' seconds,
the resolver continues with the next server in the list.
If no response is received from any server, the resolver
continues with the first server again. When the resolver
has traversed the list 'attempts' times without receiving
any response, it gives up and returns an error to the
calling application.
Implementations MAY limit the number of entries in this
list.
namespace required | string Id of dns-resolver |
netgate.system.system.dnsresolver.Server to be added to list
server | object (netgate.system.system.dnsresolver.Server) |
Object created
Internal error
Object already exists
Example URL
List of the DNS servers that the resolver should query.
When the resolver is invoked by a calling application, it
sends the query to the first name server in this list. If
no response has been received within 'timeout' seconds,
the resolver continues with the next server in the list.
If no response is received from any server, the resolver
continues with the first server again. When the resolver
has traversed the list 'attempts' times without receiving
any response, it gives up and returns an error to the
calling application.
Implementations MAY limit the number of entries in this
list.
namespace required | string Id of dns-resolver |
name required | string Id of server |
netgate.system.system.dnsresolver.Server
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/dns-resolver=%7Bnamespace%7D/server=%7Bname%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
List of the DNS servers that the resolver should query.
When the resolver is invoked by a calling application, it
sends the query to the first name server in this list. If
no response has been received within 'timeout' seconds,
the resolver continues with the next server in the list.
If no response is received from any server, the resolver
continues with the first server again. When the resolver
has traversed the list 'attempts' times without receiving
any response, it gives up and returns an error to the
calling application.
Implementations MAY limit the number of entries in this
list.
namespace required | string Id of dns-resolver |
name required | string Id of server |
netgate.system.system.dnsresolver.Server to be added or updated
netgate-system:server-wrapper | object (netgate.system.system.dnsresolver.ServerWrapper) |
Object created
Object modified
Internal error
Example URL
List of the DNS servers that the resolver should query.
When the resolver is invoked by a calling application, it
sends the query to the first name server in this list. If
no response has been received within 'timeout' seconds,
the resolver continues with the next server in the list.
If no response is received from any server, the resolver
continues with the first server again. When the resolver
has traversed the list 'attempts' times without receiving
any response, it gives up and returns an error to the
calling application.
Implementations MAY limit the number of entries in this
list.
namespace required | string Id of dns-resolver |
name required | string Id of server |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/dns-resolver=%7Bnamespace%7D/server=%7Bname%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
Contains UDP- and TCP-specific configuration parameters for DNS.
namespace required | string Id of dns-resolver |
name required | string Id of server |
netgate.system.system.dnsresolver.server.transport.udpandtcp.UdpAndTcp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/dns-resolver=%7Bnamespace%7D/server=%7Bname%7D/udp-and-tcp" 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
Contains UDP- and TCP-specific configuration parameters for DNS.
namespace required | string Id of dns-resolver |
name required | string Id of server |
netgate.system.system.dnsresolver.server.transport.udpandtcp.UdpAndTcp to be added to list
udp-and-tcp | object (netgate.system.system.dnsresolver.server.transport.udpandtcp.UdpAndTcp) |
Object created
Internal error
Object already exists
Example URL
Contains UDP- and TCP-specific configuration parameters for DNS.
namespace required | string Id of dns-resolver |
name required | string Id of server |
netgate.system.system.dnsresolver.server.transport.udpandtcp.UdpAndTcp to be added or updated
netgate-system:udp-and-tcp-wrapper | object (netgate.system.system.dnsresolver.server.transport.udpandtcp.UdpAndTcpWrapper) |
Object created
Object modified
Internal error
Example URL
Contains UDP- and TCP-specific configuration parameters for DNS.
namespace required | string Id of dns-resolver |
name required | string Id of server |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/dns-resolver=%7Bnamespace%7D/server=%7Bname%7D/udp-and-tcp" 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.system.system.Kernel
netgate.system.system.Kernel
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/kernel" 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.system.system.Kernel
netgate.system.system.Kernel to be added to list
kernel | object (netgate.system.system.Kernel) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.system.system.Kernel
netgate.system.system.Kernel to be added or updated
netgate-system:kernel-wrapper | object (netgate.system.system.KernelWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.system.system.Kernel
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/kernel" 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
Linux kernel arguments
netgate.system.system.kernel.Arguments
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/kernel/arguments" 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
Linux kernel arguments
netgate.system.system.kernel.Arguments to be added to list
arguments | object (netgate.system.system.kernel.Arguments) |
Object created
Internal error
Object already exists
Example URL
Linux kernel arguments
netgate.system.system.kernel.Arguments to be added or updated
netgate-system:arguments-wrapper | object (netgate.system.system.kernel.ArgumentsWrapper) |
Object created
Object modified
Internal error
Example URL
Linux kernel arguments
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/kernel/arguments" 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.system.system.kernel.arguments.configtype.auto.Auto
netgate.system.system.kernel.arguments.configtype.auto.Auto
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/kernel/arguments/auto" 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.system.system.kernel.arguments.configtype.auto.Auto
netgate.system.system.kernel.arguments.configtype.auto.Auto to be added to list
auto | object (netgate.system.system.kernel.arguments.configtype.auto.Auto) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.system.system.kernel.arguments.configtype.auto.Auto
netgate.system.system.kernel.arguments.configtype.auto.Auto to be added or updated
netgate-system:auto-wrapper | object (netgate.system.system.kernel.arguments.configtype.auto.AutoWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.system.system.kernel.arguments.configtype.auto.Auto
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system/kernel/arguments/auto" 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
System group operational state.
netgate.system.SystemState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system-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
Contains vendor-specific information for identifying the system platform and operating system.
netgate.system.systemstate.Platform
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system-state/platform" 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
Product specific information.
netgate.system.systemstate.Product
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-system:system-state/product" 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
Correct response
No response
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-system:system-devices-list" req, _ := http.NewRequest("POST", 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
operates on netgate.system.SystemNft
input | object (netgate.system.systemnft.Input) |
Correct response
No response
Internal error
Example URL
operates on netgate.system.SystemPing
input | object (netgate.system.systemping.Input) |
Correct response
No response
Internal error
Example URL
operates on netgate.system.SystemReboot
input | object (netgate.system.systemreboot.Input) |
No response
Internal error
Example URL
operates on netgate.system.SystemTraceroute
input | object (netgate.system.systemtraceroute.Input) |
Correct response
No response
Internal error