ActionGroupsOperations.EnableReceiverAsync Method

Definition

Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.

public virtual System.Threading.Tasks.Task<Azure.Response> EnableReceiverAsync (string resourceGroupName, string actionGroupName, Azure.ResourceManager.Insights.Models.EnableRequest enableRequest, System.Threading.CancellationToken cancellationToken = default);
abstract member EnableReceiverAsync : string * string * Azure.ResourceManager.Insights.Models.EnableRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.EnableReceiverAsync : string * string * Azure.ResourceManager.Insights.Models.EnableRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function EnableReceiverAsync (resourceGroupName As String, actionGroupName As String, enableRequest As EnableRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

resourceGroupName
System.String

The name of the resource group.

actionGroupName
System.String

The name of the action group.

enableRequest
EnableRequest

The receiver to re-enable.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response>

Applies to