azure-native.network.getFlowLog
Explore with Pulumi AI
Gets a flow log resource by name.
Uses Azure REST API version 2024-05-01.
Other available API versions: 2019-11-01, 2019-12-01, 2020-03-01, 2020-04-01, 2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]
. See the version guide for details.
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 dictionary
The following arguments are supported:
- Flow
Log stringName - The name of the flow log resource.
- Network
Watcher stringName - The name of the network watcher.
- Resource
Group stringName - The name of the resource group.
- Flow
Log stringName - The name of the flow log resource.
- Network
Watcher stringName - The name of the network watcher.
- Resource
Group stringName - The name of the resource group.
- flow
Log StringName - The name of the flow log resource.
- network
Watcher StringName - The name of the network watcher.
- resource
Group StringName - The name of the resource group.
- flow
Log stringName - The name of the flow log resource.
- network
Watcher stringName - The name of the network watcher.
- resource
Group 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.
- flow
Log StringName - The name of the flow log resource.
- network
Watcher StringName - The name of the network watcher.
- resource
Group StringName - The name of the resource group.
getFlowLog Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the flow log.
- Storage
Id string - ID of the storage account which is used to store the flow log.
- Target
Resource stringGuid - Guid of network security group to which flow log will be applied.
- Target
Resource 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.
- Enabled
Filtering stringCriteria - 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.
- Flow
Analytics 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.
- Identity
Pulumi.
Azure Native. Network. Outputs. Managed Service Identity Response - FlowLog resource Managed Identity
- Location string
- Resource location.
- Retention
Policy Pulumi.Azure Native. Network. Outputs. Retention Policy Parameters Response - Parameters that define the retention policy for flow log.
- Dictionary<string, string>
- Resource tags.
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the flow log.
- Storage
Id string - ID of the storage account which is used to store the flow log.
- Target
Resource stringGuid - Guid of network security group to which flow log will be applied.
- Target
Resource 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.
- Enabled
Filtering stringCriteria - 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.
- Flow
Analytics TrafficConfiguration Analytics Properties Response - Parameters that define the configuration of traffic analytics.
- Format
Flow
Log Format Parameters Response - Parameters that define the flow log format.
- Id string
- Resource ID.
- Identity
Managed
Service Identity Response - FlowLog resource Managed Identity
- Location string
- Resource location.
- Retention
Policy RetentionPolicy Parameters Response - Parameters that define the retention policy for flow log.
- map[string]string
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the flow log.
- storage
Id String - ID of the storage account which is used to store the flow log.
- target
Resource StringGuid - Guid of network security group to which flow log will be applied.
- target
Resource 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.
- enabled
Filtering StringCriteria - 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.
- flow
Analytics TrafficConfiguration Analytics Properties Response - Parameters that define the configuration of traffic analytics.
- format
Flow
Log Format Parameters Response - Parameters that define the flow log format.
- id String
- Resource ID.
- identity
Managed
Service Identity Response - FlowLog resource Managed Identity
- location String
- Resource location.
- retention
Policy RetentionPolicy Parameters Response - Parameters that define the retention policy for flow log.
- Map<String,String>
- Resource tags.
- azure
Api stringVersion - The Azure API version of the resource.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- name string
- Resource name.
- provisioning
State string - The provisioning state of the flow log.
- storage
Id string - ID of the storage account which is used to store the flow log.
- target
Resource stringGuid - Guid of network security group to which flow log will be applied.
- target
Resource 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.
- enabled
Filtering stringCriteria - 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.
- flow
Analytics TrafficConfiguration Analytics Properties Response - Parameters that define the configuration of traffic analytics.
- format
Flow
Log Format Parameters Response - Parameters that define the flow log format.
- id string
- Resource ID.
- identity
Managed
Service Identity Response - FlowLog resource Managed Identity
- location string
- Resource location.
- retention
Policy RetentionPolicy Parameters Response - Parameters that define the retention policy for flow log.
- {[key: string]: string}
- Resource tags.
- azure_
api_ strversion - The Azure API version of the resource.
- 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.
- enabled_
filtering_ strcriteria - 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.
- flow_
analytics_ Trafficconfiguration Analytics Properties Response - Parameters that define the configuration of traffic analytics.
- format
Flow
Log Format Parameters Response - Parameters that define the flow log format.
- id str
- Resource ID.
- identity
Managed
Service Identity Response - FlowLog resource Managed Identity
- location str
- Resource location.
- retention_
policy RetentionPolicy Parameters Response - Parameters that define the retention policy for flow log.
- Mapping[str, str]
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the flow log.
- storage
Id String - ID of the storage account which is used to store the flow log.
- target
Resource StringGuid - Guid of network security group to which flow log will be applied.
- target
Resource 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.
- enabled
Filtering StringCriteria - 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.
- flow
Analytics Property MapConfiguration - Parameters that define the configuration of traffic analytics.
- format Property Map
- Parameters that define the flow log format.
- id String
- Resource ID.
- identity Property Map
- FlowLog resource Managed Identity
- location String
- Resource location.
- retention
Policy Property Map - Parameters that define the retention policy for flow log.
- Map<String>
- Resource tags.
Supporting Types
FlowLogFormatParametersResponse
ManagedServiceIdentityResponse
- Principal
Id string - The principal id of the system assigned identity. This property will only be provided for a system assigned identity.
- Tenant
Id string - The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.
- Type string
- The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. Network. Inputs. Managed Service Identity Response User Assigned Identities> - The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- Principal
Id string - The principal id of the system assigned identity. This property will only be provided for a system assigned identity.
- Tenant
Id string - The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.
- Type string
- The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.
- User
Assigned map[string]ManagedIdentities Service Identity Response User Assigned Identities - The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal
Id String - The principal id of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id String - The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.
- type String
- The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.
- user
Assigned Map<String,ManagedIdentities Service Identity Response User Assigned Identities> - The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal
Id string - The principal id of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id string - The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.
- type string
- The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.
- user
Assigned {[key: string]: ManagedIdentities Service Identity Response User Assigned Identities} - The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal_
id str - The principal id of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant_
id str - The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.
- type str
- The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.
- user_
assigned_ Mapping[str, Managedidentities Service Identity Response User Assigned Identities] - The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal
Id String - The principal id of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id String - The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.
- type String
- The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.
- user
Assigned Map<Property Map>Identities - The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
ManagedServiceIdentityResponseUserAssignedIdentities
- Client
Id string - The client id of user assigned identity.
- Principal
Id string - The principal id of user assigned identity.
- Client
Id string - The client id of user assigned identity.
- Principal
Id string - The principal id of user assigned identity.
- client
Id String - The client id of user assigned identity.
- principal
Id String - The principal id of user assigned identity.
- client
Id string - The client id of user assigned identity.
- principal
Id string - The principal id of user assigned identity.
- client_
id str - The client id of user assigned identity.
- principal_
id str - The principal id of user assigned identity.
- client
Id String - The client id of user assigned identity.
- principal
Id String - The principal id of user assigned identity.
RetentionPolicyParametersResponse
TrafficAnalyticsConfigurationPropertiesResponse
- 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 string - The resource guid of the attached workspace.
- Workspace
Region string - The location of the attached workspace.
- Workspace
Resource 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 string - The resource guid of the attached workspace.
- Workspace
Region string - The location of the attached workspace.
- Workspace
Resource stringId - Resource Id of the attached workspace.
- enabled Boolean
- Flag to enable/disable traffic analytics.
- traffic
Analytics IntegerInterval - The interval in minutes which would decide how frequently TA service should do flow analytics.
- workspace
Id String - The resource guid of the attached workspace.
- workspace
Region String - The location of the attached workspace.
- workspace
Resource StringId - Resource Id of the attached workspace.
- enabled boolean
- Flag to enable/disable traffic analytics.
- traffic
Analytics numberInterval - The interval in minutes which would decide how frequently TA service should do flow analytics.
- workspace
Id string - The resource guid of the attached workspace.
- workspace
Region string - The location of the attached workspace.
- workspace
Resource 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.
- traffic
Analytics NumberInterval - The interval in minutes which would decide how frequently TA service should do flow analytics.
- workspace
Id String - The resource guid of the attached workspace.
- workspace
Region String - The location of the attached workspace.
- workspace
Resource StringId - Resource Id of the attached workspace.
TrafficAnalyticsPropertiesResponse
- Network
Watcher Pulumi.Flow Analytics Configuration Azure Native. Network. Inputs. Traffic 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.
- network
Watcher 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.
- network_
watcher_ Trafficflow_ analytics_ configuration Analytics Configuration Properties Response - Parameters that define the configuration of traffic analytics.
- network
Watcher 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