Set-UnityAlertConfig

SYNOPSIS

Modifies Alert Config.

SYNTAX

Set-UnityAlertConfig [-session <Object>] [[-ID] <Object[]>] [-alertLocale <LocaleEnum>]
 [-isThresholdAlertsEnabled <Boolean>] [-minEmailNotificationSeverity <SeverityEnum>]
 [-minSNMPTrapNotificationSeverity <SeverityEnum>] [-destinationEmails <String[]>] [-WhatIf] [-Confirm]

DESCRIPTION

Modifies Alert Config. You need to have an active session with the array.

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

Set-UnityAlertConfig -destinationEmails 'mail@example.com'

Modifies the default Alert Config

PARAMETERS

-session

Specify an UnitySession Object.

Type: Object
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true})
Accept pipeline input: False
Accept wildcard characters: False

-ID

Config ALert ID or Object.

Type: Object[]
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: 0
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-alertLocale

Language in which the system sends email alerts.

Type: LocaleEnum
Parameter Sets: (All)
Aliases: 
Accepted values: en_US, es_AR, de_DE, fr_FR, ja_JP, ko_KR, pt_BR, ru_RU, zh_CN

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-isThresholdAlertsEnabled

Whether pool space usage related alerts will be sent.

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-minEmailNotificationSeverity

Minimum severity level for email alerts.

Type: SeverityEnum
Parameter Sets: (All)
Aliases: 
Accepted values: EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG, OK

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-minSNMPTrapNotificationSeverity

Minimum severity level for SNMP trap alerts.

Type: SeverityEnum
Parameter Sets: (All)
Aliases: 
Accepted values: EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG, OK

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-destinationEmails

List of emails to receive alert notifications.

Type: String[]
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES

Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE

https://github.com/equelin/Unity-Powershell