Lingua

ExternalCacheConnectionCollection.CreateOrUpdateAsync Method

Definition

Create or update the specified External Cache Connection

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/externalCacheConnections/{externalCacheConnectionName}.
  • Operation Id. : ExternalCacheConnections_CreateOrUpdate.
  • Default Api Version. : 2026-08-15-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.ExternalCacheConnectionResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string externalCacheConnectionName, Azure.ResourceManager.NetApp.ExternalCacheConnectionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetApp.ExternalCacheConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.ExternalCacheConnectionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetApp.ExternalCacheConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.ExternalCacheConnectionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, externalCacheConnectionName As String, data As ExternalCacheConnectionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ExternalCacheConnectionResource))

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.

externalCacheConnectionName
String

The name of the ExternalCacheConnection.

data
ExternalCacheConnectionData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

externalCacheConnectionName or data is null.

externalCacheConnectionName is an empty string, and was expected to be non-empty.

Applies to