# CosmosDBFirewallRuleProxy

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

Represents the CosmosDBFirewallRule Azure Provisioning model.

## Definition

```typescript
interface CosmosDBFirewallRuleProxy {
  endIPAddress: BicepValueProxy | string;
  readonly id: BicepValueProxy;
  name: BicepValueProxy | string;
  parent: MongoClusterProxy;
  readonly provisioningState: BicepValueProxy | CosmosDBProvisioningState;
  startIPAddress: BicepValueProxy | string;
  readonly systemData: CosmosDBSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearEndIPAddress(): void;
  clearName(): void;
  clearStartIPAddress(): void;
}
```

## Properties

- `endIPAddress`: `BicepValueProxy | string` `get - set` -- Gets or sets the EndIPAddress provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [MongoClusterProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/mongoclusterproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `provisioningState`: `BicepValueProxy | CosmosDBProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `startIPAddress`: `BicepValueProxy | string` `get - set` -- Gets or sets the StartIPAddress provisioning property.
- `systemData`: [CosmosDBSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbfirewallruleproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearEndIPAddress](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbfirewallruleproxy/clearendipaddress.md) -- `method` -- Clears the EndIPAddress provisioning property.
    ```typescript
  clearEndIPAddress(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbfirewallruleproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearStartIPAddress](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbfirewallruleproxy/clearstartipaddress.md) -- `method` -- Clears the StartIPAddress provisioning property.
    ```typescript
  clearStartIPAddress(): void
  ```
