Share via


StorageTargetResource.Update Method

Definition

Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache is healthy again.

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

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
StorageTargetData

Object containing the definition of a Storage Target.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to