Freigeben über


SmartGroupResource.ChangeStateAsync Methode

Definition

Ändern sie den Status einer intelligenten Gruppe.

  • Anforderungspfad/abonnements/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/changeState
  • Vorgangs-IdSmartGroups_ChangeState
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))

Parameter

newState
ServiceAlertState

Neuer Status der Warnung.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Gilt für: