# ManagedServerSecurityAlertPolicyProxy

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

Represents the ManagedServerSecurityAlertPolicy Azure Provisioning model.

## Definition

```typescript
interface ManagedServerSecurityAlertPolicyProxy {
  readonly createdOn: BicepValueProxy | datetimeoffset;
  disabledAlerts: Aspire_Hosting_Azure_Provisioning_Sql_Generated_ListOfStringProxy;
  emailAddresses: Aspire_Hosting_Azure_Provisioning_Sql_Generated_ListOfStringProxy;
  readonly id: BicepValueProxy;
  readonly name: BicepValueProxy | string;
  parent: ManagedInstanceProxy;
  retentionDays: BicepValueProxy | number;
  sendToEmailAccountAdmins: BicepValueProxy | boolean;
  state: BicepValueProxy | SecurityAlertsPolicyState;
  storageAccountAccessKey: BicepValueProxy | string;
  storageEndpoint: BicepValueProxy | string;
  readonly systemData: SqlSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearRetentionDays(): void;
  clearSendToEmailAccountAdmins(): void;
  clearState(): void;
  clearStorageAccountAccessKey(): void;
  clearStorageEndpoint(): void;
}
```

## Properties

- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `disabledAlerts`: [Aspire_Hosting_Azure_Provisioning_Sql_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/aspire-hosting-azure-provisioning-sql-generated-listofstringproxy.md) `get - set` -- Gets or sets the DisabledAlerts provisioning property.
- `emailAddresses`: [Aspire_Hosting_Azure_Provisioning_Sql_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/aspire-hosting-azure-provisioning-sql-generated-listofstringproxy.md) `get - set` -- Gets or sets the EmailAddresses provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `name`: `BicepValueProxy | string` `get` -- Gets the Name provisioning property.
- `parent`: [ManagedInstanceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedinstanceproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `retentionDays`: `BicepValueProxy | number` `get - set` -- Gets or sets the RetentionDays provisioning property.
- `sendToEmailAccountAdmins`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the SendToEmailAccountAdmins provisioning property.
- `state`: `BicepValueProxy | SecurityAlertsPolicyState` `get - set` -- Gets or sets the State provisioning property.
- `storageAccountAccessKey`: `BicepValueProxy | string` `get - set` -- Gets or sets the StorageAccountAccessKey provisioning property.
- `storageEndpoint`: `BicepValueProxy | string` `get - set` -- Gets or sets the StorageEndpoint provisioning property.
- `systemData`: [SqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedserversecurityalertpolicyproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearRetentionDays](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedserversecurityalertpolicyproxy/clearretentiondays.md) -- `method` -- Clears the RetentionDays provisioning property.
    ```typescript
  clearRetentionDays(): void
  ```
- [clearSendToEmailAccountAdmins](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedserversecurityalertpolicyproxy/clearsendtoemailaccountadmins.md) -- `method` -- Clears the SendToEmailAccountAdmins provisioning property.
    ```typescript
  clearSendToEmailAccountAdmins(): void
  ```
- [clearState](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedserversecurityalertpolicyproxy/clearstate.md) -- `method` -- Clears the State provisioning property.
    ```typescript
  clearState(): void
  ```
- [clearStorageAccountAccessKey](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedserversecurityalertpolicyproxy/clearstorageaccountaccesskey.md) -- `method` -- Clears the StorageAccountAccessKey provisioning property.
    ```typescript
  clearStorageAccountAccessKey(): void
  ```
- [clearStorageEndpoint](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedserversecurityalertpolicyproxy/clearstorageendpoint.md) -- `method` -- Clears the StorageEndpoint provisioning property.
    ```typescript
  clearStorageEndpoint(): void
  ```
