This YANG module provides a data model for the SSH server.
Copyright 2020 Rubicon Communications, LLC.
Example URL
Configuration for the SSH server.
netgate.ssh.server.SshServerConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ssh-server:ssh-server-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
Configuration for the SSH server.
netgate.ssh.server.SshServerConfig to be added to list
netgate-ssh-server:ssh-server-config | object (netgate.ssh.server.SshServerConfig) |
Object created
Internal error
Object already exists
Example URL
Configuration for the SSH server.
netgate.ssh.server.SshServerConfig to be added or updated
netgate-ssh-server:ssh-server-config-wrapper | object (netgate.ssh.server.SshServerConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Configuration for the SSH server.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ssh-server:ssh-server-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
Dataplane-specific parameters of SSH server.
netgate.ssh.server.sshserverconfig.Dataplane
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ssh-server:ssh-server-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)) }
Example URL
Dataplane-specific parameters of SSH server.
netgate.ssh.server.sshserverconfig.Dataplane to be added to list
dataplane | object (netgate.ssh.server.sshserverconfig.Dataplane) |
Object created
Internal error
Object already exists
Example URL
Dataplane-specific parameters of SSH server.
netgate.ssh.server.sshserverconfig.Dataplane to be added or updated
netgate-ssh-server:dataplane-wrapper | object (netgate.ssh.server.sshserverconfig.DataplaneWrapper) |
Object created
Object modified
Internal error
Example URL
Dataplane-specific parameters of SSH server.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ssh-server:ssh-server-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)) }
Example URL
operates on netgate.ssh.server.SshServerControl
input | object (netgate.ssh.server.sshservercontrol.Input) |
Correct response
No response
Internal error