NetworkWatcherFlowLog
Manages a Network Watcher Flow Log.
Create a NetworkWatcherFlowLog Resource
new NetworkWatcherFlowLog(name: string, args: NetworkWatcherFlowLogArgs, opts?: CustomResourceOptions);def NetworkWatcherFlowLog(resource_name, opts=None, enabled=None, network_security_group_id=None, network_watcher_name=None, resource_group_name=None, retention_policy=None, storage_account_id=None, traffic_analytics=None, version=None, __props__=None);func NewNetworkWatcherFlowLog(ctx *Context, name string, args NetworkWatcherFlowLogArgs, opts ...ResourceOption) (*NetworkWatcherFlowLog, error)public NetworkWatcherFlowLog(string name, NetworkWatcherFlowLogArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NetworkWatcherFlowLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkWatcherFlowLogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkWatcherFlowLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
NetworkWatcherFlowLog Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NetworkWatcherFlowLog resource accepts the following input properties:
- Enabled bool
Boolean flag to enable/disable traffic analytics.
- Network
Security stringGroup Id The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- Network
Watcher stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- Retention
Policy NetworkWatcher Flow Log Retention Policy Args A
retention_policyblock as documented below.- Storage
Account stringId The ID of the Storage Account where flow logs are stored.
- Traffic
Analytics NetworkWatcher Flow Log Traffic Analytics Args A
traffic_analyticsblock as documented below.- Version int
The version (revision) of the flow log. Possible values are
1and2.
- Enabled bool
Boolean flag to enable/disable traffic analytics.
- Network
Security stringGroup Id The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- Network
Watcher stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- Retention
Policy NetworkWatcher Flow Log Retention Policy A
retention_policyblock as documented below.- Storage
Account stringId The ID of the Storage Account where flow logs are stored.
- Traffic
Analytics NetworkWatcher Flow Log Traffic Analytics A
traffic_analyticsblock as documented below.- Version int
The version (revision) of the flow log. Possible values are
1and2.
- enabled boolean
Boolean flag to enable/disable traffic analytics.
- network
Security stringGroup Id The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network
Watcher stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention
Policy NetworkWatcher Flow Log Retention Policy A
retention_policyblock as documented below.- storage
Account stringId The ID of the Storage Account where flow logs are stored.
- traffic
Analytics NetworkWatcher Flow Log Traffic Analytics A
traffic_analyticsblock as documented below.- version number
The version (revision) of the flow log. Possible values are
1and2.
- enabled bool
Boolean flag to enable/disable traffic analytics.
- network_
security_ strgroup_ id The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network_
watcher_ strname The name of the Network Watcher. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention_
policy Dict[NetworkWatcher Flow Log Retention Policy] A
retention_policyblock as documented below.- storage_
account_ strid The ID of the Storage Account where flow logs are stored.
- traffic_
analytics Dict[NetworkWatcher Flow Log Traffic Analytics] A
traffic_analyticsblock as documented below.- version float
The version (revision) of the flow log. Possible values are
1and2.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkWatcherFlowLog resource produces the following output properties:
Look up an Existing NetworkWatcherFlowLog Resource
Get an existing NetworkWatcherFlowLog resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NetworkWatcherFlowLogState, opts?: CustomResourceOptions): NetworkWatcherFlowLogstatic get(resource_name, id, opts=None, enabled=None, network_security_group_id=None, network_watcher_name=None, resource_group_name=None, retention_policy=None, storage_account_id=None, traffic_analytics=None, version=None, __props__=None);func GetNetworkWatcherFlowLog(ctx *Context, name string, id IDInput, state *NetworkWatcherFlowLogState, opts ...ResourceOption) (*NetworkWatcherFlowLog, error)public static NetworkWatcherFlowLog Get(string name, Input<string> id, NetworkWatcherFlowLogState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Enabled bool
Boolean flag to enable/disable traffic analytics.
- Network
Security stringGroup Id The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- Network
Watcher stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- Retention
Policy NetworkWatcher Flow Log Retention Policy Args A
retention_policyblock as documented below.- Storage
Account stringId The ID of the Storage Account where flow logs are stored.
- Traffic
Analytics NetworkWatcher Flow Log Traffic Analytics Args A
traffic_analyticsblock as documented below.- Version int
The version (revision) of the flow log. Possible values are
1and2.
- Enabled bool
Boolean flag to enable/disable traffic analytics.
- Network
Security stringGroup Id The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- Network
Watcher stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- Retention
Policy NetworkWatcher Flow Log Retention Policy A
retention_policyblock as documented below.- Storage
Account stringId The ID of the Storage Account where flow logs are stored.
- Traffic
Analytics NetworkWatcher Flow Log Traffic Analytics A
traffic_analyticsblock as documented below.- Version int
The version (revision) of the flow log. Possible values are
1and2.
- enabled boolean
Boolean flag to enable/disable traffic analytics.
- network
Security stringGroup Id The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network
Watcher stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention
Policy NetworkWatcher Flow Log Retention Policy A
retention_policyblock as documented below.- storage
Account stringId The ID of the Storage Account where flow logs are stored.
- traffic
Analytics NetworkWatcher Flow Log Traffic Analytics A
traffic_analyticsblock as documented below.- version number
The version (revision) of the flow log. Possible values are
1and2.
- enabled bool
Boolean flag to enable/disable traffic analytics.
- network_
security_ strgroup_ id The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network_
watcher_ strname The name of the Network Watcher. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention_
policy Dict[NetworkWatcher Flow Log Retention Policy] A
retention_policyblock as documented below.- storage_
account_ strid The ID of the Storage Account where flow logs are stored.
- traffic_
analytics Dict[NetworkWatcher Flow Log Traffic Analytics] A
traffic_analyticsblock as documented below.- version float
The version (revision) of the flow log. Possible values are
1and2.
Supporting Types
NetworkWatcherFlowLogRetentionPolicy
NetworkWatcherFlowLogTrafficAnalytics
- Enabled bool
Boolean flag to enable/disable traffic analytics.
- Workspace
Id string The resource guid of the attached workspace.
- Workspace
Region string The location of the attached workspace.
- Workspace
Resource stringId The resource ID of the attached workspace.
- Interval
In intMinutes How frequently service should do flow analytics in minutes.
- Enabled bool
Boolean flag to enable/disable traffic analytics.
- Workspace
Id string The resource guid of the attached workspace.
- Workspace
Region string The location of the attached workspace.
- Workspace
Resource stringId The resource ID of the attached workspace.
- Interval
In intMinutes How frequently service should do flow analytics in minutes.
- enabled boolean
Boolean flag to enable/disable traffic analytics.
- workspace
Id string The resource guid of the attached workspace.
- workspace
Region string The location of the attached workspace.
- workspace
Resource stringId The resource ID of the attached workspace.
- interval
In numberMinutes How frequently service should do flow analytics in minutes.
- enabled bool
Boolean flag to enable/disable traffic analytics.
- workspace
Region str The location of the attached workspace.
- workspace_
id str The resource guid of the attached workspace.
- workspace_
resource_ strid The resource ID of the attached workspace.
- interval
In floatMinutes How frequently service should do flow analytics in minutes.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.