This YANG module provides a data model for the SSH server.
Copyright 2020 Rubicon Communications, LLC.
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)) }
{- "netgate-ssh-server:ssh-server-config": {
- "netgate-ssh-server:dataplane": {
- "netgate-ssh-server:enable": true
}
}
}
Configuration for the SSH server.
netgate.ssh.server.SshServerConfig to be added to list
object (netgate.ssh.server.sshserverconfig.Dataplane) Dataplane-specific parameters of SSH server. |
{- "netgate-ssh-server:dataplane": {
- "netgate-ssh-server:enable": true
}
}
Configuration for the SSH server.
netgate.ssh.server.SshServerConfig to be added or updated
object (netgate.ssh.server.SshServerConfig) Configuration for the SSH server. |
{- "netgate-ssh-server:ssh-server-config": {
- "netgate-ssh-server:dataplane": {
- "netgate-ssh-server:enable": true
}
}
}
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)) }
Dataplane-specific parameters of SSH server.
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)) }
{- "netgate-ssh-server:dataplane": {
- "netgate-ssh-server:enable": true
}
}
Dataplane-specific parameters of SSH server.
netgate.ssh.server.sshserverconfig.Dataplane to be added to list
netgate-ssh-server:enable | boolean If true, SSH server is enabled for dataplane interfaces. |
{- "netgate-ssh-server:enable": true
}
Dataplane-specific parameters of SSH server.
netgate.ssh.server.sshserverconfig.Dataplane to be added or updated
object (netgate.ssh.server.sshserverconfig.Dataplane) Dataplane-specific parameters of SSH server. |
{- "netgate-ssh-server:dataplane": {
- "netgate-ssh-server:enable": true
}
}
Dataplane-specific parameters of SSH server.
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)) }
operates on netgate.ssh.server.SshServerControl
object (netgate.ssh.server.sshservercontrol.Input) |
{- "input": {
- "netgate-ssh-server:namespace": "host",
- "netgate-ssh-server:operation": "start"
}
}
{- "output": {
- "netgate-ssh-server:stdout": "string"
}
}