public sealed class PostgreSqlConnectionProfile : IMessage<PostgreSqlConnectionProfile>, IEquatable<PostgreSqlConnectionProfile>, IDeepCloneable<PostgreSqlConnectionProfile>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class PostgreSqlConnectionProfile.
Specifies connection parameters required specifically for PostgreSQL
databases.
Required. Input only. The password for the user that Database Migration
Service will be using to connect to the database. This field is not
returned on request, and the value is encrypted when stored in Database
Migration Service.
Required. The username that Database Migration Service will use to connect
to the database. The value is encrypted when stored in Database Migration
Service.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003ePostgreSqlConnectionProfile\u003c/code\u003e class within the Database Migration v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePostgreSqlConnectionProfile\u003c/code\u003e class is used to specify the connection parameters required for PostgreSQL databases when utilizing the Database Migration Service.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e for various functionalities.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eHost\u003c/code\u003e, \u003ccode\u003ePort\u003c/code\u003e, \u003ccode\u003eUsername\u003c/code\u003e, and \u003ccode\u003ePassword\u003c/code\u003e, which are essential for establishing a connection to a PostgreSQL database and properties such as \u003ccode\u003eCloudSqlId\u003c/code\u003e are included for Cloud SQL database connections.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API reference for this class is version 2.5.0, with previous versions available down to 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class PostgreSqlConnectionProfile (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile) \n\n public sealed class PostgreSqlConnectionProfile : IMessage\u003cPostgreSqlConnectionProfile\u003e, IEquatable\u003cPostgreSqlConnectionProfile\u003e, IDeepCloneable\u003cPostgreSqlConnectionProfile\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class PostgreSqlConnectionProfile.\n\nSpecifies connection parameters required specifically for PostgreSQL\ndatabases. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PostgreSqlConnectionProfile \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PostgreSqlConnectionProfile](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PostgreSqlConnectionProfile](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PostgreSqlConnectionProfile](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudDms.V1](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudDms.V1.dll\n\nConstructors\n------------\n\n### PostgreSqlConnectionProfile()\n\n public PostgreSqlConnectionProfile()\n\n### PostgreSqlConnectionProfile(PostgreSqlConnectionProfile)\n\n public PostgreSqlConnectionProfile(PostgreSqlConnectionProfile other)\n\nProperties\n----------\n\n### CloudSqlId\n\n public string CloudSqlId { get; set; }\n\nIf the source is a Cloud SQL database, use this field to\nprovide the Cloud SQL instance ID of the source.\n\n### ConnectivityCase\n\n public PostgreSqlConnectionProfile.ConnectivityOneofCase ConnectivityCase { get; }\n\n### Host\n\n public string Host { get; set; }\n\nRequired. The IP or hostname of the source PostgreSQL database.\n\n### NetworkArchitecture\n\n public NetworkArchitecture NetworkArchitecture { get; set; }\n\nOutput only. If the source is a Cloud SQL database, this field indicates\nthe network architecture it's associated with.\n\n### Password\n\n public string Password { get; set; }\n\nRequired. Input only. The password for the user that Database Migration\nService will be using to connect to the database. This field is not\nreturned on request, and the value is encrypted when stored in Database\nMigration Service.\n\n### PasswordSet\n\n public bool PasswordSet { get; set; }\n\nOutput only. Indicates If this connection profile password is stored.\n\n### Port\n\n public int Port { get; set; }\n\nRequired. The network port of the source PostgreSQL database.\n\n### PrivateServiceConnectConnectivity\n\n public PrivateServiceConnectConnectivity PrivateServiceConnectConnectivity { get; set; }\n\nPrivate service connect connectivity.\n\n### Ssl\n\n public SslConfig Ssl { get; set; }\n\nSSL configuration for the destination to connect to the source database.\n\n### StaticIpConnectivity\n\n public StaticIpConnectivity StaticIpConnectivity { get; set; }\n\nStatic ip connectivity data (default, no additional details needed).\n\n### Username\n\n public string Username { get; set; }\n\nRequired. The username that Database Migration Service will use to connect\nto the database. The value is encrypted when stored in Database Migration\nService."]]