Network Management v1 API - Class VpcFlowLogsConfig (2.13.0)

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

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

A configuration to generate VPC Flow Logs.

Inheritance

object > VpcFlowLogsConfig

Namespace

Google.Cloud.NetworkManagement.V1

Assembly

Google.Cloud.NetworkManagement.V1.dll

Constructors

VpcFlowLogsConfig()

public VpcFlowLogsConfig()

VpcFlowLogsConfig(VpcFlowLogsConfig)

public VpcFlowLogsConfig(VpcFlowLogsConfig other)
Parameter
Name Description
other VpcFlowLogsConfig

Properties

AggregationInterval

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

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

Property Value
Type Description
VpcFlowLogsConfigTypesAggregationInterval

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The time the config was created.

Property Value
Type Description
Timestamp

Description

public string Description { get; set; }

Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.

Property Value
Type Description
string

FilterExpr

public string FilterExpr { get; set; }

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

Property Value
Type Description
string

FlowSampling

public float FlowSampling { get; set; }

Optional. 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

HasDescription

public bool HasDescription { get; }

Gets whether the "description" 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

HasState

public bool HasState { get; }

Gets whether the "state" field is set

Property Value
Type Description
bool

HasTargetResourceState

public bool HasTargetResourceState { get; }

Gets whether the "target_resource_state" 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

Labels

public MapField<string, string> Labels { get; }

Optional. Resource labels to represent user-provided metadata.

Property Value
Type Description
MapFieldstringstring

Metadata

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

Optional. 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; }

Optional. 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; }

Identifier. Unique name of the configuration using the form: projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}

Property Value
Type Description
string

State

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

Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled.

Property Value
Type Description
VpcFlowLogsConfigTypesState

TargetResourceCase

public VpcFlowLogsConfig.TargetResourceOneofCase TargetResourceCase { get; }
Property Value
Type Description
VpcFlowLogsConfigTargetResourceOneofCase

TargetResourceState

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

Output only. A diagnostic bit - describes the state of the configured target resource for diagnostic purposes.

Property Value
Type Description
VpcFlowLogsConfigTypesTargetResourceState

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The time the config was updated.

Property Value
Type Description
Timestamp

VpcFlowLogsConfigName

public VpcFlowLogsConfigName VpcFlowLogsConfigName { get; set; }

VpcFlowLogsConfigName-typed view over the Name resource name property.

Property Value
Type Description
VpcFlowLogsConfigName

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