Table of Contents

Class CreateSecureConnectionRequest

Namespace
Honua.Sdk.Admin.Models
Assembly
Honua.Sdk.Admin.dll

Request model for creating a new secure database connection.

public sealed record CreateSecureConnectionRequest : IEquatable<CreateSecureConnectionRequest>
Inheritance
CreateSecureConnectionRequest
Implements
Inherited Members

Properties

DatabaseName

Database name to connect to.

[JsonPropertyName("databaseName")]
public required string DatabaseName { get; init; }

Property Value

string

Description

Optional description of the connection.

[JsonPropertyName("description")]
public string? Description { get; init; }

Property Value

string

Host

Database server hostname or IP address.

[JsonPropertyName("host")]
public required string Host { get; init; }

Property Value

string

Name

Human-readable name for the connection (must be unique).

[JsonPropertyName("name")]
public required string Name { get; init; }

Property Value

string

Password

Database password (used only for encrypted storage, not persisted in logs).

[JsonPropertyName("password")]
public string? Password { get; init; }

Property Value

string

Port

Database server port number.

[JsonPropertyName("port")]
public int Port { get; init; }

Property Value

int

SecretReference

External secret manager reference (alternative to Password).

[JsonPropertyName("secretReference")]
public string? SecretReference { get; init; }

Property Value

string

SecretType

Type of secret management system (required when using SecretReference).

[JsonPropertyName("secretType")]
public string? SecretType { get; init; }

Property Value

string

SslMode

SSL mode for the connection.

[JsonPropertyName("sslMode")]
public string SslMode { get; init; }

Property Value

string

SslRequired

Whether SSL/TLS is required for this connection.

[JsonPropertyName("sslRequired")]
public bool SslRequired { get; init; }

Property Value

bool

Username

Database username.

[JsonPropertyName("username")]
public required string Username { get; init; }

Property Value

string