Share via


FlowLogCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.FlowLogResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string flowLogName, Azure.ResourceManager.Network.FlowLogData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.FlowLogData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.FlowLogResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.FlowLogData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.FlowLogResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, flowLogName As String, data As FlowLogData, Optional cancellationToken As CancellationToken = Nothing) As 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