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
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class PacketMirroring : CustomResource
Constructors
View SourcePacketMirroring(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 SourceCollectorIlb
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> |
Description
A human-readable description of the rule.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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> |
Name
The name of the packet mirroring rule
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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> |
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> |
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 SourceGet(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 |