ArmNetworkModelFactory.FlowLogInformation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Network.Models.FlowLogInformation FlowLogInformation(Azure.Core.ResourceIdentifier targetResourceId = default, Azure.Core.ResourceIdentifier storageId = default, string enabledFilteringCriteria = default, string recordTypes = default, bool enabled = false, Azure.ResourceManager.Network.Models.RetentionPolicyParameters retentionPolicy = default, Azure.ResourceManager.Network.Models.FlowLogFormatParameters format = default, Azure.ResourceManager.Network.Models.FlowLogFormatType? formatType = default, int? version = default, Azure.ResourceManager.Network.Models.TrafficAnalyticsConfigurationProperties networkWatcherFlowAnalyticsConfiguration = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default);
static member FlowLogInformation : Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * string * string * bool * Azure.ResourceManager.Network.Models.RetentionPolicyParameters * Azure.ResourceManager.Network.Models.FlowLogFormatParameters * Nullable<Azure.ResourceManager.Network.Models.FlowLogFormatType> * Nullable<int> * Azure.ResourceManager.Network.Models.TrafficAnalyticsConfigurationProperties * Azure.ResourceManager.Models.ManagedServiceIdentity -> Azure.ResourceManager.Network.Models.FlowLogInformation
Public Shared Function FlowLogInformation (Optional targetResourceId As ResourceIdentifier = Nothing, Optional storageId As ResourceIdentifier = Nothing, Optional enabledFilteringCriteria As String = Nothing, Optional recordTypes As String = Nothing, Optional enabled As Boolean = false, Optional retentionPolicy As RetentionPolicyParameters = Nothing, Optional format As FlowLogFormatParameters = Nothing, Optional formatType As Nullable(Of FlowLogFormatType) = Nothing, Optional version As Nullable(Of Integer) = Nothing, Optional networkWatcherFlowAnalyticsConfiguration As TrafficAnalyticsConfigurationProperties = Nothing, Optional identity As ManagedServiceIdentity = Nothing) As FlowLogInformation
Parameters
- targetResourceId
- ResourceIdentifier
The ID of the resource to configure for flow log and traffic analytics (optional) .
- storageId
- ResourceIdentifier
ID of the storage account which is used to store the flow log.
- enabledFilteringCriteria
- String
Optional field to filter network traffic logs based on SrcIP, SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not specified, all network traffic will be logged.
- recordTypes
- String
Optional field to filter network traffic logs based on flow states. Value of this field could be any comma separated combination string of letters B,C,E or D. B represents Begin, when a flow is created. C represents Continue for an ongoing flow generated at every five-minute interval. E represents End, when a flow is terminated. D represents Deny, when a flow is denied. If not specified, all network traffic will be logged.
- enabled
- Boolean
Flag to enable/disable flow logging.
- retentionPolicy
- RetentionPolicyParameters
Parameters that define the retention policy for flow log.
- format
- FlowLogFormatParameters
Parameters that define the flow log format.
- formatType
- Nullable<FlowLogFormatType>
Gets or sets the FormatType.
- networkWatcherFlowAnalyticsConfiguration
- TrafficAnalyticsConfigurationProperties
Parameters that define the configuration of traffic analytics.
- identity
- ManagedServiceIdentity
FlowLog resource Managed Identity.
Returns
A new FlowLogInformation instance for mocking.
Exceptions
storageId is null.