@tikoci/centrs
    Preparing search index...

    Interface ProtocolAdapterConfig

    Connection inputs an adapter needs, free of retrieve-specific resolver types.

    interface ProtocolAdapterConfig {
        baseUrl: string;
        host: string;
        insecure?: boolean;
        mac?: string;
        password: string;
        port: number;
        protocol:
            | "rest-api"
            | "native-api"
            | "mac-telnet"
            | "ssh"
            | "snmp"
            | "mndp"
            | "romon"
            | "winbox-terminal"
            | "btest";
        sourceMac?: string;
        sshKey?: string;
        timeoutMs: number;
        tls: boolean;
        username?: string;
    }
    Index

    Properties

    baseUrl: string

    REST base URL, e.g. http://host:port. Also used as the native endpoint label.

    host: string

    Resolved host (literal address or DNS name).

    insecure?: boolean

    Opt out of peer verification: accept self-signed TLS certs (REST/native api-ssl) and disable strict SSH host-key checking. Default false (verify). The single --insecure knob across every transport.

    mac?: string

    Target device MAC, for L2 transports (mac-telnet).

    password: string

    RouterOS password (empty string when none).

    port: number

    Resolved port.

    protocol:
        | "rest-api"
        | "native-api"
        | "mac-telnet"
        | "ssh"
        | "snmp"
        | "mndp"
        | "romon"
        | "winbox-terminal"
        | "btest"

    Transport to build. retrieve uses rest-api or native-api.

    sourceMac?: string

    Client (in-packet source) MAC for mac-telnet; a synthetic one is used when omitted.

    sshKey?: string

    SSH private-key path for the ssh/sftp transport (path only).

    timeoutMs: number

    Per-command timeout in milliseconds.

    tls: boolean

    TLS transport (native-api over api-ssl). REST uses the base URL scheme.

    username?: string

    RouterOS username, when provided.