Network Management v1 API - Class EffectiveVpcFlowLogsConfig (2.16.0)

public sealed class EffectiveVpcFlowLogsConfig : IMessage<EffectiveVpcFlowLogsConfig>, IEquatable<EffectiveVpcFlowLogsConfig>, IDeepCloneable<EffectiveVpcFlowLogsConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Management v1 API class EffectiveVpcFlowLogsConfig.

A configuration to generate a response for GetEffectiveVpcFlowLogsConfig request.

Inheritance

object > EffectiveVpcFlowLogsConfig

Namespace

Google.Cloud.NetworkManagement.V1

Assembly

Google.Cloud.NetworkManagement.V1.dll

Constructors

EffectiveVpcFlowLogsConfig()

public EffectiveVpcFlowLogsConfig()

EffectiveVpcFlowLogsConfig(EffectiveVpcFlowLogsConfig)

public EffectiveVpcFlowLogsConfig(EffectiveVpcFlowLogsConfig other)
Parameter
Name Description
other EffectiveVpcFlowLogsConfig

Properties

AggregationInterval

public VpcFlowLogsConfig.Types.AggregationInterval AggregationInterval { get; set; }

The aggregation interval for the logs. Default value is INTERVAL_5_SEC.

Property Value
Type Description
VpcFlowLogsConfigTypesAggregationInterval

CrossProjectMetadata

public VpcFlowLogsConfig.Types.CrossProjectMetadata CrossProjectMetadata { get; set; }

Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.

Property Value
Type Description
VpcFlowLogsConfigTypesCrossProjectMetadata

FilterExpr

public string FilterExpr { get; set; }

Export filter used to define which VPC Flow Logs should be logged.

Property Value
Type Description
string

FlowSampling

public float FlowSampling { get; set; }

The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.

Property Value
Type Description
float

HasAggregationInterval

public bool HasAggregationInterval { get; }

Gets whether the "aggregation_interval" field is set

Property Value
Type Description
bool

HasCrossProjectMetadata

public bool HasCrossProjectMetadata { get; }

Gets whether the "cross_project_metadata" field is set

Property Value
Type Description
bool

HasFilterExpr

public bool HasFilterExpr { get; }

Gets whether the "filter_expr" field is set

Property Value
Type Description
bool

HasFlowSampling

public bool HasFlowSampling { get; }

Gets whether the "flow_sampling" field is set

Property Value
Type Description
bool

HasInterconnectAttachment

public bool HasInterconnectAttachment { get; }

Gets whether the "interconnect_attachment" field is set

Property Value
Type Description
bool

HasMetadata

public bool HasMetadata { get; }

Gets whether the "metadata" field is set

Property Value
Type Description
bool

HasNetwork

public bool HasNetwork { get; }

Gets whether the "network" field is set

Property Value
Type Description
bool

HasScope

public bool HasScope { get; }

Gets whether the "scope" field is set

Property Value
Type Description
bool

HasState

public bool HasState { get; }

Gets whether the "state" field is set

Property Value
Type Description
bool

HasSubnet

public bool HasSubnet { get; }

Gets whether the "subnet" field is set

Property Value
Type Description
bool

HasVpnTunnel

public bool HasVpnTunnel { get; }

Gets whether the "vpn_tunnel" field is set

Property Value
Type Description
bool

InterconnectAttachment

public string InterconnectAttachment { get; set; }

Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}

Property Value
Type Description
string

Metadata

public VpcFlowLogsConfig.Types.Metadata Metadata { get; set; }

Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.

Property Value
Type Description
VpcFlowLogsConfigTypesMetadata

MetadataFields

public RepeatedField<string> MetadataFields { get; }

Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.

Property Value
Type Description
RepeatedFieldstring

Name

public string Name { get; set; }

Unique name of the configuration. The name can have one of the following forms:

  • For project-level configurations: projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}

  • For organization-level configurations: organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}

  • For a Compute config, the name will be the path of the subnet: projects/{project_id}/regions/{region}/subnetworks/{subnet_id}

Property Value
Type Description
string

Network

public string Network { get; set; }

Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}

Property Value
Type Description
string

Scope

public EffectiveVpcFlowLogsConfig.Types.Scope Scope { get; set; }

Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).

Property Value
Type Description
EffectiveVpcFlowLogsConfigTypesScope

State

public VpcFlowLogsConfig.Types.State State { get; set; }

The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.

Property Value
Type Description
VpcFlowLogsConfigTypesState

Subnet

public string Subnet { get; set; }

Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}

Property Value
Type Description
string

TargetResourceCase

public EffectiveVpcFlowLogsConfig.TargetResourceOneofCase TargetResourceCase { get; }
Property Value
Type Description
EffectiveVpcFlowLogsConfigTargetResourceOneofCase

VpnTunnel

public string VpnTunnel { get; set; }

Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}

Property Value
Type Description
string