Class NetworkWatcherFlowLog
Manages a Network Watcher Flow Log.
Inherited Members
Namespace: Pulumi.Azure.Network
Assembly: Pulumi.Azure.dll
Syntax
public class NetworkWatcherFlowLog : CustomResource
Constructors
View SourceNetworkWatcherFlowLog(String, NetworkWatcherFlowLogArgs, CustomResourceOptions)
Create a NetworkWatcherFlowLog resource with the given unique name, arguments, and options.
Declaration
public NetworkWatcherFlowLog(string name, NetworkWatcherFlowLogArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| NetworkWatcherFlowLogArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEnabled
Boolean flag to enable/disable traffic analytics.
Declaration
public Output<bool> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
NetworkSecurityGroupId
The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
Declaration
public Output<string> NetworkSecurityGroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NetworkWatcherName
The name of the Network Watcher. Changing this forces a new resource to be created.
Declaration
public Output<string> NetworkWatcherName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RetentionPolicy
A retention_policy block as documented below.
Declaration
public Output<NetworkWatcherFlowLogRetentionPolicy> RetentionPolicy { get; }
Property Value
| Type | Description |
|---|---|
| Output<NetworkWatcherFlowLogRetentionPolicy> |
StorageAccountId
The ID of the Storage Account where flow logs are stored.
Declaration
public Output<string> StorageAccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TrafficAnalytics
A traffic_analytics block as documented below.
Declaration
public Output<NetworkWatcherFlowLogTrafficAnalytics> TrafficAnalytics { get; }
Property Value
| Type | Description |
|---|---|
| Output<NetworkWatcherFlowLogTrafficAnalytics> |
Version
The version (revision) of the flow log. Possible values are 1 and 2.
Declaration
public Output<int> Version { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Methods
View SourceGet(String, Input<String>, NetworkWatcherFlowLogState, CustomResourceOptions)
Get an existing NetworkWatcherFlowLog resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static NetworkWatcherFlowLog Get(string name, Input<string> id, NetworkWatcherFlowLogState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| NetworkWatcherFlowLogState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| NetworkWatcherFlowLog |