# NetworkManagerSecurityUserRuleProxy

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

Represents the NetworkManagerSecurityUserRule Azure Provisioning model.

## Definition

```typescript
interface NetworkManagerSecurityUserRuleProxy {
  description: BicepValueProxy | string;
  destinationPortRanges: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy;
  destinations: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfAddressPrefixItemProxy;
  direction: BicepValueProxy | SecurityConfigurationRuleDirection;
  readonly eTag: BicepValueProxy;
  readonly id: BicepValueProxy;
  name: BicepValueProxy | string;
  parent: NetworkManagerSecurityUserRulesProxy;
  protocol: BicepValueProxy | SecurityConfigurationRuleProtocol;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  readonly resourceGuid: BicepValueProxy | guid;
  sourcePortRanges: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy;
  sources: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfAddressPrefixItemProxy;
  readonly systemData: NetworkSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearDescription(): void;
  clearDirection(): void;
  clearName(): void;
  clearProtocol(): void;
}
```

## Properties

- `description`: `BicepValueProxy | string` `get - set` -- Gets or sets the Description provisioning property.
- `destinationPortRanges`: [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 DestinationPortRanges provisioning property.
- `destinations`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfAddressPrefixItemProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofaddressprefixitemproxy.md) `get - set` -- Gets or sets the Destinations provisioning property.
- `direction`: `BicepValueProxy | SecurityConfigurationRuleDirection` `get - set` -- Gets or sets the Direction provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [NetworkManagerSecurityUserRulesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkmanagersecurityuserrulesproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `protocol`: `BicepValueProxy | SecurityConfigurationRuleProtocol` `get - set` -- Gets or sets the Protocol provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `resourceGuid`: `BicepValueProxy | guid` `get` -- Gets the ResourceGuid provisioning property.
- `sourcePortRanges`: [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 SourcePortRanges provisioning property.
- `sources`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfAddressPrefixItemProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofaddressprefixitemproxy.md) `get - set` -- Gets or sets the Sources provisioning property.
- `systemData`: [NetworkSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networksystemdataproxy.md) `get` -- Gets the SystemData provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkmanagersecurityuserruleproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearDescription](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkmanagersecurityuserruleproxy/cleardescription.md) -- `method` -- Clears the Description provisioning property.
    ```typescript
  clearDescription(): void
  ```
- [clearDirection](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkmanagersecurityuserruleproxy/cleardirection.md) -- `method` -- Clears the Direction provisioning property.
    ```typescript
  clearDirection(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkmanagersecurityuserruleproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearProtocol](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkmanagersecurityuserruleproxy/clearprotocol.md) -- `method` -- Clears the Protocol provisioning property.
    ```typescript
  clearProtocol(): void
  ```
