Class CreateSecureConnectionRequest
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
Description
Optional description of the connection.
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
Host
Database server hostname or IP address.
[JsonPropertyName("host")]
public required string Host { get; init; }
Property Value
Name
Human-readable name for the connection (must be unique).
[JsonPropertyName("name")]
public required string Name { get; init; }
Property Value
Password
Database password (used only for encrypted storage, not persisted in logs).
[JsonPropertyName("password")]
public string? Password { get; init; }
Property Value
Port
Database server port number.
[JsonPropertyName("port")]
public int Port { get; init; }
Property Value
SecretReference
External secret manager reference (alternative to Password).
[JsonPropertyName("secretReference")]
public string? SecretReference { get; init; }
Property Value
SecretType
Type of secret management system (required when using SecretReference).
[JsonPropertyName("secretType")]
public string? SecretType { get; init; }
Property Value
SslMode
SSL mode for the connection.
[JsonPropertyName("sslMode")]
public string SslMode { get; init; }
Property Value
SslRequired
Whether SSL/TLS is required for this connection.
[JsonPropertyName("sslRequired")]
public bool SslRequired { get; init; }
Property Value
Username
Database username.
[JsonPropertyName("username")]
public required string Username { get; init; }