StorageCacheResource.UpdateAsync Method

Definition

Update a cache instance.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}
  • Operation Id: Caches_Update
  • Default Api Version: 2024-03-01
  • Resource: StorageCacheResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageCache.StorageCacheResource>> UpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.StorageCache.StorageCacheData data, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.StorageCache.StorageCacheData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageCache.StorageCacheResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.StorageCache.StorageCacheData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageCache.StorageCacheResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, data As StorageCacheData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of StorageCacheResource))

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
StorageCacheData

Object containing the user-selectable properties of the cache. If read-only properties are included, they must match the existing values of those properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to