This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.network.getFlowLog
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets a flow log resource by name. Azure REST API version: 2023-02-01.
Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-05-01.
Using getFlowLog
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFlowLog(args: GetFlowLogArgs, opts?: InvokeOptions): Promise<GetFlowLogResult>
function getFlowLogOutput(args: GetFlowLogOutputArgs, opts?: InvokeOptions): Output<GetFlowLogResult>def get_flow_log(flow_log_name: Optional[str] = None,
                 network_watcher_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetFlowLogResult
def get_flow_log_output(flow_log_name: Optional[pulumi.Input[str]] = None,
                 network_watcher_name: Optional[pulumi.Input[str]] = None,
                 resource_group_name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetFlowLogResult]func LookupFlowLog(ctx *Context, args *LookupFlowLogArgs, opts ...InvokeOption) (*LookupFlowLogResult, error)
func LookupFlowLogOutput(ctx *Context, args *LookupFlowLogOutputArgs, opts ...InvokeOption) LookupFlowLogResultOutput> Note: This function is named LookupFlowLog in the Go SDK.
public static class GetFlowLog 
{
    public static Task<GetFlowLogResult> InvokeAsync(GetFlowLogArgs args, InvokeOptions? opts = null)
    public static Output<GetFlowLogResult> Invoke(GetFlowLogInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFlowLogResult> getFlowLog(GetFlowLogArgs args, InvokeOptions options)
public static Output<GetFlowLogResult> getFlowLog(GetFlowLogArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:network:getFlowLog
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FlowLog stringName 
- The name of the flow log resource.
- NetworkWatcher stringName 
- The name of the network watcher.
- ResourceGroup stringName 
- The name of the resource group.
- FlowLog stringName 
- The name of the flow log resource.
- NetworkWatcher stringName 
- The name of the network watcher.
- ResourceGroup stringName 
- The name of the resource group.
- flowLog StringName 
- The name of the flow log resource.
- networkWatcher StringName 
- The name of the network watcher.
- resourceGroup StringName 
- The name of the resource group.
- flowLog stringName 
- The name of the flow log resource.
- networkWatcher stringName 
- The name of the network watcher.
- resourceGroup stringName 
- The name of the resource group.
- flow_log_ strname 
- The name of the flow log resource.
- network_watcher_ strname 
- The name of the network watcher.
- resource_group_ strname 
- The name of the resource group.
- flowLog StringName 
- The name of the flow log resource.
- networkWatcher StringName 
- The name of the network watcher.
- resourceGroup StringName 
- The name of the resource group.
getFlowLog Result
The following output properties are available:
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- ProvisioningState string
- The provisioning state of the flow log.
- StorageId string
- ID of the storage account which is used to store the flow log.
- TargetResource stringGuid 
- Guid of network security group to which flow log will be applied.
- TargetResource stringId 
- ID of network security group to which flow log will be applied.
- Type string
- Resource type.
- Enabled bool
- Flag to enable/disable flow logging.
- FlowAnalytics Pulumi.Configuration Azure Native. Network. Outputs. Traffic Analytics Properties Response 
- Parameters that define the configuration of traffic analytics.
- Format
Pulumi.Azure Native. Network. Outputs. Flow Log Format Parameters Response 
- Parameters that define the flow log format.
- Id string
- Resource ID.
- Location string
- Resource location.
- RetentionPolicy Pulumi.Azure Native. Network. Outputs. Retention Policy Parameters Response 
- Parameters that define the retention policy for flow log.
- Dictionary<string, string>
- Resource tags.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- ProvisioningState string
- The provisioning state of the flow log.
- StorageId string
- ID of the storage account which is used to store the flow log.
- TargetResource stringGuid 
- Guid of network security group to which flow log will be applied.
- TargetResource stringId 
- ID of network security group to which flow log will be applied.
- Type string
- Resource type.
- Enabled bool
- Flag to enable/disable flow logging.
- FlowAnalytics TrafficConfiguration Analytics Properties Response 
- Parameters that define the configuration of traffic analytics.
- Format
FlowLog Format Parameters Response 
- Parameters that define the flow log format.
- Id string
- Resource ID.
- Location string
- Resource location.
- RetentionPolicy RetentionPolicy Parameters Response 
- Parameters that define the retention policy for flow log.
- map[string]string
- Resource tags.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- provisioningState String
- The provisioning state of the flow log.
- storageId String
- ID of the storage account which is used to store the flow log.
- targetResource StringGuid 
- Guid of network security group to which flow log will be applied.
- targetResource StringId 
- ID of network security group to which flow log will be applied.
- type String
- Resource type.
- enabled Boolean
- Flag to enable/disable flow logging.
- flowAnalytics TrafficConfiguration Analytics Properties Response 
- Parameters that define the configuration of traffic analytics.
- format
FlowLog Format Parameters Response 
- Parameters that define the flow log format.
- id String
- Resource ID.
- location String
- Resource location.
- retentionPolicy RetentionPolicy Parameters Response 
- Parameters that define the retention policy for flow log.
- Map<String,String>
- Resource tags.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- name string
- Resource name.
- provisioningState string
- The provisioning state of the flow log.
- storageId string
- ID of the storage account which is used to store the flow log.
- targetResource stringGuid 
- Guid of network security group to which flow log will be applied.
- targetResource stringId 
- ID of network security group to which flow log will be applied.
- type string
- Resource type.
- enabled boolean
- Flag to enable/disable flow logging.
- flowAnalytics TrafficConfiguration Analytics Properties Response 
- Parameters that define the configuration of traffic analytics.
- format
FlowLog Format Parameters Response 
- Parameters that define the flow log format.
- id string
- Resource ID.
- location string
- Resource location.
- retentionPolicy RetentionPolicy Parameters Response 
- Parameters that define the retention policy for flow log.
- {[key: string]: string}
- Resource tags.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- name str
- Resource name.
- provisioning_state str
- The provisioning state of the flow log.
- storage_id str
- ID of the storage account which is used to store the flow log.
- target_resource_ strguid 
- Guid of network security group to which flow log will be applied.
- target_resource_ strid 
- ID of network security group to which flow log will be applied.
- type str
- Resource type.
- enabled bool
- Flag to enable/disable flow logging.
- flow_analytics_ Trafficconfiguration Analytics Properties Response 
- Parameters that define the configuration of traffic analytics.
- format
FlowLog Format Parameters Response 
- Parameters that define the flow log format.
- id str
- Resource ID.
- location str
- Resource location.
- retention_policy RetentionPolicy Parameters Response 
- Parameters that define the retention policy for flow log.
- Mapping[str, str]
- Resource tags.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- provisioningState String
- The provisioning state of the flow log.
- storageId String
- ID of the storage account which is used to store the flow log.
- targetResource StringGuid 
- Guid of network security group to which flow log will be applied.
- targetResource StringId 
- ID of network security group to which flow log will be applied.
- type String
- Resource type.
- enabled Boolean
- Flag to enable/disable flow logging.
- flowAnalytics Property MapConfiguration 
- Parameters that define the configuration of traffic analytics.
- format Property Map
- Parameters that define the flow log format.
- id String
- Resource ID.
- location String
- Resource location.
- retentionPolicy Property Map
- Parameters that define the retention policy for flow log.
- Map<String>
- Resource tags.
Supporting Types
FlowLogFormatParametersResponse    
RetentionPolicyParametersResponse   
TrafficAnalyticsConfigurationPropertiesResponse    
- Enabled bool
- Flag to enable/disable traffic analytics.
- TrafficAnalytics intInterval 
- The interval in minutes which would decide how frequently TA service should do flow analytics.
- WorkspaceId string
- The resource guid of the attached workspace.
- WorkspaceRegion string
- The location of the attached workspace.
- WorkspaceResource stringId 
- Resource Id of the attached workspace.
- Enabled bool
- Flag to enable/disable traffic analytics.
- TrafficAnalytics intInterval 
- The interval in minutes which would decide how frequently TA service should do flow analytics.
- WorkspaceId string
- The resource guid of the attached workspace.
- WorkspaceRegion string
- The location of the attached workspace.
- WorkspaceResource stringId 
- Resource Id of the attached workspace.
- enabled Boolean
- Flag to enable/disable traffic analytics.
- trafficAnalytics IntegerInterval 
- The interval in minutes which would decide how frequently TA service should do flow analytics.
- workspaceId String
- The resource guid of the attached workspace.
- workspaceRegion String
- The location of the attached workspace.
- workspaceResource StringId 
- Resource Id of the attached workspace.
- enabled boolean
- Flag to enable/disable traffic analytics.
- trafficAnalytics numberInterval 
- The interval in minutes which would decide how frequently TA service should do flow analytics.
- workspaceId string
- The resource guid of the attached workspace.
- workspaceRegion string
- The location of the attached workspace.
- workspaceResource stringId 
- Resource Id of the attached workspace.
- enabled bool
- Flag to enable/disable traffic analytics.
- traffic_analytics_ intinterval 
- The interval in minutes which would decide how frequently TA service should do flow analytics.
- workspace_id str
- The resource guid of the attached workspace.
- workspace_region str
- The location of the attached workspace.
- workspace_resource_ strid 
- Resource Id of the attached workspace.
- enabled Boolean
- Flag to enable/disable traffic analytics.
- trafficAnalytics NumberInterval 
- The interval in minutes which would decide how frequently TA service should do flow analytics.
- workspaceId String
- The resource guid of the attached workspace.
- workspaceRegion String
- The location of the attached workspace.
- workspaceResource StringId 
- Resource Id of the attached workspace.
TrafficAnalyticsPropertiesResponse   
- NetworkWatcher Pulumi.Flow Analytics Configuration Azure Native. Network. Inputs. Traffic Analytics Configuration Properties Response 
- Parameters that define the configuration of traffic analytics.
- NetworkWatcher TrafficFlow Analytics Configuration Analytics Configuration Properties Response 
- Parameters that define the configuration of traffic analytics.
- networkWatcher TrafficFlow Analytics Configuration Analytics Configuration Properties Response 
- Parameters that define the configuration of traffic analytics.
- networkWatcher TrafficFlow Analytics Configuration Analytics Configuration Properties Response 
- Parameters that define the configuration of traffic analytics.
- network_watcher_ Trafficflow_ analytics_ configuration Analytics Configuration Properties Response 
- Parameters that define the configuration of traffic analytics.
- networkWatcher Property MapFlow Analytics Configuration 
- Parameters that define the configuration of traffic analytics.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi