Compartir a través de


ActionGroupResource.EnableReceiverAsync Método

Definición

Habilite un receptor en un grupo de acciones. Esto cambia el estado del receptor de Deshabilitado a Habilitado. Esta operación solo se admite para receptores Email o SMS.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/subscribe
  • IdActionGroups_EnableReceiver de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response> EnableReceiverAsync (Azure.ResourceManager.Monitor.Models.ActionGroupEnableContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member EnableReceiverAsync : Azure.ResourceManager.Monitor.Models.ActionGroupEnableContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.EnableReceiverAsync : Azure.ResourceManager.Monitor.Models.ActionGroupEnableContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function EnableReceiverAsync (content As ActionGroupEnableContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parámetros

content
ActionGroupEnableContent

Receptor que se va a volver a habilitar.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a