# PostgreSqlServerKeyProxy

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

Represents the PostgreSqlServerKey Azure Provisioning model.

## Definition

```typescript
interface PostgreSqlServerKeyProxy {
  readonly createdOn: BicepValueProxy | datetimeoffset;
  readonly id: BicepValueProxy;
  readonly kind: BicepValueProxy | string;
  name: BicepValueProxy | string;
  parent: PostgreSqlServerProxy;
  serverKeyType: BicepValueProxy | PostgreSqlServerKeyType;
  readonly systemData: PostgreSqlSystemDataProxy;
  uri: BicepValueProxy | uri;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearName(): void;
  clearServerKeyType(): void;
  clearUri(): void;
}
```

## Properties

- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `kind`: `BicepValueProxy | string` `get` -- Gets the Kind provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [PostgreSqlServerProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlserverproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `serverKeyType`: `BicepValueProxy | PostgreSqlServerKeyType` `get - set` -- Gets or sets the ServerKeyType provisioning property.
- `systemData`: [PostgreSqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `uri`: `BicepValueProxy | uri` `get - set` -- Gets or sets the Uri provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlserverkeyproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlserverkeyproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearServerKeyType](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlserverkeyproxy/clearserverkeytype.md) -- `method` -- Clears the ServerKeyType provisioning property.
    ```typescript
  clearServerKeyType(): void
  ```
- [clearUri](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlserverkeyproxy/clearuri.md) -- `method` -- Clears the Uri provisioning property.
    ```typescript
  clearUri(): void
  ```
