Partager via


SmartGroupResource.ChangeStateAsync Méthode

Définition

Modifier l’état d’un groupe intelligent.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/changeState
  • IdSmartGroups_ChangeState d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AlertsManagement.SmartGroupResource>> ChangeStateAsync (Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState newState, System.Threading.CancellationToken cancellationToken = default);
abstract member ChangeStateAsync : Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AlertsManagement.SmartGroupResource>>
override this.ChangeStateAsync : Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AlertsManagement.SmartGroupResource>>
Public Overridable Function ChangeStateAsync (newState As ServiceAlertState, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SmartGroupResource))

Paramètres

newState
ServiceAlertState

Nouvel état de l’alerte.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

S’applique à