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

ibm.HardwareFirewallShared

Explore with Pulumi AI

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

    Create, delete, and update a shared hardware firewall. One firewall protects one public VLAN and provides in-bound network packet filtering. You can order or find firewalls in the IBM Cloud infrastructure customer portal by navigating to Network > IP Management > VLANs and clicking the Gateway/Firewall column.

    For more information, about how to configure a firewall, see about hardware firewalls.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const testFirewall = new ibm.HardwareFirewallShared("testFirewall", {
        firewallType: "100MBPS_HARDWARE_FIREWALL",
        hardwareInstanceId: 12345678,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    test_firewall = ibm.HardwareFirewallShared("testFirewall",
        firewall_type="100MBPS_HARDWARE_FIREWALL",
        hardware_instance_id=12345678)
    
    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.NewHardwareFirewallShared(ctx, "testFirewall", &ibm.HardwareFirewallSharedArgs{
    			FirewallType:       pulumi.String("100MBPS_HARDWARE_FIREWALL"),
    			HardwareInstanceId: pulumi.Float64(12345678),
    		})
    		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 testFirewall = new Ibm.HardwareFirewallShared("testFirewall", new()
        {
            FirewallType = "100MBPS_HARDWARE_FIREWALL",
            HardwareInstanceId = 12345678,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.HardwareFirewallShared;
    import com.pulumi.ibm.HardwareFirewallSharedArgs;
    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 testFirewall = new HardwareFirewallShared("testFirewall", HardwareFirewallSharedArgs.builder()
                .firewallType("100MBPS_HARDWARE_FIREWALL")
                .hardwareInstanceId("12345678")
                .build());
    
        }
    }
    
    resources:
      testFirewall:
        type: ibm:HardwareFirewallShared
        properties:
          firewallType: 100MBPS_HARDWARE_FIREWALL
          hardwareInstanceId: '12345678'
    

    Create HardwareFirewallShared Resource

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

    Constructor syntax

    new HardwareFirewallShared(name: string, args: HardwareFirewallSharedArgs, opts?: CustomResourceOptions);
    @overload
    def HardwareFirewallShared(resource_name: str,
                               args: HardwareFirewallSharedArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def HardwareFirewallShared(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               firewall_type: Optional[str] = None,
                               hardware_firewall_shared_id: Optional[str] = None,
                               hardware_instance_id: Optional[float] = None,
                               timeouts: Optional[HardwareFirewallSharedTimeoutsArgs] = None,
                               virtual_instance_id: Optional[float] = None)
    func NewHardwareFirewallShared(ctx *Context, name string, args HardwareFirewallSharedArgs, opts ...ResourceOption) (*HardwareFirewallShared, error)
    public HardwareFirewallShared(string name, HardwareFirewallSharedArgs args, CustomResourceOptions? opts = null)
    public HardwareFirewallShared(String name, HardwareFirewallSharedArgs args)
    public HardwareFirewallShared(String name, HardwareFirewallSharedArgs args, CustomResourceOptions options)
    
    type: ibm:HardwareFirewallShared
    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 HardwareFirewallSharedArgs
    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 HardwareFirewallSharedArgs
    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 HardwareFirewallSharedArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HardwareFirewallSharedArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HardwareFirewallSharedArgs
    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 hardwareFirewallSharedResource = new Ibm.HardwareFirewallShared("hardwareFirewallSharedResource", new()
    {
        FirewallType = "string",
        HardwareFirewallSharedId = "string",
        HardwareInstanceId = 0,
        Timeouts = new Ibm.Inputs.HardwareFirewallSharedTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        VirtualInstanceId = 0,
    });
    
    example, err := ibm.NewHardwareFirewallShared(ctx, "hardwareFirewallSharedResource", &ibm.HardwareFirewallSharedArgs{
    	FirewallType:             pulumi.String("string"),
    	HardwareFirewallSharedId: pulumi.String("string"),
    	HardwareInstanceId:       pulumi.Float64(0),
    	Timeouts: &ibm.HardwareFirewallSharedTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	VirtualInstanceId: pulumi.Float64(0),
    })
    
    var hardwareFirewallSharedResource = new HardwareFirewallShared("hardwareFirewallSharedResource", HardwareFirewallSharedArgs.builder()
        .firewallType("string")
        .hardwareFirewallSharedId("string")
        .hardwareInstanceId(0)
        .timeouts(HardwareFirewallSharedTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .virtualInstanceId(0)
        .build());
    
    hardware_firewall_shared_resource = ibm.HardwareFirewallShared("hardwareFirewallSharedResource",
        firewall_type="string",
        hardware_firewall_shared_id="string",
        hardware_instance_id=0,
        timeouts={
            "create": "string",
            "delete": "string",
        },
        virtual_instance_id=0)
    
    const hardwareFirewallSharedResource = new ibm.HardwareFirewallShared("hardwareFirewallSharedResource", {
        firewallType: "string",
        hardwareFirewallSharedId: "string",
        hardwareInstanceId: 0,
        timeouts: {
            create: "string",
            "delete": "string",
        },
        virtualInstanceId: 0,
    });
    
    type: ibm:HardwareFirewallShared
    properties:
        firewallType: string
        hardwareFirewallSharedId: string
        hardwareInstanceId: 0
        timeouts:
            create: string
            delete: string
        virtualInstanceId: 0
    

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

    FirewallType string
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    HardwareFirewallSharedId string
    (String) The unique identifier of the hardware firewall.
    HardwareInstanceId double
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    Timeouts HardwareFirewallSharedTimeouts
    VirtualInstanceId double
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.
    FirewallType string
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    HardwareFirewallSharedId string
    (String) The unique identifier of the hardware firewall.
    HardwareInstanceId float64
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    Timeouts HardwareFirewallSharedTimeoutsArgs
    VirtualInstanceId float64
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.
    firewallType String
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    hardwareFirewallSharedId String
    (String) The unique identifier of the hardware firewall.
    hardwareInstanceId Double
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    timeouts HardwareFirewallSharedTimeouts
    virtualInstanceId Double
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.
    firewallType string
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    hardwareFirewallSharedId string
    (String) The unique identifier of the hardware firewall.
    hardwareInstanceId number
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    timeouts HardwareFirewallSharedTimeouts
    virtualInstanceId number
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.
    firewall_type str
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    hardware_firewall_shared_id str
    (String) The unique identifier of the hardware firewall.
    hardware_instance_id float
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    timeouts HardwareFirewallSharedTimeoutsArgs
    virtual_instance_id float
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.
    firewallType String
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    hardwareFirewallSharedId String
    (String) The unique identifier of the hardware firewall.
    hardwareInstanceId Number
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    timeouts Property Map
    virtualInstanceId Number
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.

    Outputs

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

    BillingItemId double
    Billing Item ID
    Id string
    The provider-assigned unique ID for this managed resource.
    BillingItemId float64
    Billing Item ID
    Id string
    The provider-assigned unique ID for this managed resource.
    billingItemId Double
    Billing Item ID
    id String
    The provider-assigned unique ID for this managed resource.
    billingItemId number
    Billing Item ID
    id string
    The provider-assigned unique ID for this managed resource.
    billing_item_id float
    Billing Item ID
    id str
    The provider-assigned unique ID for this managed resource.
    billingItemId Number
    Billing Item ID
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing HardwareFirewallShared Resource

    Get an existing HardwareFirewallShared 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?: HardwareFirewallSharedState, opts?: CustomResourceOptions): HardwareFirewallShared
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            billing_item_id: Optional[float] = None,
            firewall_type: Optional[str] = None,
            hardware_firewall_shared_id: Optional[str] = None,
            hardware_instance_id: Optional[float] = None,
            timeouts: Optional[HardwareFirewallSharedTimeoutsArgs] = None,
            virtual_instance_id: Optional[float] = None) -> HardwareFirewallShared
    func GetHardwareFirewallShared(ctx *Context, name string, id IDInput, state *HardwareFirewallSharedState, opts ...ResourceOption) (*HardwareFirewallShared, error)
    public static HardwareFirewallShared Get(string name, Input<string> id, HardwareFirewallSharedState? state, CustomResourceOptions? opts = null)
    public static HardwareFirewallShared get(String name, Output<String> id, HardwareFirewallSharedState state, CustomResourceOptions options)
    resources:  _:    type: ibm:HardwareFirewallShared    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:
    BillingItemId double
    Billing Item ID
    FirewallType string
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    HardwareFirewallSharedId string
    (String) The unique identifier of the hardware firewall.
    HardwareInstanceId double
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    Timeouts HardwareFirewallSharedTimeouts
    VirtualInstanceId double
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.
    BillingItemId float64
    Billing Item ID
    FirewallType string
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    HardwareFirewallSharedId string
    (String) The unique identifier of the hardware firewall.
    HardwareInstanceId float64
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    Timeouts HardwareFirewallSharedTimeoutsArgs
    VirtualInstanceId float64
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.
    billingItemId Double
    Billing Item ID
    firewallType String
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    hardwareFirewallSharedId String
    (String) The unique identifier of the hardware firewall.
    hardwareInstanceId Double
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    timeouts HardwareFirewallSharedTimeouts
    virtualInstanceId Double
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.
    billingItemId number
    Billing Item ID
    firewallType string
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    hardwareFirewallSharedId string
    (String) The unique identifier of the hardware firewall.
    hardwareInstanceId number
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    timeouts HardwareFirewallSharedTimeouts
    virtualInstanceId number
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.
    billing_item_id float
    Billing Item ID
    firewall_type str
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    hardware_firewall_shared_id str
    (String) The unique identifier of the hardware firewall.
    hardware_instance_id float
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    timeouts HardwareFirewallSharedTimeoutsArgs
    virtual_instance_id float
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.
    billingItemId Number
    Billing Item ID
    firewallType String
    Specifies whether it needs to be of particular speed. Firewall type is in between [10MBPS_HARDWARE_FIREWALL, 20MBPS_HARDWARE_FIREWALL, 100MBPS_HARDWARE_FIREWALL, 1000MBPS_HARDWARE_FIREWALL].
    hardwareFirewallSharedId String
    (String) The unique identifier of the hardware firewall.
    hardwareInstanceId Number
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with virtual_instance_id.
    timeouts Property Map
    virtualInstanceId Number
    Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with hardware_instance_id.

    Supporting Types

    HardwareFirewallSharedTimeouts, HardwareFirewallSharedTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    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