Partager via


MonitorPrivateLinkScopeCollection.CreateOrUpdate Méthode

Définition

Crée (ou met à jour) un PrivateLinkScope Azure Monitor. Remarque : vous ne pouvez pas spécifier une valeur différente pour InstrumentationKey ou AppId dans l’opération Put.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}
  • IdPrivateLinkScopes_CreateOrUpdate d’opération
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string scopeName, Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, scopeName As String, data As MonitorPrivateLinkScopeData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of MonitorPrivateLinkScopeResource)

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre pour retourner jusqu’à ce que l’opération de longue durée soit terminée sur le service ; Started si elle doit être retournée après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations de Long-Running Azure.Core.

scopeName
String

Nom de la ressource Azure Monitor PrivateLinkScope.

data
MonitorPrivateLinkScopeData

Propriétés qui doivent être spécifiées pour créer ou mettre à jour un PrivateLinkScope Azure Monitor.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

scopeName est une chaîne vide et devait être non vide.

scopeName ou data est null.

S’applique à