ibm.HardwareFirewallShared
Explore with Pulumi AI
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:
- Firewall
Type 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].
- string
- (String) The unique identifier of the hardware firewall.
- Hardware
Instance doubleId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
virtual_instance_id
. - Timeouts
Hardware
Firewall Shared Timeouts - Virtual
Instance doubleId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
hardware_instance_id
.
- Firewall
Type 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].
- string
- (String) The unique identifier of the hardware firewall.
- Hardware
Instance float64Id - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
virtual_instance_id
. - Timeouts
Hardware
Firewall Shared Timeouts Args - Virtual
Instance float64Id - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
hardware_instance_id
.
- firewall
Type 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].
- String
- (String) The unique identifier of the hardware firewall.
- hardware
Instance DoubleId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
virtual_instance_id
. - timeouts
Hardware
Firewall Shared Timeouts - virtual
Instance DoubleId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
hardware_instance_id
.
- firewall
Type 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].
- string
- (String) The unique identifier of the hardware firewall.
- hardware
Instance numberId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
virtual_instance_id
. - timeouts
Hardware
Firewall Shared Timeouts - virtual
Instance numberId - 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].
- str
- (String) The unique identifier of the hardware firewall.
- hardware_
instance_ floatid - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
virtual_instance_id
. - timeouts
Hardware
Firewall Shared Timeouts Args - virtual_
instance_ floatid - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
hardware_instance_id
.
- firewall
Type 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].
- String
- (String) The unique identifier of the hardware firewall.
- hardware
Instance NumberId - 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
- virtual
Instance NumberId - 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:
- Billing
Item doubleId - Billing Item ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Billing
Item float64Id - Billing Item ID
- Id string
- The provider-assigned unique ID for this managed resource.
- billing
Item DoubleId - Billing Item ID
- id String
- The provider-assigned unique ID for this managed resource.
- billing
Item numberId - Billing Item ID
- id string
- The provider-assigned unique ID for this managed resource.
- billing_
item_ floatid - Billing Item ID
- id str
- The provider-assigned unique ID for this managed resource.
- billing
Item NumberId - 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.
- Billing
Item doubleId - Billing Item ID
- Firewall
Type 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].
- string
- (String) The unique identifier of the hardware firewall.
- Hardware
Instance doubleId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
virtual_instance_id
. - Timeouts
Hardware
Firewall Shared Timeouts - Virtual
Instance doubleId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
hardware_instance_id
.
- Billing
Item float64Id - Billing Item ID
- Firewall
Type 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].
- string
- (String) The unique identifier of the hardware firewall.
- Hardware
Instance float64Id - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
virtual_instance_id
. - Timeouts
Hardware
Firewall Shared Timeouts Args - Virtual
Instance float64Id - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
hardware_instance_id
.
- billing
Item DoubleId - Billing Item ID
- firewall
Type 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].
- String
- (String) The unique identifier of the hardware firewall.
- hardware
Instance DoubleId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
virtual_instance_id
. - timeouts
Hardware
Firewall Shared Timeouts - virtual
Instance DoubleId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
hardware_instance_id
.
- billing
Item numberId - Billing Item ID
- firewall
Type 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].
- string
- (String) The unique identifier of the hardware firewall.
- hardware
Instance numberId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
virtual_instance_id
. - timeouts
Hardware
Firewall Shared Timeouts - virtual
Instance numberId - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
hardware_instance_id
.
- billing_
item_ floatid - 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].
- str
- (String) The unique identifier of the hardware firewall.
- hardware_
instance_ floatid - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
virtual_instance_id
. - timeouts
Hardware
Firewall Shared Timeouts Args - virtual_
instance_ floatid - Specifies the ID of particular guest on which firewall shared is to be deployed. Note This reference conflicts with
hardware_instance_id
.
- billing
Item NumberId - Billing Item ID
- firewall
Type 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].
- String
- (String) The unique identifier of the hardware firewall.
- hardware
Instance NumberId - 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
- virtual
Instance NumberId - 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
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.