Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Get one or all email alert filter rules from the HPE OneView SMTP configuration.Syntax
Description
Get-OVSmtpAlertEmailFilter retrieves the email alert filter rules stored in the appliance’s SMTP configuration. Each filter rule defines:
- A display name for the filter.
- An optional OData/index query expression that selects which alerts match.
- A list of recipient email addresses.
- An optional scope query that restricts matching to specific resource scopes.
- A disabled flag.
Remote Support filter entry is also included in the results (read-only).
Filter objects returned by this cmdlet can be passed to Set-OVSmtpAlertEmailFilter to modify them or to Remove-OVSmtpAlertEmailFilter to delete them.
Parameters
Filter by the filter rule’s display name (
filterName property). When omitted, all defined filters are returned.Specify one or more appliance connection objects or names. Defaults to the default connection in
$ConnectedSessions.Examples
Get all email alert filters
Get a specific filter by name
Check whether any filters are disabled
Pipe a filter into Set-OVSmtpAlertEmailFilter to update recipients
Output
HPEOneView.Appliance.AlertEmailFilter
Key properties:
| Property | Type | Description |
|---|---|---|
filterName | String | Display name of the filter rule |
filter | String | Index query expression that selects matching alerts |
emails | String[] | List of recipient email addresses |
scopeQuery | String | Scope restriction query |
disabled | Boolean | Whether this filter is currently disabled |
customEmailSenderEnabled | Boolean | Whether a custom sender address is used |
customSenderEmailAddress | String | Custom sender email address (if enabled) |
ApplianceConnection | Object | Appliance the filter was retrieved from |
Related cmdlets
- Get-OVSMTPConfig
- Set-OVSmtpConfig
- Add-OVSmtpAlertEmailFilter — see source repository for cmdlet usage
- Set-OVSmtpAlertEmailFilter — see source repository for cmdlet usage
- Remove-OVSmtpAlertEmailFilter — see source repository for cmdlet usage