# PacketCaptureProxy

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

## Definition

```typescript
interface PacketCaptureProxy {
  bytesToCapturePerPacket: BicepValueProxy | number;
  captureSettings: PacketCaptureSettingsProxy;
  readonly eTag: BicepValueProxy;
  filters: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfPacketCaptureFilterProxy;
  readonly id: BicepValueProxy;
  isContinuousCapture: BicepValueProxy | boolean;
  name: BicepValueProxy | string;
  parent: NetworkWatcherProxy;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  scope: PacketCaptureMachineScopeProxy;
  storageLocation: PacketCaptureStorageLocationProxy;
  readonly systemData: NetworkSystemDataProxy;
  target: BicepValueProxy | string;
  targetType: BicepValueProxy | PacketCaptureTargetType;
  timeLimitInSeconds: BicepValueProxy | number;
  totalBytesPerSession: BicepValueProxy | number;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearBytesToCapturePerPacket(): void;
  clearIsContinuousCapture(): void;
  clearName(): void;
  clearTarget(): void;
  clearTargetType(): void;
  clearTimeLimitInSeconds(): void;
  clearTotalBytesPerSession(): void;
}
```

## Properties

- `bytesToCapturePerPacket`: `BicepValueProxy | number` `get - set` -- Gets or sets the BytesToCapturePerPacket provisioning property.
- `captureSettings`: [PacketCaptureSettingsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcapturesettingsproxy.md) `get - set` -- Gets or sets the CaptureSettings provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `filters`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfPacketCaptureFilterProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofpacketcapturefilterproxy.md) `get - set` -- Gets or sets the Filters provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `isContinuousCapture`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsContinuousCapture provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [NetworkWatcherProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkwatcherproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `scope`: [PacketCaptureMachineScopeProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcapturemachinescopeproxy.md) `get - set` -- Gets or sets the Scope provisioning property.
- `storageLocation`: [PacketCaptureStorageLocationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcapturestoragelocationproxy.md) `get - set` -- Gets or sets the StorageLocation provisioning property.
- `systemData`: [NetworkSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networksystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `target`: `BicepValueProxy | string` `get - set` -- Gets or sets the Target provisioning property.
- `targetType`: `BicepValueProxy | PacketCaptureTargetType` `get - set` -- Gets or sets the TargetType provisioning property.
- `timeLimitInSeconds`: `BicepValueProxy | number` `get - set` -- Gets or sets the TimeLimitInSeconds provisioning property.
- `totalBytesPerSession`: `BicepValueProxy | number` `get - set` -- Gets or sets the TotalBytesPerSession provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcaptureproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearBytesToCapturePerPacket](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcaptureproxy/clearbytestocaptureperpacket.md) -- `method` -- Clears the BytesToCapturePerPacket provisioning property.
    ```typescript
  clearBytesToCapturePerPacket(): void
  ```
- [clearIsContinuousCapture](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcaptureproxy/cleariscontinuouscapture.md) -- `method` -- Clears the IsContinuousCapture provisioning property.
    ```typescript
  clearIsContinuousCapture(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcaptureproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearTarget](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcaptureproxy/cleartarget.md) -- `method` -- Clears the Target provisioning property.
    ```typescript
  clearTarget(): void
  ```
- [clearTargetType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcaptureproxy/cleartargettype.md) -- `method` -- Clears the TargetType provisioning property.
    ```typescript
  clearTargetType(): void
  ```
- [clearTimeLimitInSeconds](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcaptureproxy/cleartimelimitinseconds.md) -- `method` -- Clears the TimeLimitInSeconds provisioning property.
    ```typescript
  clearTimeLimitInSeconds(): void
  ```
- [clearTotalBytesPerSession](/reference/api/typescript/aspire.hosting.azure.provisioning.network/packetcaptureproxy/cleartotalbytespersession.md) -- `method` -- Clears the TotalBytesPerSession provisioning property.
    ```typescript
  clearTotalBytesPerSession(): void
  ```
