Partilhar via


SmartGroupResource.ChangeStateAsync Método

Definição

Altere o estado de um Grupo Inteligente.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/changeState
  • Operação 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))

Parâmetros

newState
ServiceAlertState

Novo estado do alerta.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a