This YANG module provides a Netgate-defined data-model for SYSTEM data.
Copyright 2018-2020 Rubicon Communications, LLC.
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/netgate-system: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/netgate-system: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
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
auth | object (netgate.system.system.Auth) |
contact | string The administrator contact information for the system. A server implementation MAY map this leaf to the sysContact MIB object. Such an implementation needs to use some mechanism to handle the differences in size and characters allowed between this leaf and sysContact. The definition of such a mechanism is outside the scope of this document. REF:RFC 3418: Management Information Base (MIB) for the Simple Network Management Protocol (SNMP) SNMPv2-MIB.sysContact |
name | string The name of the host. This name can be a single domain label or the fully qualified domain name of the host. |
description | string A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software. It is mandatory that this only contain printable ASCII characters. |
location | string The system location.
|
dns-resolver | Array of objects (netgate.system.system.DnsResolver) Configuration of the DNS resolver. REF:RFC 7317: A YANG Data Model for System Management |
Object created
Internal error
Object already exists
Example URL
System group configuration.
netgate.system.System to be added or updated
netgate-system:system | object (netgate.system.System) |
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/netgate-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
user | Array of objects (netgate.system.system.auth.User) allowed users of the system |
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 | object (netgate.system.system.Auth) |
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/netgate-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
allowed users of the system
netgate.system.system.auth.User to be added to list
user-password | string The hash of the users password. |
user-name | string user name identifying user |
user-keys | Array of objects (netgate.system.system.auth.user.UserKeys) A list of user's public keys. |
Object created
Internal error
Object already exists
Example URL
allowed users of the system
user-name required |