# VirtualEndpointProxy

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

## Definition

```typescript
interface VirtualEndpointProxy {
  endpointType: BicepValueProxy | VirtualEndpointType;
  readonly id: BicepValueProxy;
  members: Aspire_Hosting_Azure_Provisioning_PostgreSql_Generated_ListOfStringProxy;
  name: BicepValueProxy | string;
  parent: PostgreSqlFlexibleServerProxy;
  readonly systemData: PostgreSqlSystemDataProxy;
  readonly virtualEndpoints: Aspire_Hosting_Azure_Provisioning_PostgreSql_Generated_ListOfStringProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearEndpointType(): void;
  clearName(): void;
}
```

## Properties

- `endpointType`: `BicepValueProxy | VirtualEndpointType` `get - set` -- Gets or sets the EndpointType provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `members`: [Aspire_Hosting_Azure_Provisioning_PostgreSql_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/aspire-hosting-azure-provisioning-postgresql-generated-listofstringproxy.md) `get - set` -- Gets or sets the Members provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [PostgreSqlFlexibleServerProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlflexibleserverproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `systemData`: [PostgreSqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `virtualEndpoints`: [Aspire_Hosting_Azure_Provisioning_PostgreSql_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/aspire-hosting-azure-provisioning-postgresql-generated-listofstringproxy.md) `get` -- Gets the VirtualEndpoints provisioning property.

## Methods

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