Share via


FlowLogCollection.CreateOrUpdateAsync Method

Definition

Create or update a flow log for the specified network security group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}
  • Operation Id: FlowLogs_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.FlowLogResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string flowLogName, Azure.ResourceManager.Network.FlowLogData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.FlowLogData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.FlowLogResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.FlowLogData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.FlowLogResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, flowLogName As String, data As FlowLogData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of FlowLogResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

flowLogName
String

The name of the flow log.

data
FlowLogData

Parameters that define the create or update flow log resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

flowLogName is an empty string, and was expected to be non-empty.

flowLogName or data is null.

Applies to