1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. PacketMirroring
Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi

gcp.compute.PacketMirroring

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi

    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:

    Example Usage

    Compute Packet Mirroring Full

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.Instance;
    import com.pulumi.gcp.compute.InstanceArgs;
    import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
    import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
    import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
    import com.pulumi.gcp.compute.Subnetwork;
    import com.pulumi.gcp.compute.SubnetworkArgs;
    import com.pulumi.gcp.compute.HealthCheck;
    import com.pulumi.gcp.compute.HealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.HealthCheckTcpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.ForwardingRule;
    import com.pulumi.gcp.compute.ForwardingRuleArgs;
    import com.pulumi.gcp.compute.PacketMirroring;
    import com.pulumi.gcp.compute.PacketMirroringArgs;
    import com.pulumi.gcp.compute.inputs.PacketMirroringNetworkArgs;
    import com.pulumi.gcp.compute.inputs.PacketMirroringCollectorIlbArgs;
    import com.pulumi.gcp.compute.inputs.PacketMirroringMirroredResourcesArgs;
    import com.pulumi.gcp.compute.inputs.PacketMirroringFilterArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var defaultNetwork = new Network("defaultNetwork");
    
            var mirror = new Instance("mirror", InstanceArgs.builder()        
                .machineType("e2-medium")
                .bootDisk(InstanceBootDiskArgs.builder()
                    .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
                        .image("debian-cloud/debian-11")
                        .build())
                    .build())
                .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
                    .network(defaultNetwork.id())
                    .accessConfigs()
                    .build())
                .build());
    
            var defaultSubnetwork = new Subnetwork("defaultSubnetwork", SubnetworkArgs.builder()        
                .network(defaultNetwork.id())
                .ipCidrRange("10.2.0.0/16")
                .build());
    
            var defaultHealthCheck = new HealthCheck("defaultHealthCheck", HealthCheckArgs.builder()        
                .checkIntervalSec(1)
                .timeoutSec(1)
                .tcpHealthCheck(HealthCheckTcpHealthCheckArgs.builder()
                    .port("80")
                    .build())
                .build());
    
            var defaultRegionBackendService = new RegionBackendService("defaultRegionBackendService", RegionBackendServiceArgs.builder()        
                .healthChecks(defaultHealthCheck.id())
                .build());
    
            var defaultForwardingRule = new ForwardingRule("defaultForwardingRule", ForwardingRuleArgs.builder()        
                .isMirroringCollector(true)
                .ipProtocol("TCP")
                .loadBalancingScheme("INTERNAL")
                .backendService(defaultRegionBackendService.id())
                .allPorts(true)
                .network(defaultNetwork.id())
                .subnetwork(defaultSubnetwork.id())
                .networkTier("PREMIUM")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(defaultSubnetwork)
                    .build());
    
            var foobar = new PacketMirroring("foobar", PacketMirroringArgs.builder()        
                .description("bar")
                .network(PacketMirroringNetworkArgs.builder()
                    .url(defaultNetwork.id())
                    .build())
                .collectorIlb(PacketMirroringCollectorIlbArgs.builder()
                    .url(defaultForwardingRule.id())
                    .build())
                .mirroredResources(PacketMirroringMirroredResourcesArgs.builder()
                    .tags("foo")
                    .instances(PacketMirroringMirroredResourcesInstanceArgs.builder()
                        .url(mirror.id())
                        .build())
                    .build())
                .filter(PacketMirroringFilterArgs.builder()
                    .ipProtocols("tcp")
                    .cidrRanges("0.0.0.0/0")
                    .direction("BOTH")
                    .build())
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      mirror:
        type: gcp:compute:Instance
        properties:
          machineType: e2-medium
          bootDisk:
            initializeParams:
              image: debian-cloud/debian-11
          networkInterfaces:
            - network: ${defaultNetwork.id}
              accessConfigs:
                - {}
      defaultNetwork:
        type: gcp:compute:Network
      defaultSubnetwork:
        type: gcp:compute:Subnetwork
        properties:
          network: ${defaultNetwork.id}
          ipCidrRange: 10.2.0.0/16
      defaultRegionBackendService:
        type: gcp:compute:RegionBackendService
        properties:
          healthChecks:
            - ${defaultHealthCheck.id}
      defaultHealthCheck:
        type: gcp:compute:HealthCheck
        properties:
          checkIntervalSec: 1
          timeoutSec: 1
          tcpHealthCheck:
            port: '80'
      defaultForwardingRule:
        type: gcp:compute:ForwardingRule
        properties:
          isMirroringCollector: true
          ipProtocol: TCP
          loadBalancingScheme: INTERNAL
          backendService: ${defaultRegionBackendService.id}
          allPorts: true
          network: ${defaultNetwork.id}
          subnetwork: ${defaultSubnetwork.id}
          networkTier: PREMIUM
        options:
          dependson:
            - ${defaultSubnetwork}
      foobar:
        type: gcp:compute:PacketMirroring
        properties:
          description: bar
          network:
            url: ${defaultNetwork.id}
          collectorIlb:
            url: ${defaultForwardingRule.id}
          mirroredResources:
            tags:
              - foo
            instances:
              - url: ${mirror.id}
          filter:
            ipProtocols:
              - tcp
            cidrRanges:
              - 0.0.0.0/0
            direction: BOTH
    

    Create PacketMirroring Resource

    new PacketMirroring(name: string, args: PacketMirroringArgs, opts?: CustomResourceOptions);
    @overload
    def PacketMirroring(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        collector_ilb: Optional[PacketMirroringCollectorIlbArgs] = None,
                        description: Optional[str] = None,
                        filter: Optional[PacketMirroringFilterArgs] = None,
                        mirrored_resources: Optional[PacketMirroringMirroredResourcesArgs] = None,
                        name: Optional[str] = None,
                        network: Optional[PacketMirroringNetworkArgs] = None,
                        priority: Optional[int] = None,
                        project: Optional[str] = None,
                        region: Optional[str] = None)
    @overload
    def PacketMirroring(resource_name: str,
                        args: PacketMirroringArgs,
                        opts: Optional[ResourceOptions] = None)
    func NewPacketMirroring(ctx *Context, name string, args PacketMirroringArgs, opts ...ResourceOption) (*PacketMirroring, error)
    public PacketMirroring(string name, PacketMirroringArgs args, CustomResourceOptions? opts = null)
    public PacketMirroring(String name, PacketMirroringArgs args)
    public PacketMirroring(String name, PacketMirroringArgs args, CustomResourceOptions options)
    
    type: gcp:compute:PacketMirroring
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args PacketMirroringArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PacketMirroringArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PacketMirroringArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PacketMirroringArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PacketMirroringArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PacketMirroring Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The PacketMirroring resource accepts the following input properties:

    CollectorIlb PacketMirroringCollectorIlb

    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.

    MirroredResources PacketMirroringMirroredResources

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

    Network PacketMirroringNetwork

    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.

    Description string

    A human-readable description of the rule.

    Filter PacketMirroringFilter

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

    Name string

    The name of the packet mirroring rule

    Priority int

    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.

    Project string

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

    Region string

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

    CollectorIlb PacketMirroringCollectorIlbArgs

    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.

    MirroredResources PacketMirroringMirroredResourcesArgs

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

    Network PacketMirroringNetworkArgs

    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.

    Description string

    A human-readable description of the rule.

    Filter PacketMirroringFilterArgs

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

    Name string

    The name of the packet mirroring rule

    Priority int

    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.

    Project string

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

    Region string

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

    collectorIlb PacketMirroringCollectorIlb

    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.

    mirroredResources PacketMirroringMirroredResources

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

    network PacketMirroringNetwork

    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.

    description String

    A human-readable description of the rule.

    filter PacketMirroringFilter

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

    name String

    The name of the packet mirroring rule

    priority Integer

    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.

    project String

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

    region String

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

    collectorIlb PacketMirroringCollectorIlb

    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.

    mirroredResources PacketMirroringMirroredResources

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

    network PacketMirroringNetwork

    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.

    description string

    A human-readable description of the rule.

    filter PacketMirroringFilter

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

    name string

    The name of the packet mirroring rule

    priority number

    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.

    project string

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

    region string

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

    collector_ilb PacketMirroringCollectorIlbArgs

    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.

    mirrored_resources PacketMirroringMirroredResourcesArgs

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

    network PacketMirroringNetworkArgs

    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.

    description str

    A human-readable description of the rule.

    filter PacketMirroringFilterArgs

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

    name str

    The name of the packet mirroring rule

    priority int

    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.

    project str

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

    region str

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

    collectorIlb Property Map

    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.

    mirroredResources Property Map

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

    network Property Map

    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.

    description String

    A human-readable description of the rule.

    filter Property Map

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

    name String

    The name of the packet mirroring rule

    priority Number

    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.

    project String

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

    region String

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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PacketMirroring resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    id string

    The provider-assigned unique ID for this managed resource.

    id str

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing PacketMirroring Resource

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

    public static get(name: string, id: Input<ID>, state?: PacketMirroringState, opts?: CustomResourceOptions): PacketMirroring
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            collector_ilb: Optional[PacketMirroringCollectorIlbArgs] = None,
            description: Optional[str] = None,
            filter: Optional[PacketMirroringFilterArgs] = None,
            mirrored_resources: Optional[PacketMirroringMirroredResourcesArgs] = None,
            name: Optional[str] = None,
            network: Optional[PacketMirroringNetworkArgs] = None,
            priority: Optional[int] = None,
            project: Optional[str] = None,
            region: Optional[str] = None) -> PacketMirroring
    func GetPacketMirroring(ctx *Context, name string, id IDInput, state *PacketMirroringState, opts ...ResourceOption) (*PacketMirroring, error)
    public static PacketMirroring Get(string name, Input<string> id, PacketMirroringState? state, CustomResourceOptions? opts = null)
    public static PacketMirroring get(String name, Output<String> id, PacketMirroringState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CollectorIlb PacketMirroringCollectorIlb

    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.

    Description string

    A human-readable description of the rule.

    Filter PacketMirroringFilter

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

    MirroredResources PacketMirroringMirroredResources

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

    Name string

    The name of the packet mirroring rule

    Network PacketMirroringNetwork

    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.

    Priority int

    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.

    Project string

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

    Region string

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

    CollectorIlb PacketMirroringCollectorIlbArgs

    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.

    Description string

    A human-readable description of the rule.

    Filter PacketMirroringFilterArgs

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

    MirroredResources PacketMirroringMirroredResourcesArgs

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

    Name string

    The name of the packet mirroring rule

    Network PacketMirroringNetworkArgs

    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.

    Priority int

    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.

    Project string

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

    Region string

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

    collectorIlb PacketMirroringCollectorIlb

    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.

    description String

    A human-readable description of the rule.

    filter PacketMirroringFilter

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

    mirroredResources PacketMirroringMirroredResources

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

    name String

    The name of the packet mirroring rule

    network PacketMirroringNetwork

    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.

    priority Integer

    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.

    project String

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

    region String

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

    collectorIlb PacketMirroringCollectorIlb

    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.

    description string

    A human-readable description of the rule.

    filter PacketMirroringFilter

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

    mirroredResources PacketMirroringMirroredResources

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

    name string

    The name of the packet mirroring rule

    network PacketMirroringNetwork

    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.

    priority number

    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.

    project string

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

    region string

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

    collector_ilb PacketMirroringCollectorIlbArgs

    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.

    description str

    A human-readable description of the rule.

    filter PacketMirroringFilterArgs

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

    mirrored_resources PacketMirroringMirroredResourcesArgs

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

    name str

    The name of the packet mirroring rule

    network PacketMirroringNetworkArgs

    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.

    priority int

    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.

    project str

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

    region str

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

    collectorIlb Property Map

    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.

    description String

    A human-readable description of the rule.

    filter Property Map

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

    mirroredResources Property Map

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

    name String

    The name of the packet mirroring rule

    network Property Map

    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.

    priority Number

    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.

    project String

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

    region String

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

    Supporting Types

    PacketMirroringCollectorIlb, PacketMirroringCollectorIlbArgs

    Url string

    The URL of the forwarding rule.

    Url string

    The URL of the forwarding rule.

    url String

    The URL of the forwarding rule.

    url string

    The URL of the forwarding rule.

    url str

    The URL of the forwarding rule.

    url String

    The URL of the forwarding rule.

    PacketMirroringFilter, PacketMirroringFilterArgs

    CidrRanges List<string>

    IP CIDR ranges that apply as a filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported.

    Direction string

    Direction of traffic to mirror. Default value is BOTH. Possible values are: INGRESS, EGRESS, BOTH.

    IpProtocols List<string>

    Possible IP protocols including tcp, udp, icmp and esp

    CidrRanges []string

    IP CIDR ranges that apply as a filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported.

    Direction string

    Direction of traffic to mirror. Default value is BOTH. Possible values are: INGRESS, EGRESS, BOTH.

    IpProtocols []string

    Possible IP protocols including tcp, udp, icmp and esp

    cidrRanges List<String>

    IP CIDR ranges that apply as a filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported.

    direction String

    Direction of traffic to mirror. Default value is BOTH. Possible values are: INGRESS, EGRESS, BOTH.

    ipProtocols List<String>

    Possible IP protocols including tcp, udp, icmp and esp

    cidrRanges string[]

    IP CIDR ranges that apply as a filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported.

    direction string

    Direction of traffic to mirror. Default value is BOTH. Possible values are: INGRESS, EGRESS, BOTH.

    ipProtocols string[]

    Possible IP protocols including tcp, udp, icmp and esp

    cidr_ranges Sequence[str]

    IP CIDR ranges that apply as a filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported.

    direction str

    Direction of traffic to mirror. Default value is BOTH. Possible values are: INGRESS, EGRESS, BOTH.

    ip_protocols Sequence[str]

    Possible IP protocols including tcp, udp, icmp and esp

    cidrRanges List<String>

    IP CIDR ranges that apply as a filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported.

    direction String

    Direction of traffic to mirror. Default value is BOTH. Possible values are: INGRESS, EGRESS, BOTH.

    ipProtocols List<String>

    Possible IP protocols including tcp, udp, icmp and esp

    PacketMirroringMirroredResources, PacketMirroringMirroredResourcesArgs

    Instances List<PacketMirroringMirroredResourcesInstance>

    All the listed instances will be mirrored. Specify at most 50. Structure is documented below.

    Subnetworks List<PacketMirroringMirroredResourcesSubnetwork>

    All instances in one of these subnetworks will be mirrored. Structure is documented below.

    Tags List<string>

    All instances with these tags will be mirrored.

    Instances []PacketMirroringMirroredResourcesInstance

    All the listed instances will be mirrored. Specify at most 50. Structure is documented below.

    Subnetworks []PacketMirroringMirroredResourcesSubnetwork

    All instances in one of these subnetworks will be mirrored. Structure is documented below.

    Tags []string

    All instances with these tags will be mirrored.

    instances List<PacketMirroringMirroredResourcesInstance>

    All the listed instances will be mirrored. Specify at most 50. Structure is documented below.

    subnetworks List<PacketMirroringMirroredResourcesSubnetwork>

    All instances in one of these subnetworks will be mirrored. Structure is documented below.

    tags List<String>

    All instances with these tags will be mirrored.

    instances PacketMirroringMirroredResourcesInstance[]

    All the listed instances will be mirrored. Specify at most 50. Structure is documented below.

    subnetworks PacketMirroringMirroredResourcesSubnetwork[]

    All instances in one of these subnetworks will be mirrored. Structure is documented below.

    tags string[]

    All instances with these tags will be mirrored.

    instances Sequence[PacketMirroringMirroredResourcesInstance]

    All the listed instances will be mirrored. Specify at most 50. Structure is documented below.

    subnetworks Sequence[PacketMirroringMirroredResourcesSubnetwork]

    All instances in one of these subnetworks will be mirrored. Structure is documented below.

    tags Sequence[str]

    All instances with these tags will be mirrored.

    instances List<Property Map>

    All the listed instances will be mirrored. Specify at most 50. Structure is documented below.

    subnetworks List<Property Map>

    All instances in one of these subnetworks will be mirrored. Structure is documented below.

    tags List<String>

    All instances with these tags will be mirrored.

    PacketMirroringMirroredResourcesInstance, PacketMirroringMirroredResourcesInstanceArgs

    Url string

    The URL of the instances where this rule should be active.


    Url string

    The URL of the instances where this rule should be active.


    url String

    The URL of the instances where this rule should be active.


    url string

    The URL of the instances where this rule should be active.


    url str

    The URL of the instances where this rule should be active.


    url String

    The URL of the instances where this rule should be active.


    PacketMirroringMirroredResourcesSubnetwork, PacketMirroringMirroredResourcesSubnetworkArgs

    Url string

    The URL of the subnetwork where this rule should be active.

    Url string

    The URL of the subnetwork where this rule should be active.

    url String

    The URL of the subnetwork where this rule should be active.

    url string

    The URL of the subnetwork where this rule should be active.

    url str

    The URL of the subnetwork where this rule should be active.

    url String

    The URL of the subnetwork where this rule should be active.

    PacketMirroringNetwork, PacketMirroringNetworkArgs

    Url string

    The full self_link URL of the network where this rule is active.

    Url string

    The full self_link URL of the network where this rule is active.

    url String

    The full self_link URL of the network where this rule is active.

    url string

    The full self_link URL of the network where this rule is active.

    url str

    The full self_link URL of the network where this rule is active.

    url String

    The full self_link URL of the network where this rule is active.

    Import

    PacketMirroring can be imported using any of these accepted formats* projects/{{project}}/regions/{{region}}/packetMirrorings/{{name}} * {{project}}/{{region}}/{{name}} * {{region}}/{{name}} * {{name}} In Terraform v1.5.0 and later, use an import block to import PacketMirroring using one of the formats above. For exampletf import {

    id = “projects/{{project}}/regions/{{region}}/packetMirrorings/{{name}}”

    to = google_compute_packet_mirroring.default }

     $ pulumi import gcp:compute/packetMirroring:PacketMirroring When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), PacketMirroring can be imported using one of the formats above. For example
    
     $ pulumi import gcp:compute/packetMirroring:PacketMirroring default projects/{{project}}/regions/{{region}}/packetMirrorings/{{name}}
    
     $ pulumi import gcp:compute/packetMirroring:PacketMirroring default {{project}}/{{region}}/{{name}}
    
     $ pulumi import gcp:compute/packetMirroring:PacketMirroring default {{region}}/{{name}}
    
     $ pulumi import gcp:compute/packetMirroring:PacketMirroring default {{name}}
    

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the google-beta Terraform Provider.

    gcp logo
    Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi