1. Packages
  2. Ibm Provider
  3. API Docs
  4. MultiVlanFirewall
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.MultiVlanFirewall

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, delete, and update a multi-Vlan firewall resource. For more information, about IBM Cloud multi-Vlan firewall, see getting started with VLANs.

    For more information, see the IBM Cloud (SoftLayer) multi VLAN firewall Request Docs.

    Example Usage

    In the following example, you can create a multi-vlan firewall:

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const firewallFirst = new ibm.MultiVlanFirewall("firewallFirst", {
        addonConfigurations: [
            "FortiGate Security Appliance - Web Filtering Add-on (High Availability)",
            "FortiGate Security Appliance - NGFW Add-on (High Availability)",
            "FortiGate Security Appliance - AV Add-on (High Availability)",
        ],
        datacenter: "dal13",
        firewallType: "FortiGate Security Appliance",
        pod: "pod01",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    firewall_first = ibm.MultiVlanFirewall("firewallFirst",
        addon_configurations=[
            "FortiGate Security Appliance - Web Filtering Add-on (High Availability)",
            "FortiGate Security Appliance - NGFW Add-on (High Availability)",
            "FortiGate Security Appliance - AV Add-on (High Availability)",
        ],
        datacenter="dal13",
        firewall_type="FortiGate Security Appliance",
        pod="pod01")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewMultiVlanFirewall(ctx, "firewallFirst", &ibm.MultiVlanFirewallArgs{
    			AddonConfigurations: pulumi.StringArray{
    				pulumi.String("FortiGate Security Appliance - Web Filtering Add-on (High Availability)"),
    				pulumi.String("FortiGate Security Appliance - NGFW Add-on (High Availability)"),
    				pulumi.String("FortiGate Security Appliance - AV Add-on (High Availability)"),
    			},
    			Datacenter:   pulumi.String("dal13"),
    			FirewallType: pulumi.String("FortiGate Security Appliance"),
    			Pod:          pulumi.String("pod01"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var firewallFirst = new Ibm.MultiVlanFirewall("firewallFirst", new()
        {
            AddonConfigurations = new[]
            {
                "FortiGate Security Appliance - Web Filtering Add-on (High Availability)",
                "FortiGate Security Appliance - NGFW Add-on (High Availability)",
                "FortiGate Security Appliance - AV Add-on (High Availability)",
            },
            Datacenter = "dal13",
            FirewallType = "FortiGate Security Appliance",
            Pod = "pod01",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.MultiVlanFirewall;
    import com.pulumi.ibm.MultiVlanFirewallArgs;
    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 firewallFirst = new MultiVlanFirewall("firewallFirst", MultiVlanFirewallArgs.builder()
                .addonConfigurations(            
                    "FortiGate Security Appliance - Web Filtering Add-on (High Availability)",
                    "FortiGate Security Appliance - NGFW Add-on (High Availability)",
                    "FortiGate Security Appliance - AV Add-on (High Availability)")
                .datacenter("dal13")
                .firewallType("FortiGate Security Appliance")
                .pod("pod01")
                .build());
    
        }
    }
    
    resources:
      firewallFirst:
        type: ibm:MultiVlanFirewall
        properties:
          addonConfigurations:
            - FortiGate Security Appliance - Web Filtering Add-on (High Availability)
            - FortiGate Security Appliance - NGFW Add-on (High Availability)
            - FortiGate Security Appliance - AV Add-on (High Availability)
          datacenter: dal13
          firewallType: FortiGate Security Appliance
          pod: pod01
    

    Argument reference

    Review the argument references that you can specify for your resource.

    • addon_configuration- (Required, List) The list of add-ons that are allowed. Allowed values are FortiGate Security Appliance) Web Filtering Add-on (High Availability),FortiGate Security Appliance - NGFW Add-on (High Availability),FortiGate Security Appliance - AV Add-on (High Availability) or FortiGate Security Appliance - Web Filtering Add-on, FortiGate Security Appliance - NGFW Add-on,FortiGate Security Appliance - AV Add-on.
    • datacenter - (Required, Forces new resource, String)The data center in which the firewall appliance resides.
    • firewall_type - (Required, Forces new resource, String)The type of the firewall device. Supported values include FortiGate Security Appliance and FortiGate Firewall Appliance HA Option.
    • name - (Required, Forces new resource, String)The name of the firewall device.
    • pod - (Required, Forces new resource, String)The pod in which the firewall resides.

    Create MultiVlanFirewall Resource

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

    Constructor syntax

    new MultiVlanFirewall(name: string, args: MultiVlanFirewallArgs, opts?: CustomResourceOptions);
    @overload
    def MultiVlanFirewall(resource_name: str,
                          args: MultiVlanFirewallArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def MultiVlanFirewall(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          datacenter: Optional[str] = None,
                          firewall_type: Optional[str] = None,
                          pod: Optional[str] = None,
                          addon_configurations: Optional[Sequence[str]] = None,
                          multi_vlan_firewall_id: Optional[str] = None,
                          name: Optional[str] = None)
    func NewMultiVlanFirewall(ctx *Context, name string, args MultiVlanFirewallArgs, opts ...ResourceOption) (*MultiVlanFirewall, error)
    public MultiVlanFirewall(string name, MultiVlanFirewallArgs args, CustomResourceOptions? opts = null)
    public MultiVlanFirewall(String name, MultiVlanFirewallArgs args)
    public MultiVlanFirewall(String name, MultiVlanFirewallArgs args, CustomResourceOptions options)
    
    type: ibm:MultiVlanFirewall
    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 MultiVlanFirewallArgs
    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 MultiVlanFirewallArgs
    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 MultiVlanFirewallArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MultiVlanFirewallArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MultiVlanFirewallArgs
    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 multiVlanFirewallResource = new Ibm.MultiVlanFirewall("multiVlanFirewallResource", new()
    {
        Datacenter = "string",
        FirewallType = "string",
        Pod = "string",
        AddonConfigurations = new[]
        {
            "string",
        },
        MultiVlanFirewallId = "string",
        Name = "string",
    });
    
    example, err := ibm.NewMultiVlanFirewall(ctx, "multiVlanFirewallResource", &ibm.MultiVlanFirewallArgs{
    	Datacenter:   pulumi.String("string"),
    	FirewallType: pulumi.String("string"),
    	Pod:          pulumi.String("string"),
    	AddonConfigurations: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	MultiVlanFirewallId: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    })
    
    var multiVlanFirewallResource = new MultiVlanFirewall("multiVlanFirewallResource", MultiVlanFirewallArgs.builder()
        .datacenter("string")
        .firewallType("string")
        .pod("string")
        .addonConfigurations("string")
        .multiVlanFirewallId("string")
        .name("string")
        .build());
    
    multi_vlan_firewall_resource = ibm.MultiVlanFirewall("multiVlanFirewallResource",
        datacenter="string",
        firewall_type="string",
        pod="string",
        addon_configurations=["string"],
        multi_vlan_firewall_id="string",
        name="string")
    
    const multiVlanFirewallResource = new ibm.MultiVlanFirewall("multiVlanFirewallResource", {
        datacenter: "string",
        firewallType: "string",
        pod: "string",
        addonConfigurations: ["string"],
        multiVlanFirewallId: "string",
        name: "string",
    });
    
    type: ibm:MultiVlanFirewall
    properties:
        addonConfigurations:
            - string
        datacenter: string
        firewallType: string
        multiVlanFirewallId: string
        name: string
        pod: string
    

    MultiVlanFirewall 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 MultiVlanFirewall resource accepts the following input properties:

    Datacenter string
    Datacenter name
    FirewallType string
    Firewall type
    Pod string
    POD name
    AddonConfigurations List<string>
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    MultiVlanFirewallId string
    (String) The unique identifier of the multi VLAN firewall.
    Name string
    name
    Datacenter string
    Datacenter name
    FirewallType string
    Firewall type
    Pod string
    POD name
    AddonConfigurations []string
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    MultiVlanFirewallId string
    (String) The unique identifier of the multi VLAN firewall.
    Name string
    name
    datacenter String
    Datacenter name
    firewallType String
    Firewall type
    pod String
    POD name
    addonConfigurations List<String>
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    multiVlanFirewallId String
    (String) The unique identifier of the multi VLAN firewall.
    name String
    name
    datacenter string
    Datacenter name
    firewallType string
    Firewall type
    pod string
    POD name
    addonConfigurations string[]
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    multiVlanFirewallId string
    (String) The unique identifier of the multi VLAN firewall.
    name string
    name
    datacenter str
    Datacenter name
    firewall_type str
    Firewall type
    pod str
    POD name
    addon_configurations Sequence[str]
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    multi_vlan_firewall_id str
    (String) The unique identifier of the multi VLAN firewall.
    name str
    name
    datacenter String
    Datacenter name
    firewallType String
    Firewall type
    pod String
    POD name
    addonConfigurations List<String>
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    multiVlanFirewallId String
    (String) The unique identifier of the multi VLAN firewall.
    name String
    name

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Password string
    (String) The password that is used to log in into the device.
    PrivateIp string
    (String) The private gateway IP address.
    PrivateVlanId double
    (String) The ID of the Private VLAN for accessing this gateway.
    PublicIp string
    (String) The public gateway IP address.
    PublicIpv6 string
    (String) The public gateway IPv6 address.
    PublicVlanId double
    (String) The ID of the Public VLAN for accessing this gateway.
    Username string
    (String) The username that is used to log in into the device.
    Id string
    The provider-assigned unique ID for this managed resource.
    Password string
    (String) The password that is used to log in into the device.
    PrivateIp string
    (String) The private gateway IP address.
    PrivateVlanId float64
    (String) The ID of the Private VLAN for accessing this gateway.
    PublicIp string
    (String) The public gateway IP address.
    PublicIpv6 string
    (String) The public gateway IPv6 address.
    PublicVlanId float64
    (String) The ID of the Public VLAN for accessing this gateway.
    Username string
    (String) The username that is used to log in into the device.
    id String
    The provider-assigned unique ID for this managed resource.
    password String
    (String) The password that is used to log in into the device.
    privateIp String
    (String) The private gateway IP address.
    privateVlanId Double
    (String) The ID of the Private VLAN for accessing this gateway.
    publicIp String
    (String) The public gateway IP address.
    publicIpv6 String
    (String) The public gateway IPv6 address.
    publicVlanId Double
    (String) The ID of the Public VLAN for accessing this gateway.
    username String
    (String) The username that is used to log in into the device.
    id string
    The provider-assigned unique ID for this managed resource.
    password string
    (String) The password that is used to log in into the device.
    privateIp string
    (String) The private gateway IP address.
    privateVlanId number
    (String) The ID of the Private VLAN for accessing this gateway.
    publicIp string
    (String) The public gateway IP address.
    publicIpv6 string
    (String) The public gateway IPv6 address.
    publicVlanId number
    (String) The ID of the Public VLAN for accessing this gateway.
    username string
    (String) The username that is used to log in into the device.
    id str
    The provider-assigned unique ID for this managed resource.
    password str
    (String) The password that is used to log in into the device.
    private_ip str
    (String) The private gateway IP address.
    private_vlan_id float
    (String) The ID of the Private VLAN for accessing this gateway.
    public_ip str
    (String) The public gateway IP address.
    public_ipv6 str
    (String) The public gateway IPv6 address.
    public_vlan_id float
    (String) The ID of the Public VLAN for accessing this gateway.
    username str
    (String) The username that is used to log in into the device.
    id String
    The provider-assigned unique ID for this managed resource.
    password String
    (String) The password that is used to log in into the device.
    privateIp String
    (String) The private gateway IP address.
    privateVlanId Number
    (String) The ID of the Private VLAN for accessing this gateway.
    publicIp String
    (String) The public gateway IP address.
    publicIpv6 String
    (String) The public gateway IPv6 address.
    publicVlanId Number
    (String) The ID of the Public VLAN for accessing this gateway.
    username String
    (String) The username that is used to log in into the device.

    Look up Existing MultiVlanFirewall Resource

    Get an existing MultiVlanFirewall 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?: MultiVlanFirewallState, opts?: CustomResourceOptions): MultiVlanFirewall
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            addon_configurations: Optional[Sequence[str]] = None,
            datacenter: Optional[str] = None,
            firewall_type: Optional[str] = None,
            multi_vlan_firewall_id: Optional[str] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            pod: Optional[str] = None,
            private_ip: Optional[str] = None,
            private_vlan_id: Optional[float] = None,
            public_ip: Optional[str] = None,
            public_ipv6: Optional[str] = None,
            public_vlan_id: Optional[float] = None,
            username: Optional[str] = None) -> MultiVlanFirewall
    func GetMultiVlanFirewall(ctx *Context, name string, id IDInput, state *MultiVlanFirewallState, opts ...ResourceOption) (*MultiVlanFirewall, error)
    public static MultiVlanFirewall Get(string name, Input<string> id, MultiVlanFirewallState? state, CustomResourceOptions? opts = null)
    public static MultiVlanFirewall get(String name, Output<String> id, MultiVlanFirewallState state, CustomResourceOptions options)
    resources:  _:    type: ibm:MultiVlanFirewall    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:
    AddonConfigurations List<string>
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    Datacenter string
    Datacenter name
    FirewallType string
    Firewall type
    MultiVlanFirewallId string
    (String) The unique identifier of the multi VLAN firewall.
    Name string
    name
    Password string
    (String) The password that is used to log in into the device.
    Pod string
    POD name
    PrivateIp string
    (String) The private gateway IP address.
    PrivateVlanId double
    (String) The ID of the Private VLAN for accessing this gateway.
    PublicIp string
    (String) The public gateway IP address.
    PublicIpv6 string
    (String) The public gateway IPv6 address.
    PublicVlanId double
    (String) The ID of the Public VLAN for accessing this gateway.
    Username string
    (String) The username that is used to log in into the device.
    AddonConfigurations []string
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    Datacenter string
    Datacenter name
    FirewallType string
    Firewall type
    MultiVlanFirewallId string
    (String) The unique identifier of the multi VLAN firewall.
    Name string
    name
    Password string
    (String) The password that is used to log in into the device.
    Pod string
    POD name
    PrivateIp string
    (String) The private gateway IP address.
    PrivateVlanId float64
    (String) The ID of the Private VLAN for accessing this gateway.
    PublicIp string
    (String) The public gateway IP address.
    PublicIpv6 string
    (String) The public gateway IPv6 address.
    PublicVlanId float64
    (String) The ID of the Public VLAN for accessing this gateway.
    Username string
    (String) The username that is used to log in into the device.
    addonConfigurations List<String>
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    datacenter String
    Datacenter name
    firewallType String
    Firewall type
    multiVlanFirewallId String
    (String) The unique identifier of the multi VLAN firewall.
    name String
    name
    password String
    (String) The password that is used to log in into the device.
    pod String
    POD name
    privateIp String
    (String) The private gateway IP address.
    privateVlanId Double
    (String) The ID of the Private VLAN for accessing this gateway.
    publicIp String
    (String) The public gateway IP address.
    publicIpv6 String
    (String) The public gateway IPv6 address.
    publicVlanId Double
    (String) The ID of the Public VLAN for accessing this gateway.
    username String
    (String) The username that is used to log in into the device.
    addonConfigurations string[]
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    datacenter string
    Datacenter name
    firewallType string
    Firewall type
    multiVlanFirewallId string
    (String) The unique identifier of the multi VLAN firewall.
    name string
    name
    password string
    (String) The password that is used to log in into the device.
    pod string
    POD name
    privateIp string
    (String) The private gateway IP address.
    privateVlanId number
    (String) The ID of the Private VLAN for accessing this gateway.
    publicIp string
    (String) The public gateway IP address.
    publicIpv6 string
    (String) The public gateway IPv6 address.
    publicVlanId number
    (String) The ID of the Public VLAN for accessing this gateway.
    username string
    (String) The username that is used to log in into the device.
    addon_configurations Sequence[str]
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    datacenter str
    Datacenter name
    firewall_type str
    Firewall type
    multi_vlan_firewall_id str
    (String) The unique identifier of the multi VLAN firewall.
    name str
    name
    password str
    (String) The password that is used to log in into the device.
    pod str
    POD name
    private_ip str
    (String) The private gateway IP address.
    private_vlan_id float
    (String) The ID of the Private VLAN for accessing this gateway.
    public_ip str
    (String) The public gateway IP address.
    public_ipv6 str
    (String) The public gateway IPv6 address.
    public_vlan_id float
    (String) The ID of the Public VLAN for accessing this gateway.
    username str
    (String) The username that is used to log in into the device.
    addonConfigurations List<String>
    High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]
    datacenter String
    Datacenter name
    firewallType String
    Firewall type
    multiVlanFirewallId String
    (String) The unique identifier of the multi VLAN firewall.
    name String
    name
    password String
    (String) The password that is used to log in into the device.
    pod String
    POD name
    privateIp String
    (String) The private gateway IP address.
    privateVlanId Number
    (String) The ID of the Private VLAN for accessing this gateway.
    publicIp String
    (String) The public gateway IP address.
    publicIpv6 String
    (String) The public gateway IPv6 address.
    publicVlanId Number
    (String) The ID of the Public VLAN for accessing this gateway.
    username String
    (String) The username that is used to log in into the device.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud