NetworkWatchersOperations.CreateOrUpdate(String, String, NetworkWatcher, CancellationToken) Method

Definition

Creates or updates a network watcher in the specified resource group.

public virtual Azure.Response<Azure.ResourceManager.Network.Models.NetworkWatcher> CreateOrUpdate (string resourceGroupName, string networkWatcherName, Azure.ResourceManager.Network.Models.NetworkWatcher parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : string * string * Azure.ResourceManager.Network.Models.NetworkWatcher * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.Models.NetworkWatcher>
override this.CreateOrUpdate : string * string * Azure.ResourceManager.Network.Models.NetworkWatcher * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.Models.NetworkWatcher>
Public Overridable Function CreateOrUpdate (resourceGroupName As String, networkWatcherName As String, parameters As NetworkWatcher, Optional cancellationToken As CancellationToken = Nothing) As Response(Of NetworkWatcher)

Parameters

resourceGroupName
System.String

The name of the resource group.

networkWatcherName
System.String

The name of the network watcher.

parameters
NetworkWatcher

Parameters that define the network watcher resource.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Response<NetworkWatcher>

Applies to