[SDK reference](../../index.md) / [Models](../index.md) / [DbMigration](index.md)

# MigrationSource

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.DbMigration`  

Where the data comes from. The host must be a public name or address (a private one only through a private path of the project's network); the port one of the engine's usual ports.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `CaPem` | `string?` | `caPem` | PEM text of the certificate authority that signed the source's certificate (at most eight certificates, 64 KiB); absent means the system roots. |
| `Database` | `string?` | `database` | The database to copy. |
| `Engine` | `Models.DbMigration.MigrationSource_engine?` | `engine` | The engine property |
| `Host` | `string?` | `host` | A public host name or an IP address, never a URL. Resolved once and pinned for the connection. |
| `PasswordSecret` | `Models.DbMigration.MigrationSecretRef?` | `passwordSecret` | The secret that holds the password. |
| `Port` | `int?` | `port` | The engine's usual port (PostgreSQL 5432-5434, MariaDB and MySQL 3306-3308, MongoDB 27017-27019). |
| `TlsMode` | `Models.DbMigration.MigrationSource_tlsMode?` | `tlsMode` | VERIFY_FULL (default) checks the certificate chain and the host name; VERIFY_CA the chain only. |
| `Username` | `string?` | `username` | The user to connect as; a PostgreSQL user needs the REPLICATION attribute for CONTINUOUS. |
