NetAppElasticSnapshotCollection.CreateOrUpdate Method

Definition

Create a ElasticSnapshot

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}.
  • Operation Id. : ElasticSnapshots_CreateOrUpdate.
  • Default Api Version. : 2026-01-15-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppElasticSnapshotResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string snapshotName, Azure.ResourceManager.NetApp.NetAppElasticSnapshotData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetApp.NetAppElasticSnapshotData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppElasticSnapshotResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetApp.NetAppElasticSnapshotData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppElasticSnapshotResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, snapshotName As String, data As NetAppElasticSnapshotData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of NetAppElasticSnapshotResource)

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.

snapshotName
String

The name of the ElasticSnapshot.

data
NetAppElasticSnapshotData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

snapshotName or data is null.

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

Applies to