# PostgreSqlVirtualNetworkRuleProxy

- 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 PostgreSqlVirtualNetworkRule Azure Provisioning model.

## Definition

```typescript
interface PostgreSqlVirtualNetworkRuleProxy {
  readonly id: BicepValueProxy;
  ignoreMissingVnetServiceEndpoint: BicepValueProxy | boolean;
  name: BicepValueProxy | string;
  parent: PostgreSqlServerProxy;
  readonly state: BicepValueProxy | PostgreSqlVirtualNetworkRuleState;
  readonly systemData: PostgreSqlSystemDataProxy;
  virtualNetworkSubnetId: BicepValueProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearIgnoreMissingVnetServiceEndpoint(): void;
  clearName(): void;
  clearVirtualNetworkSubnetId(): void;
}
```

## Properties

- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `ignoreMissingVnetServiceEndpoint`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IgnoreMissingVnetServiceEndpoint 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.
- `state`: `BicepValueProxy | PostgreSqlVirtualNetworkRuleState` `get` -- Gets the State provisioning property.
- `systemData`: [PostgreSqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `virtualNetworkSubnetId`: `BicepValueProxy` `get - set` -- Gets or sets the VirtualNetworkSubnetId provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlvirtualnetworkruleproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearIgnoreMissingVnetServiceEndpoint](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlvirtualnetworkruleproxy/clearignoremissingvnetserviceendpoint.md) -- `method` -- Clears the IgnoreMissingVnetServiceEndpoint provisioning property.
    ```typescript
  clearIgnoreMissingVnetServiceEndpoint(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlvirtualnetworkruleproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearVirtualNetworkSubnetId](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlvirtualnetworkruleproxy/clearvirtualnetworksubnetid.md) -- `method` -- Clears the VirtualNetworkSubnetId provisioning property.
    ```typescript
  clearVirtualNetworkSubnetId(): void
  ```
