# PostgreSqlServerProxy

- Module: [Aspire.Hosting.Azure.Provisioning.PostgreSql](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

Represents the PostgreSqlServer Azure Provisioning model.

## Definition

```typescript
interface PostgreSqlServerProxy {
  readonly administratorLogin: BicepValueProxy | string;
  readonly byokEnforcement: BicepValueProxy | string;
  readonly earliestRestoreOn: BicepValueProxy | datetimeoffset;
  readonly fullyQualifiedDomainName: BicepValueProxy | string;
  readonly id: BicepValueProxy;
  identity: PostgreSqlManagedServiceIdentityProxy;
  readonly infrastructureEncryption: BicepValueProxy | PostgreSqlInfrastructureEncryption;
  location: BicepValueProxy;
  readonly masterServerId: BicepValueProxy;
  readonly minimalTlsVersion: BicepValueProxy | PostgreSqlMinimalTlsVersionEnum;
  name: BicepValueProxy | string;
  readonly privateEndpointConnections: Aspire_Hosting_Azure_Provisioning_PostgreSql_Generated_ListOfPostgreSqlServerPrivateEndpointConnectionProxy;
  properties: PostgreSqlServerPropertiesForCreateProxy;
  readonly publicNetworkAccess: BicepValueProxy | PostgreSqlPublicNetworkAccessEnum;
  readonly replicaCapacity: BicepValueProxy | number;
  readonly replicationRole: BicepValueProxy | string;
  sku: PostgreSqlSkuProxy;
  readonly sslEnforcement: BicepValueProxy | PostgreSqlSslEnforcementEnum;
  readonly storageProfile: PostgreSqlStorageProfileProxy;
  readonly systemData: PostgreSqlSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_PostgreSql_Generated_DictionaryOfStringProxy;
  readonly userVisibleState: BicepValueProxy | PostgreSqlServerState;
  readonly version: BicepValueProxy | PostgreSqlServerVersion;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearLocation(): void;
  clearName(): void;
}
```

## Properties

- `administratorLogin`: `BicepValueProxy | string` `get` -- Gets the AdministratorLogin provisioning property.
- `byokEnforcement`: `BicepValueProxy | string` `get` -- Gets the ByokEnforcement provisioning property.
- `earliestRestoreOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the EarliestRestoreOn provisioning property.
- `fullyQualifiedDomainName`: `BicepValueProxy | string` `get` -- Gets the FullyQualifiedDomainName provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `identity`: [PostgreSqlManagedServiceIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlmanagedserviceidentityproxy.md) `get - set` -- Gets or sets the Identity provisioning property.
- `infrastructureEncryption`: `BicepValueProxy | PostgreSqlInfrastructureEncryption` `get` -- Gets the InfrastructureEncryption provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `masterServerId`: `BicepValueProxy` `get` -- Gets the MasterServerId provisioning property.
- `minimalTlsVersion`: `BicepValueProxy | PostgreSqlMinimalTlsVersionEnum` `get` -- Gets the MinimalTlsVersion provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `privateEndpointConnections`: [Aspire_Hosting_Azure_Provisioning_PostgreSql_Generated_ListOfPostgreSqlServerPrivateEndpointConnectionProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/aspire-hosting-azure-provisioning-postgresql-generated-listofpostgresqlserverprivateendpointconnectionproxy.md) `get` -- Gets the PrivateEndpointConnections provisioning property.
- `properties`: [PostgreSqlServerPropertiesForCreateProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlserverpropertiesforcreateproxy.md) `get - set` -- Gets or sets the Properties provisioning property.
- `publicNetworkAccess`: `BicepValueProxy | PostgreSqlPublicNetworkAccessEnum` `get` -- Gets the PublicNetworkAccess provisioning property.
- `replicaCapacity`: `BicepValueProxy | number` `get` -- Gets the ReplicaCapacity provisioning property.
- `replicationRole`: `BicepValueProxy | string` `get` -- Gets the ReplicationRole provisioning property.
- `sku`: [PostgreSqlSkuProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlskuproxy.md) `get - set` -- Gets or sets the Sku provisioning property.
- `sslEnforcement`: `BicepValueProxy | PostgreSqlSslEnforcementEnum` `get` -- Gets the SslEnforcement provisioning property.
- `storageProfile`: [PostgreSqlStorageProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlstorageprofileproxy.md) `get` -- Gets the StorageProfile provisioning property.
- `systemData`: [PostgreSqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_PostgreSql_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/aspire-hosting-azure-provisioning-postgresql-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `userVisibleState`: `BicepValueProxy | PostgreSqlServerState` `get` -- Gets the UserVisibleState provisioning property.
- `version`: `BicepValueProxy | PostgreSqlServerVersion` `get` -- Gets the Version provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlserverproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlserverproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlserverproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
