MikrotikConnection

MikroTik REST endpoint + Basic-auth credentials. Built by the caller from whatever credentials store they own (env file, secrets manager, …​). The MikroTik REST API uses HTTP Basic auth with username:password.

public sealed record MikrotikConnection : IEquatable<MikrotikConnection>

1. Constructors

1.1. MikrotikConnection(string, string, string, bool)

MikroTik REST endpoint + Basic-auth credentials. Built by the caller from whatever credentials store they own (env file, secrets manager, …​). The MikroTik REST API uses HTTP Basic auth with username:password.

public MikrotikConnection(string BaseUrl, string Username, string Password, bool AllowSelfSignedCertificate = true)
Table 1. Parameters
Name Type Description

BaseUrl

string

Username

string

Password

string

AllowSelfSignedCertificate

bool

2. Properties

2.1. AllowSelfSignedCertificate

public bool AllowSelfSignedCertificate { get; init; }

2.2. BaseUrl

public string BaseUrl { get; init; }

2.3. Password

public string Password { get; init; }

2.4. Username

public string Username { get; init; }

3. Operators

3.1. operator !=(MikrotikConnection, MikrotikConnection)

public static bool operator !=(MikrotikConnection left, MikrotikConnection right)
Table 2. Parameters
Name Type Description

left

MikrotikConnection

right

MikrotikConnection

Returns: bool

3.2. operator ==(MikrotikConnection, MikrotikConnection)

public static bool operator ==(MikrotikConnection left, MikrotikConnection right)
Table 3. Parameters
Name Type Description

left

MikrotikConnection

right

MikrotikConnection

Returns: bool