Freigeben über


ElasticSanCollection.CreateOrUpdateAsync Methode

Definition

Erstellen Sie ElasticSan.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSans/{elasticSanName}
  • Vorgangs-IdElasticSans_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ElasticSan.ElasticSanResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string elasticSanName, Azure.ResourceManager.ElasticSan.ElasticSanData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ElasticSan.ElasticSanData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ElasticSan.ElasticSanResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ElasticSan.ElasticSanData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ElasticSan.ElasticSanResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, elasticSanName As String, data As ElasticSanData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ElasticSanResource))

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der zeitintensive Vorgang für den Dienst abgeschlossen ist; Started , wenn sie nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführungszeit finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

elasticSanName
String

Der Name des ElasticSan.

data
ElasticSanData

Elastic San-Objekt.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

elasticSanName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

elasticSanName oder data ist NULL.

Gilt für: