Freigeben über


HybridComputePrivateLinkScopeCollection.CreateOrUpdateAsync Methode

Definition

Erstellt (oder aktualisiert) ein Azure Arc PrivateLinkScope. Hinweis: Sie können keinen anderen Wert für InstrumentationKey oder AppId im Put-Vorgang angeben.

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

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.

scopeName
String

Der Name der Azure Arc PrivateLinkScope-Ressource.

data
HybridComputePrivateLinkScopeData

Eigenschaften, die angegeben werden müssen, um ein Azure Arc für Server und Cluster PrivateLinkScope zu erstellen oder zu aktualisieren.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

scopeName oder data ist NULL.

Gilt für: