Freigeben über


DataCollectionRuleAssociationCollection.CreateOrUpdate Methode

Definition

Erstellt oder aktualisiert eine Zuordnung.

  • Anforderungspfad/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}
  • Vorgang IdDataCollectionRuleAssociations_Create
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DataCollectionRuleAssociationResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string associationName, Azure.ResourceManager.Monitor.DataCollectionRuleAssociationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.DataCollectionRuleAssociationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DataCollectionRuleAssociationResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.DataCollectionRuleAssociationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DataCollectionRuleAssociationResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, associationName As String, data As DataCollectionRuleAssociationData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DataCollectionRuleAssociationResource)

Parameter

waitUntil
WaitUntil

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

associationName
String

Der Name der Zuordnung. Für den Namen wird die Groß-/Kleinschreibung nicht beachtet.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

associationName oder data ist NULL.

Gilt für: