ServiceBusQueueResource.UpdateAsync Method

Definition

Creates or updates a Service Bus queue. This operation is idempotent.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}
  • Operation Id: Queues_CreateOrUpdate
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusQueueResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceBus.ServiceBusQueueResource>> UpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceBus.ServiceBusQueueData data, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.ServiceBus.ServiceBusQueueData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceBus.ServiceBusQueueResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.ServiceBus.ServiceBusQueueData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceBus.ServiceBusQueueResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, data As ServiceBusQueueData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ServiceBusQueueResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

data
ServiceBusQueueData

Parameters supplied to create or update a queue resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to