Return SSH port

This function retrieves the server's SSH port.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/SSH/get_port
Request samples
uapi --output=jsonpretty \
  --user=username \
  SSH \
  get_port
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "get_port",
  • "module": "SSH",
  • "result": {
    • "data": {
      • "port": 22
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}