# InboundSecurityRuleProxy

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

## Definition

```typescript
interface InboundSecurityRuleProxy {
  readonly eTag: BicepValueProxy;
  readonly id: BicepValueProxy;
  name: BicepValueProxy | string;
  parent: NetworkVirtualApplianceProxy;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  rules: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfInboundSecurityRulesProxy;
  ruleType: BicepValueProxy | InboundSecurityRuleType;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearName(): void;
  clearRuleType(): void;
}
```

## Properties

- `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`: [NetworkVirtualApplianceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkvirtualapplianceproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `rules`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfInboundSecurityRulesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofinboundsecurityrulesproxy.md) `get - set` -- Gets or sets the Rules provisioning property.
- `ruleType`: `BicepValueProxy | InboundSecurityRuleType` `get - set` -- Gets or sets the RuleType provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundsecurityruleproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundsecurityruleproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearRuleType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundsecurityruleproxy/clearruletype.md) -- `method` -- Clears the RuleType provisioning property.
    ```typescript
  clearRuleType(): void
  ```
