Compartilhar via


ManagedInstanceStartStopScheduleCollection.CreateOrUpdateAsync Método

Definição

Cria ou atualiza o agendamento Iniciar/Parar da instância gerenciada.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/{startStopScheduleName}
  • Operação IdStartStopManagedInstanceSchedules_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.ManagedInstanceStartStopScheduleResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Sql.Models.ManagedInstanceStartStopScheduleName startStopScheduleName, Azure.ResourceManager.Sql.ManagedInstanceStartStopScheduleData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.ManagedInstanceStartStopScheduleName * Azure.ResourceManager.Sql.ManagedInstanceStartStopScheduleData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.ManagedInstanceStartStopScheduleResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.ManagedInstanceStartStopScheduleName * Azure.ResourceManager.Sql.ManagedInstanceStartStopScheduleData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.ManagedInstanceStartStopScheduleResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, startStopScheduleName As ManagedInstanceStartStopScheduleName, data As ManagedInstanceStartStopScheduleData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ManagedInstanceStartStopScheduleResource))

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de execução prolongada, consulte Exemplos de operação de Long-Running do Azure.Core.

startStopScheduleName
ManagedInstanceStartStopScheduleName

Nome do agendamento Iniciar/Parar da instância gerenciada.

data
ManagedInstanceStartStopScheduleData

A instância gerenciada solicitada Iniciar/Parar agendamento.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

data é nulo.

Aplica-se a