# PublicIPPrefixProxy

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

Represents the PublicIPPrefix Azure Provisioning model.

## Definition

```typescript
interface PublicIPPrefixProxy {
  customIPPrefixId: BicepValueProxy;
  readonly eTag: BicepValueProxy;
  extendedLocation: NetworkExtendedAzureLocationProxy;
  id: BicepValueProxy;
  readonly iPPrefix: BicepValueProxy | string;
  iPTags: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfIPTagProxy;
  readonly loadBalancerFrontendIPConfigurationId: BicepValueProxy;
  location: BicepValueProxy;
  name: BicepValueProxy | string;
  natGateway: NatGatewayProxy;
  prefixLength: BicepValueProxy | number;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  readonly publicIPAddresses: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfSubResourceProxy;
  publicIPAddressVersion: BicepValueProxy | NetworkIPVersion;
  readonly resourceGuid: BicepValueProxy | guid;
  sku: PublicIPPrefixSkuProxy;
  tags: Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy;
  zones: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearCustomIPPrefixId(): void;
  clearId(): void;
  clearLocation(): void;
  clearName(): void;
  clearPrefixLength(): void;
  clearPublicIPAddressVersion(): void;
}
```

## Properties

- `customIPPrefixId`: `BicepValueProxy` `get - set` -- Gets or sets the CustomIPPrefixId provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `extendedLocation`: [NetworkExtendedAzureLocationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkextendedazurelocationproxy.md) `get - set` -- Gets or sets the ExtendedLocation provisioning property.
- `id`: `BicepValueProxy` `get - set` -- Gets or sets the Id provisioning property.
- `iPPrefix`: `BicepValueProxy | string` `get` -- Gets the IPPrefix provisioning property.
- `iPTags`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfIPTagProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofiptagproxy.md) `get - set` -- Gets or sets the IPTags provisioning property.
- `loadBalancerFrontendIPConfigurationId`: `BicepValueProxy` `get` -- Gets the LoadBalancerFrontendIPConfigurationId provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `natGateway`: [NatGatewayProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/natgatewayproxy.md) `get - set` -- Gets or sets the NatGateway provisioning property.
- `prefixLength`: `BicepValueProxy | number` `get - set` -- Gets or sets the PrefixLength provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `publicIPAddresses`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfSubResourceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofsubresourceproxy.md) `get` -- Gets the PublicIPAddresses provisioning property.
- `publicIPAddressVersion`: `BicepValueProxy | NetworkIPVersion` `get - set` -- Gets or sets the PublicIPAddressVersion provisioning property.
- `resourceGuid`: `BicepValueProxy | guid` `get` -- Gets the ResourceGuid provisioning property.
- `sku`: [PublicIPPrefixSkuProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/publicipprefixskuproxy.md) `get - set` -- Gets or sets the Sku provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `zones`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofstringproxy.md) `get - set` -- Gets or sets the Zones provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/publicipprefixproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearCustomIPPrefixId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/publicipprefixproxy/clearcustomipprefixid.md) -- `method` -- Clears the CustomIPPrefixId provisioning property.
    ```typescript
  clearCustomIPPrefixId(): void
  ```
- [clearId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/publicipprefixproxy/clearid.md) -- `method` -- Clears the Id provisioning property.
    ```typescript
  clearId(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.network/publicipprefixproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/publicipprefixproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPrefixLength](/reference/api/typescript/aspire.hosting.azure.provisioning.network/publicipprefixproxy/clearprefixlength.md) -- `method` -- Clears the PrefixLength provisioning property.
    ```typescript
  clearPrefixLength(): void
  ```
- [clearPublicIPAddressVersion](/reference/api/typescript/aspire.hosting.azure.provisioning.network/publicipprefixproxy/clearpublicipaddressversion.md) -- `method` -- Clears the PublicIPAddressVersion provisioning property.
    ```typescript
  clearPublicIPAddressVersion(): void
  ```
