This YANG module provides a Netgate-defined data-model for SYSTEM data.
Copyright 2018-2020 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
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