netgate-ssh-server API (24.06)

This YANG module provides a data model for the SSH server.

Copyright 2020 Rubicon Communications, LLC.

ssh-server-config

returns netgate.ssh.server.SshServerConfig

Configuration for the SSH server.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ssh-server:ssh-server-config": {
    }
}

creates netgate.ssh.server.SshServerConfig

Configuration for the SSH server.

Request Body schema: application/yang-data+json

netgate.ssh.server.SshServerConfig to be added to list

object (netgate.ssh.server.sshserverconfig.Dataplane)

Dataplane-specific parameters of SSH server.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ssh-server:dataplane": {
    }
}

creates or updates netgate.ssh.server.SshServerConfig

Configuration for the SSH server.

Request Body schema: application/yang-data+json

netgate.ssh.server.SshServerConfig to be added or updated

object (netgate.ssh.server.SshServerConfig)

Configuration for the SSH server.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ssh-server:ssh-server-config": {
    }
}

removes netgate.ssh.server.SshServerConfig

Configuration for the SSH server.

Responses

Request samples

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))

}

returns netgate.ssh.server.sshserverconfig.Dataplane

Dataplane-specific parameters of SSH server.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ssh-server:dataplane": {
    }
}

creates netgate.ssh.server.sshserverconfig.Dataplane

Dataplane-specific parameters of SSH server.

Request Body schema: application/yang-data+json

netgate.ssh.server.sshserverconfig.Dataplane to be added to list

netgate-ssh-server:enable
boolean

If true, SSH server is enabled for dataplane interfaces.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ssh-server:enable": true
}

creates or updates netgate.ssh.server.sshserverconfig.Dataplane

Dataplane-specific parameters of SSH server.

Request Body schema: application/yang-data+json

netgate.ssh.server.sshserverconfig.Dataplane to be added or updated

object (netgate.ssh.server.sshserverconfig.Dataplane)

Dataplane-specific parameters of SSH server.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ssh-server:dataplane": {
    }
}

removes netgate.ssh.server.sshserverconfig.Dataplane

Dataplane-specific parameters of SSH server.

Responses

Request samples

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))

}

ssh-server-control

operates on netgate.ssh.server.SshServerControl

operates on netgate.ssh.server.SshServerControl

Request Body schema: application/yang-data+json
object (netgate.ssh.server.sshservercontrol.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}

Response samples

Content type
application/yang-data+json
{
  • "output": {
    }
}