Freigeben über


MonitorPrivateLinkScopeCollection.CreateOrUpdateAsync Methode

Definition

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

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

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 Monitor PrivateLinkScope-Ressource.

data
MonitorPrivateLinkScopeData

Eigenschaften, die angegeben werden müssen, um ein Azure Monitor 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: