Show / Hide Table of Contents

Class PacketMirroring

Packet Mirroring mirrors traffic to and from particular VM instances. You can use the collected traffic to help you detect security threats and monitor application performance.

To get more information about PacketMirroring, see:

  • API documentation
  • How-to Guides
  • Using Packet Mirroring
Inheritance
System.Object
Resource
CustomResource
PacketMirroring
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class PacketMirroring : CustomResource

Constructors

View Source

PacketMirroring(String, PacketMirroringArgs, CustomResourceOptions)

Create a PacketMirroring resource with the given unique name, arguments, and options.

Declaration
public PacketMirroring(string name, PacketMirroringArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

PacketMirroringArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

CollectorIlb

The Forwarding Rule resource (of type load_balancing_scheme=INTERNAL) that will be used as collector for mirrored traffic. The specified forwarding rule must have is_mirroring_collector set to true. Structure is documented below.

Declaration
public Output<PacketMirroringCollectorIlb> CollectorIlb { get; }
Property Value
Type Description
Output<PacketMirroringCollectorIlb>
View Source

Description

A human-readable description of the rule.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

Filter

A filter for mirrored traffic. If unset, all traffic is mirrored. Structure is documented below.

Declaration
public Output<PacketMirroringFilter> Filter { get; }
Property Value
Type Description
Output<PacketMirroringFilter>
View Source

MirroredResources

A means of specifying which resources to mirror. Structure is documented below.

Declaration
public Output<PacketMirroringMirroredResources> MirroredResources { get; }
Property Value
Type Description
Output<PacketMirroringMirroredResources>
View Source

Name

The name of the packet mirroring rule

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Network

Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network. Structure is documented below.

Declaration
public Output<PacketMirroringNetwork> Network { get; }
Property Value
Type Description
Output<PacketMirroringNetwork>
View Source

Priority

Since only one rule can be active at a time, priority is used to break ties in the case of two rules that apply to the same instances.

Declaration
public Output<int> Priority { get; }
Property Value
Type Description
Output<System.Int32>
View Source

Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>
View Source

Region

The Region in which the created address should reside. If it is not provided, the provider region is used.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, PacketMirroringState, CustomResourceOptions)

Get an existing PacketMirroring resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static PacketMirroring Get(string name, Input<string> id, PacketMirroringState 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.

PacketMirroringState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
PacketMirroring
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.