1. Packages
  2. Packages
  3. Panos Provider
  4. API Docs
  5. VirtualWire
Viewing docs for panos 2.0.11
published on Tuesday, Apr 28, 2026 by paloaltonetworks
Viewing docs for panos 2.0.11
published on Tuesday, Apr 28, 2026 by paloaltonetworks

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as panos from "@pulumi/panos";
    
    const tmpl = new panos.Template("tmpl", {
        location: {
            panorama: {},
        },
        name: "my-template",
    });
    const iface1 = new panos.EthernetInterface("iface1", {
        location: {
            template: {
                name: tmpl.name,
                vsys: "vsys1",
            },
        },
        name: "ethernet1/1",
        virtualWire: {},
    });
    const iface2 = new panos.EthernetInterface("iface2", {
        location: {
            template: {
                name: tmpl.name,
                vsys: "vsys1",
            },
        },
        name: "ethernet1/2",
        virtualWire: {},
    });
    const example = new panos.VirtualWire("example", {
        location: {
            template: {
                name: tmpl.name,
            },
        },
        name: "vw-1",
        interface1: "ethernet1/1",
        interface2: "ethernet1/2",
    });
    
    import pulumi
    import pulumi_panos as panos
    
    tmpl = panos.Template("tmpl",
        location={
            "panorama": {},
        },
        name="my-template")
    iface1 = panos.EthernetInterface("iface1",
        location={
            "template": {
                "name": tmpl.name,
                "vsys": "vsys1",
            },
        },
        name="ethernet1/1",
        virtual_wire={})
    iface2 = panos.EthernetInterface("iface2",
        location={
            "template": {
                "name": tmpl.name,
                "vsys": "vsys1",
            },
        },
        name="ethernet1/2",
        virtual_wire={})
    example = panos.VirtualWire("example",
        location={
            "template": {
                "name": tmpl.name,
            },
        },
        name="vw-1",
        interface1="ethernet1/1",
        interface2="ethernet1/2")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/panos/v2/panos"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tmpl, err := panos.NewTemplate(ctx, "tmpl", &panos.TemplateArgs{
    			Location: &panos.TemplateLocationArgs{
    				Panorama: &panos.TemplateLocationPanoramaArgs{},
    			},
    			Name: pulumi.String("my-template"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = panos.NewEthernetInterface(ctx, "iface1", &panos.EthernetInterfaceArgs{
    			Location: &panos.EthernetInterfaceLocationArgs{
    				Template: &panos.EthernetInterfaceLocationTemplateArgs{
    					Name: tmpl.Name,
    					Vsys: pulumi.String("vsys1"),
    				},
    			},
    			Name:        pulumi.String("ethernet1/1"),
    			VirtualWire: &panos.EthernetInterfaceVirtualWireArgs{},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = panos.NewEthernetInterface(ctx, "iface2", &panos.EthernetInterfaceArgs{
    			Location: &panos.EthernetInterfaceLocationArgs{
    				Template: &panos.EthernetInterfaceLocationTemplateArgs{
    					Name: tmpl.Name,
    					Vsys: pulumi.String("vsys1"),
    				},
    			},
    			Name:        pulumi.String("ethernet1/2"),
    			VirtualWire: &panos.EthernetInterfaceVirtualWireArgs{},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = panos.NewVirtualWire(ctx, "example", &panos.VirtualWireArgs{
    			Location: &panos.VirtualWireLocationArgs{
    				Template: &panos.VirtualWireLocationTemplateArgs{
    					Name: tmpl.Name,
    				},
    			},
    			Name:       pulumi.String("vw-1"),
    			Interface1: pulumi.String("ethernet1/1"),
    			Interface2: pulumi.String("ethernet1/2"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Panos = Pulumi.Panos;
    
    return await Deployment.RunAsync(() => 
    {
        var tmpl = new Panos.Template("tmpl", new()
        {
            Location = new Panos.Inputs.TemplateLocationArgs
            {
                Panorama = null,
            },
            Name = "my-template",
        });
    
        var iface1 = new Panos.EthernetInterface("iface1", new()
        {
            Location = new Panos.Inputs.EthernetInterfaceLocationArgs
            {
                Template = new Panos.Inputs.EthernetInterfaceLocationTemplateArgs
                {
                    Name = tmpl.Name,
                    Vsys = "vsys1",
                },
            },
            Name = "ethernet1/1",
            VirtualWire = null,
        });
    
        var iface2 = new Panos.EthernetInterface("iface2", new()
        {
            Location = new Panos.Inputs.EthernetInterfaceLocationArgs
            {
                Template = new Panos.Inputs.EthernetInterfaceLocationTemplateArgs
                {
                    Name = tmpl.Name,
                    Vsys = "vsys1",
                },
            },
            Name = "ethernet1/2",
            VirtualWire = null,
        });
    
        var example = new Panos.VirtualWire("example", new()
        {
            Location = new Panos.Inputs.VirtualWireLocationArgs
            {
                Template = new Panos.Inputs.VirtualWireLocationTemplateArgs
                {
                    Name = tmpl.Name,
                },
            },
            Name = "vw-1",
            Interface1 = "ethernet1/1",
            Interface2 = "ethernet1/2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.panos.Template;
    import com.pulumi.panos.TemplateArgs;
    import com.pulumi.panos.inputs.TemplateLocationArgs;
    import com.pulumi.panos.inputs.TemplateLocationPanoramaArgs;
    import com.pulumi.panos.EthernetInterface;
    import com.pulumi.panos.EthernetInterfaceArgs;
    import com.pulumi.panos.inputs.EthernetInterfaceLocationArgs;
    import com.pulumi.panos.inputs.EthernetInterfaceLocationTemplateArgs;
    import com.pulumi.panos.inputs.EthernetInterfaceVirtualWireArgs;
    import com.pulumi.panos.VirtualWire;
    import com.pulumi.panos.VirtualWireArgs;
    import com.pulumi.panos.inputs.VirtualWireLocationArgs;
    import com.pulumi.panos.inputs.VirtualWireLocationTemplateArgs;
    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 tmpl = new Template("tmpl", TemplateArgs.builder()
                .location(TemplateLocationArgs.builder()
                    .panorama(TemplateLocationPanoramaArgs.builder()
                        .build())
                    .build())
                .name("my-template")
                .build());
    
            var iface1 = new EthernetInterface("iface1", EthernetInterfaceArgs.builder()
                .location(EthernetInterfaceLocationArgs.builder()
                    .template(EthernetInterfaceLocationTemplateArgs.builder()
                        .name(tmpl.name())
                        .vsys("vsys1")
                        .build())
                    .build())
                .name("ethernet1/1")
                .virtualWire(EthernetInterfaceVirtualWireArgs.builder()
                    .build())
                .build());
    
            var iface2 = new EthernetInterface("iface2", EthernetInterfaceArgs.builder()
                .location(EthernetInterfaceLocationArgs.builder()
                    .template(EthernetInterfaceLocationTemplateArgs.builder()
                        .name(tmpl.name())
                        .vsys("vsys1")
                        .build())
                    .build())
                .name("ethernet1/2")
                .virtualWire(EthernetInterfaceVirtualWireArgs.builder()
                    .build())
                .build());
    
            var example = new VirtualWire("example", VirtualWireArgs.builder()
                .location(VirtualWireLocationArgs.builder()
                    .template(VirtualWireLocationTemplateArgs.builder()
                        .name(tmpl.name())
                        .build())
                    .build())
                .name("vw-1")
                .interface1("ethernet1/1")
                .interface2("ethernet1/2")
                .build());
    
        }
    }
    
    resources:
      tmpl:
        type: panos:Template
        properties:
          location:
            panorama: {}
          name: my-template
      iface1:
        type: panos:EthernetInterface
        properties:
          location:
            template:
              name: ${tmpl.name}
              vsys: vsys1
          name: ethernet1/1
          virtualWire: {}
      iface2:
        type: panos:EthernetInterface
        properties:
          location:
            template:
              name: ${tmpl.name}
              vsys: vsys1
          name: ethernet1/2
          virtualWire: {}
      example:
        type: panos:VirtualWire
        properties:
          location:
            template:
              name: ${tmpl.name}
          name: vw-1
          interface1: ethernet1/1
          interface2: ethernet1/2
    

    Create VirtualWire Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualWire(name: string, args: VirtualWireArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualWire(resource_name: str,
                    args: VirtualWireArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualWire(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    location: Optional[VirtualWireLocationArgs] = None,
                    interface1: Optional[str] = None,
                    interface2: Optional[str] = None,
                    link_state_pass_through: Optional[VirtualWireLinkStatePassThroughArgs] = None,
                    multicast_firewalling: Optional[VirtualWireMulticastFirewallingArgs] = None,
                    name: Optional[str] = None,
                    tag_allowed: Optional[str] = None)
    func NewVirtualWire(ctx *Context, name string, args VirtualWireArgs, opts ...ResourceOption) (*VirtualWire, error)
    public VirtualWire(string name, VirtualWireArgs args, CustomResourceOptions? opts = null)
    public VirtualWire(String name, VirtualWireArgs args)
    public VirtualWire(String name, VirtualWireArgs args, CustomResourceOptions options)
    
    type: panos:VirtualWire
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VirtualWireArgs
    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 VirtualWireArgs
    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 VirtualWireArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualWireArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualWireArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var virtualWireResource = new Panos.VirtualWire("virtualWireResource", new()
    {
        Location = new Panos.Inputs.VirtualWireLocationArgs
        {
            Ngfw = new Panos.Inputs.VirtualWireLocationNgfwArgs
            {
                NgfwDevice = "string",
            },
            Shared = null,
            Template = new Panos.Inputs.VirtualWireLocationTemplateArgs
            {
                Name = "string",
                NgfwDevice = "string",
                PanoramaDevice = "string",
            },
            TemplateStack = new Panos.Inputs.VirtualWireLocationTemplateStackArgs
            {
                Name = "string",
                NgfwDevice = "string",
                PanoramaDevice = "string",
            },
        },
        Interface1 = "string",
        Interface2 = "string",
        LinkStatePassThrough = new Panos.Inputs.VirtualWireLinkStatePassThroughArgs
        {
            Enable = false,
        },
        MulticastFirewalling = new Panos.Inputs.VirtualWireMulticastFirewallingArgs
        {
            Enable = false,
        },
        Name = "string",
        TagAllowed = "string",
    });
    
    example, err := panos.NewVirtualWire(ctx, "virtualWireResource", &panos.VirtualWireArgs{
    	Location: &panos.VirtualWireLocationArgs{
    		Ngfw: &panos.VirtualWireLocationNgfwArgs{
    			NgfwDevice: pulumi.String("string"),
    		},
    		Shared: &panos.VirtualWireLocationSharedArgs{},
    		Template: &panos.VirtualWireLocationTemplateArgs{
    			Name:           pulumi.String("string"),
    			NgfwDevice:     pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    		TemplateStack: &panos.VirtualWireLocationTemplateStackArgs{
    			Name:           pulumi.String("string"),
    			NgfwDevice:     pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    	},
    	Interface1: pulumi.String("string"),
    	Interface2: pulumi.String("string"),
    	LinkStatePassThrough: &panos.VirtualWireLinkStatePassThroughArgs{
    		Enable: pulumi.Bool(false),
    	},
    	MulticastFirewalling: &panos.VirtualWireMulticastFirewallingArgs{
    		Enable: pulumi.Bool(false),
    	},
    	Name:       pulumi.String("string"),
    	TagAllowed: pulumi.String("string"),
    })
    
    var virtualWireResource = new VirtualWire("virtualWireResource", VirtualWireArgs.builder()
        .location(VirtualWireLocationArgs.builder()
            .ngfw(VirtualWireLocationNgfwArgs.builder()
                .ngfwDevice("string")
                .build())
            .shared(VirtualWireLocationSharedArgs.builder()
                .build())
            .template(VirtualWireLocationTemplateArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .panoramaDevice("string")
                .build())
            .templateStack(VirtualWireLocationTemplateStackArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .panoramaDevice("string")
                .build())
            .build())
        .interface1("string")
        .interface2("string")
        .linkStatePassThrough(VirtualWireLinkStatePassThroughArgs.builder()
            .enable(false)
            .build())
        .multicastFirewalling(VirtualWireMulticastFirewallingArgs.builder()
            .enable(false)
            .build())
        .name("string")
        .tagAllowed("string")
        .build());
    
    virtual_wire_resource = panos.VirtualWire("virtualWireResource",
        location={
            "ngfw": {
                "ngfw_device": "string",
            },
            "shared": {},
            "template": {
                "name": "string",
                "ngfw_device": "string",
                "panorama_device": "string",
            },
            "template_stack": {
                "name": "string",
                "ngfw_device": "string",
                "panorama_device": "string",
            },
        },
        interface1="string",
        interface2="string",
        link_state_pass_through={
            "enable": False,
        },
        multicast_firewalling={
            "enable": False,
        },
        name="string",
        tag_allowed="string")
    
    const virtualWireResource = new panos.VirtualWire("virtualWireResource", {
        location: {
            ngfw: {
                ngfwDevice: "string",
            },
            shared: {},
            template: {
                name: "string",
                ngfwDevice: "string",
                panoramaDevice: "string",
            },
            templateStack: {
                name: "string",
                ngfwDevice: "string",
                panoramaDevice: "string",
            },
        },
        interface1: "string",
        interface2: "string",
        linkStatePassThrough: {
            enable: false,
        },
        multicastFirewalling: {
            enable: false,
        },
        name: "string",
        tagAllowed: "string",
    });
    
    type: panos:VirtualWire
    properties:
        interface1: string
        interface2: string
        linkStatePassThrough:
            enable: false
        location:
            ngfw:
                ngfwDevice: string
            shared: {}
            template:
                name: string
                ngfwDevice: string
                panoramaDevice: string
            templateStack:
                name: string
                ngfwDevice: string
                panoramaDevice: string
        multicastFirewalling:
            enable: false
        name: string
        tagAllowed: string
    

    VirtualWire Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VirtualWire resource accepts the following input properties:

    location Property Map
    The location of this object.
    interface1 String
    Interface 1
    interface2 String
    Interface 2
    linkStatePassThrough Property Map
    multicastFirewalling Property Map
    name String
    tagAllowed String
    Allowed 802.1q VLAN tags

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualWire 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 VirtualWire Resource

    Get an existing VirtualWire 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?: VirtualWireState, opts?: CustomResourceOptions): VirtualWire
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            interface1: Optional[str] = None,
            interface2: Optional[str] = None,
            link_state_pass_through: Optional[VirtualWireLinkStatePassThroughArgs] = None,
            location: Optional[VirtualWireLocationArgs] = None,
            multicast_firewalling: Optional[VirtualWireMulticastFirewallingArgs] = None,
            name: Optional[str] = None,
            tag_allowed: Optional[str] = None) -> VirtualWire
    func GetVirtualWire(ctx *Context, name string, id IDInput, state *VirtualWireState, opts ...ResourceOption) (*VirtualWire, error)
    public static VirtualWire Get(string name, Input<string> id, VirtualWireState? state, CustomResourceOptions? opts = null)
    public static VirtualWire get(String name, Output<String> id, VirtualWireState state, CustomResourceOptions options)
    resources:  _:    type: panos:VirtualWire    get:      id: ${id}
    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:
    interface1 String
    Interface 1
    interface2 String
    Interface 2
    linkStatePassThrough Property Map
    location Property Map
    The location of this object.
    multicastFirewalling Property Map
    name String
    tagAllowed String
    Allowed 802.1q VLAN tags

    Supporting Types

    VirtualWireLinkStatePassThrough, VirtualWireLinkStatePassThroughArgs

    Enable bool
    Enable link state passthrough
    Enable bool
    Enable link state passthrough
    enable Boolean
    Enable link state passthrough
    enable boolean
    Enable link state passthrough
    enable bool
    Enable link state passthrough
    enable Boolean
    Enable link state passthrough

    VirtualWireLocation, VirtualWireLocationArgs

    Ngfw VirtualWireLocationNgfw
    Located in a specific NGFW device
    Shared VirtualWireLocationShared
    Panorama shared object
    Template VirtualWireLocationTemplate
    Located in a specific template
    TemplateStack VirtualWireLocationTemplateStack
    Located in a specific template stack
    Ngfw VirtualWireLocationNgfw
    Located in a specific NGFW device
    Shared VirtualWireLocationShared
    Panorama shared object
    Template VirtualWireLocationTemplate
    Located in a specific template
    TemplateStack VirtualWireLocationTemplateStack
    Located in a specific template stack
    ngfw VirtualWireLocationNgfw
    Located in a specific NGFW device
    shared VirtualWireLocationShared
    Panorama shared object
    template VirtualWireLocationTemplate
    Located in a specific template
    templateStack VirtualWireLocationTemplateStack
    Located in a specific template stack
    ngfw VirtualWireLocationNgfw
    Located in a specific NGFW device
    shared VirtualWireLocationShared
    Panorama shared object
    template VirtualWireLocationTemplate
    Located in a specific template
    templateStack VirtualWireLocationTemplateStack
    Located in a specific template stack
    ngfw VirtualWireLocationNgfw
    Located in a specific NGFW device
    shared VirtualWireLocationShared
    Panorama shared object
    template VirtualWireLocationTemplate
    Located in a specific template
    template_stack VirtualWireLocationTemplateStack
    Located in a specific template stack
    ngfw Property Map
    Located in a specific NGFW device
    shared Property Map
    Panorama shared object
    template Property Map
    Located in a specific template
    templateStack Property Map
    Located in a specific template stack

    VirtualWireLocationNgfw, VirtualWireLocationNgfwArgs

    NgfwDevice string
    The NGFW device
    NgfwDevice string
    The NGFW device
    ngfwDevice String
    The NGFW device
    ngfwDevice string
    The NGFW device
    ngfw_device str
    The NGFW device
    ngfwDevice String
    The NGFW device

    VirtualWireLocationTemplate, VirtualWireLocationTemplateArgs

    Name string
    Specific Panorama template
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    Name string
    Specific Panorama template
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    name String
    Specific Panorama template
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device
    name string
    Specific Panorama template
    ngfwDevice string
    The NGFW device
    panoramaDevice string
    Specific Panorama device
    name str
    Specific Panorama template
    ngfw_device str
    The NGFW device
    panorama_device str
    Specific Panorama device
    name String
    Specific Panorama template
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device

    VirtualWireLocationTemplateStack, VirtualWireLocationTemplateStackArgs

    Name string
    Specific Panorama template stack
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    Name string
    Specific Panorama template stack
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    name String
    Specific Panorama template stack
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device
    name string
    Specific Panorama template stack
    ngfwDevice string
    The NGFW device
    panoramaDevice string
    Specific Panorama device
    name str
    Specific Panorama template stack
    ngfw_device str
    The NGFW device
    panorama_device str
    Specific Panorama device
    name String
    Specific Panorama template stack
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device

    VirtualWireMulticastFirewalling, VirtualWireMulticastFirewallingArgs

    Enable bool
    Enable firewalling for non-unicast traffic
    Enable bool
    Enable firewalling for non-unicast traffic
    enable Boolean
    Enable firewalling for non-unicast traffic
    enable boolean
    Enable firewalling for non-unicast traffic
    enable bool
    Enable firewalling for non-unicast traffic
    enable Boolean
    Enable firewalling for non-unicast traffic

    Package Details

    Repository
    panos paloaltonetworks/terraform-provider-panos
    License
    Notes
    This Pulumi package is based on the panos Terraform Provider.
    Viewing docs for panos 2.0.11
    published on Tuesday, Apr 28, 2026 by paloaltonetworks
      Try Pulumi Cloud free. Your team will thank you.