1. Packages
  2. Fortios
  3. API Docs
  4. fmg
  5. FirewallObjectAddress
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.fmg.FirewallObjectAddress

Explore with Pulumi AI

fortios logo
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

    This resource supports Create/Read/Update/Delete firewall object address for FortiManager.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.FirewallObjectAddress("test1", {
        associatedIntf: "any",
        comment: "test obj address",
        fqdn: "fqdn.google.com",
        type: "fqdn",
    });
    const test2 = new fortios.fmg.FirewallObjectAddress("test2", {
        allowRouting: "disable",
        associatedIntf: "any",
        comment: "test obj address",
        subnet: "2.2.2.0 255.255.255.0",
        type: "ipmask",
    });
    const test3 = new fortios.fmg.FirewallObjectAddress("test3", {
        associatedIntf: "any",
        comment: "test obj address",
        endIp: "2.2.2.100",
        startIp: "2.2.2.1",
        type: "iprange",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.FirewallObjectAddress("test1",
        associated_intf="any",
        comment="test obj address",
        fqdn="fqdn.google.com",
        type="fqdn")
    test2 = fortios.fmg.FirewallObjectAddress("test2",
        allow_routing="disable",
        associated_intf="any",
        comment="test obj address",
        subnet="2.2.2.0 255.255.255.0",
        type="ipmask")
    test3 = fortios.fmg.FirewallObjectAddress("test3",
        associated_intf="any",
        comment="test obj address",
        end_ip="2.2.2.100",
        start_ip="2.2.2.1",
        type="iprange")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/fmg"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fmg.NewFirewallObjectAddress(ctx, "test1", &fmg.FirewallObjectAddressArgs{
    			AssociatedIntf: pulumi.String("any"),
    			Comment:        pulumi.String("test obj address"),
    			Fqdn:           pulumi.String("fqdn.google.com"),
    			Type:           pulumi.String("fqdn"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = fmg.NewFirewallObjectAddress(ctx, "test2", &fmg.FirewallObjectAddressArgs{
    			AllowRouting:   pulumi.String("disable"),
    			AssociatedIntf: pulumi.String("any"),
    			Comment:        pulumi.String("test obj address"),
    			Subnet:         pulumi.String("2.2.2.0 255.255.255.0"),
    			Type:           pulumi.String("ipmask"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = fmg.NewFirewallObjectAddress(ctx, "test3", &fmg.FirewallObjectAddressArgs{
    			AssociatedIntf: pulumi.String("any"),
    			Comment:        pulumi.String("test obj address"),
    			EndIp:          pulumi.String("2.2.2.100"),
    			StartIp:        pulumi.String("2.2.2.1"),
    			Type:           pulumi.String("iprange"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortios = Pulumiverse.Fortios;
    
    return await Deployment.RunAsync(() => 
    {
        var test1 = new Fortios.Fmg.FirewallObjectAddress("test1", new()
        {
            AssociatedIntf = "any",
            Comment = "test obj address",
            Fqdn = "fqdn.google.com",
            Type = "fqdn",
        });
    
        var test2 = new Fortios.Fmg.FirewallObjectAddress("test2", new()
        {
            AllowRouting = "disable",
            AssociatedIntf = "any",
            Comment = "test obj address",
            Subnet = "2.2.2.0 255.255.255.0",
            Type = "ipmask",
        });
    
        var test3 = new Fortios.Fmg.FirewallObjectAddress("test3", new()
        {
            AssociatedIntf = "any",
            Comment = "test obj address",
            EndIp = "2.2.2.100",
            StartIp = "2.2.2.1",
            Type = "iprange",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.FirewallObjectAddress;
    import com.pulumi.fortios.fmg.FirewallObjectAddressArgs;
    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 test1 = new FirewallObjectAddress("test1", FirewallObjectAddressArgs.builder()
                .associatedIntf("any")
                .comment("test obj address")
                .fqdn("fqdn.google.com")
                .type("fqdn")
                .build());
    
            var test2 = new FirewallObjectAddress("test2", FirewallObjectAddressArgs.builder()
                .allowRouting("disable")
                .associatedIntf("any")
                .comment("test obj address")
                .subnet("2.2.2.0 255.255.255.0")
                .type("ipmask")
                .build());
    
            var test3 = new FirewallObjectAddress("test3", FirewallObjectAddressArgs.builder()
                .associatedIntf("any")
                .comment("test obj address")
                .endIp("2.2.2.100")
                .startIp("2.2.2.1")
                .type("iprange")
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:FirewallObjectAddress
        properties:
          associatedIntf: any
          comment: test obj address
          fqdn: fqdn.google.com
          type: fqdn
      test2:
        type: fortios:fmg:FirewallObjectAddress
        properties:
          allowRouting: disable
          associatedIntf: any
          comment: test obj address
          subnet: 2.2.2.0 255.255.255.0
          type: ipmask
      test3:
        type: fortios:fmg:FirewallObjectAddress
        properties:
          associatedIntf: any
          comment: test obj address
          endIp: 2.2.2.100
          startIp: 2.2.2.1
          type: iprange
    

    Create FirewallObjectAddress Resource

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

    Constructor syntax

    new FirewallObjectAddress(name: string, args?: FirewallObjectAddressArgs, opts?: CustomResourceOptions);
    @overload
    def FirewallObjectAddress(resource_name: str,
                              args: Optional[FirewallObjectAddressArgs] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def FirewallObjectAddress(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              adom: Optional[str] = None,
                              allow_routing: Optional[str] = None,
                              associated_intf: Optional[str] = None,
                              comment: Optional[str] = None,
                              end_ip: Optional[str] = None,
                              fqdn: Optional[str] = None,
                              name: Optional[str] = None,
                              start_ip: Optional[str] = None,
                              subnet: Optional[str] = None,
                              type: Optional[str] = None)
    func NewFirewallObjectAddress(ctx *Context, name string, args *FirewallObjectAddressArgs, opts ...ResourceOption) (*FirewallObjectAddress, error)
    public FirewallObjectAddress(string name, FirewallObjectAddressArgs? args = null, CustomResourceOptions? opts = null)
    public FirewallObjectAddress(String name, FirewallObjectAddressArgs args)
    public FirewallObjectAddress(String name, FirewallObjectAddressArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:FirewallObjectAddress
    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 FirewallObjectAddressArgs
    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 FirewallObjectAddressArgs
    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 FirewallObjectAddressArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FirewallObjectAddressArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FirewallObjectAddressArgs
    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 firewallObjectAddressResource = new Fortios.Fmg.FirewallObjectAddress("firewallObjectAddressResource", new()
    {
        Adom = "string",
        AllowRouting = "string",
        AssociatedIntf = "string",
        Comment = "string",
        EndIp = "string",
        Fqdn = "string",
        Name = "string",
        StartIp = "string",
        Subnet = "string",
        Type = "string",
    });
    
    example, err := fmg.NewFirewallObjectAddress(ctx, "firewallObjectAddressResource", &fmg.FirewallObjectAddressArgs{
    	Adom:           pulumi.String("string"),
    	AllowRouting:   pulumi.String("string"),
    	AssociatedIntf: pulumi.String("string"),
    	Comment:        pulumi.String("string"),
    	EndIp:          pulumi.String("string"),
    	Fqdn:           pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	StartIp:        pulumi.String("string"),
    	Subnet:         pulumi.String("string"),
    	Type:           pulumi.String("string"),
    })
    
    var firewallObjectAddressResource = new FirewallObjectAddress("firewallObjectAddressResource", FirewallObjectAddressArgs.builder()
        .adom("string")
        .allowRouting("string")
        .associatedIntf("string")
        .comment("string")
        .endIp("string")
        .fqdn("string")
        .name("string")
        .startIp("string")
        .subnet("string")
        .type("string")
        .build());
    
    firewall_object_address_resource = fortios.fmg.FirewallObjectAddress("firewallObjectAddressResource",
        adom="string",
        allow_routing="string",
        associated_intf="string",
        comment="string",
        end_ip="string",
        fqdn="string",
        name="string",
        start_ip="string",
        subnet="string",
        type="string")
    
    const firewallObjectAddressResource = new fortios.fmg.FirewallObjectAddress("firewallObjectAddressResource", {
        adom: "string",
        allowRouting: "string",
        associatedIntf: "string",
        comment: "string",
        endIp: "string",
        fqdn: "string",
        name: "string",
        startIp: "string",
        subnet: "string",
        type: "string",
    });
    
    type: fortios:fmg:FirewallObjectAddress
    properties:
        adom: string
        allowRouting: string
        associatedIntf: string
        comment: string
        endIp: string
        fqdn: string
        name: string
        startIp: string
        subnet: string
        type: string
    

    FirewallObjectAddress Resource Properties

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

    Inputs

    The FirewallObjectAddress resource accepts the following input properties:

    Adom string
    ADOM name. default is 'root'.
    AllowRouting string
    Enable/disable use of this address in the static route configuration. default is "disable".
    AssociatedIntf string
    Network interface associated with address.
    Comment string
    Comments.
    EndIp string
    Final IP address (inclusive) in the range for the address.
    Fqdn string
    Fully Qualified Domain Name address.
    Name string
    Address name.
    StartIp string
    First IP address (inclusive) in the range for the address.
    Subnet string
    IPv4 address/mask
    Type string
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].
    Adom string
    ADOM name. default is 'root'.
    AllowRouting string
    Enable/disable use of this address in the static route configuration. default is "disable".
    AssociatedIntf string
    Network interface associated with address.
    Comment string
    Comments.
    EndIp string
    Final IP address (inclusive) in the range for the address.
    Fqdn string
    Fully Qualified Domain Name address.
    Name string
    Address name.
    StartIp string
    First IP address (inclusive) in the range for the address.
    Subnet string
    IPv4 address/mask
    Type string
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].
    adom String
    ADOM name. default is 'root'.
    allowRouting String
    Enable/disable use of this address in the static route configuration. default is "disable".
    associatedIntf String
    Network interface associated with address.
    comment String
    Comments.
    endIp String
    Final IP address (inclusive) in the range for the address.
    fqdn String
    Fully Qualified Domain Name address.
    name String
    Address name.
    startIp String
    First IP address (inclusive) in the range for the address.
    subnet String
    IPv4 address/mask
    type String
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].
    adom string
    ADOM name. default is 'root'.
    allowRouting string
    Enable/disable use of this address in the static route configuration. default is "disable".
    associatedIntf string
    Network interface associated with address.
    comment string
    Comments.
    endIp string
    Final IP address (inclusive) in the range for the address.
    fqdn string
    Fully Qualified Domain Name address.
    name string
    Address name.
    startIp string
    First IP address (inclusive) in the range for the address.
    subnet string
    IPv4 address/mask
    type string
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].
    adom str
    ADOM name. default is 'root'.
    allow_routing str
    Enable/disable use of this address in the static route configuration. default is "disable".
    associated_intf str
    Network interface associated with address.
    comment str
    Comments.
    end_ip str
    Final IP address (inclusive) in the range for the address.
    fqdn str
    Fully Qualified Domain Name address.
    name str
    Address name.
    start_ip str
    First IP address (inclusive) in the range for the address.
    subnet str
    IPv4 address/mask
    type str
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].
    adom String
    ADOM name. default is 'root'.
    allowRouting String
    Enable/disable use of this address in the static route configuration. default is "disable".
    associatedIntf String
    Network interface associated with address.
    comment String
    Comments.
    endIp String
    Final IP address (inclusive) in the range for the address.
    fqdn String
    Fully Qualified Domain Name address.
    name String
    Address name.
    startIp String
    First IP address (inclusive) in the range for the address.
    subnet String
    IPv4 address/mask
    type String
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].

    Outputs

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

    Get an existing FirewallObjectAddress 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?: FirewallObjectAddressState, opts?: CustomResourceOptions): FirewallObjectAddress
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            allow_routing: Optional[str] = None,
            associated_intf: Optional[str] = None,
            comment: Optional[str] = None,
            end_ip: Optional[str] = None,
            fqdn: Optional[str] = None,
            name: Optional[str] = None,
            start_ip: Optional[str] = None,
            subnet: Optional[str] = None,
            type: Optional[str] = None) -> FirewallObjectAddress
    func GetFirewallObjectAddress(ctx *Context, name string, id IDInput, state *FirewallObjectAddressState, opts ...ResourceOption) (*FirewallObjectAddress, error)
    public static FirewallObjectAddress Get(string name, Input<string> id, FirewallObjectAddressState? state, CustomResourceOptions? opts = null)
    public static FirewallObjectAddress get(String name, Output<String> id, FirewallObjectAddressState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Adom string
    ADOM name. default is 'root'.
    AllowRouting string
    Enable/disable use of this address in the static route configuration. default is "disable".
    AssociatedIntf string
    Network interface associated with address.
    Comment string
    Comments.
    EndIp string
    Final IP address (inclusive) in the range for the address.
    Fqdn string
    Fully Qualified Domain Name address.
    Name string
    Address name.
    StartIp string
    First IP address (inclusive) in the range for the address.
    Subnet string
    IPv4 address/mask
    Type string
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].
    Adom string
    ADOM name. default is 'root'.
    AllowRouting string
    Enable/disable use of this address in the static route configuration. default is "disable".
    AssociatedIntf string
    Network interface associated with address.
    Comment string
    Comments.
    EndIp string
    Final IP address (inclusive) in the range for the address.
    Fqdn string
    Fully Qualified Domain Name address.
    Name string
    Address name.
    StartIp string
    First IP address (inclusive) in the range for the address.
    Subnet string
    IPv4 address/mask
    Type string
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].
    adom String
    ADOM name. default is 'root'.
    allowRouting String
    Enable/disable use of this address in the static route configuration. default is "disable".
    associatedIntf String
    Network interface associated with address.
    comment String
    Comments.
    endIp String
    Final IP address (inclusive) in the range for the address.
    fqdn String
    Fully Qualified Domain Name address.
    name String
    Address name.
    startIp String
    First IP address (inclusive) in the range for the address.
    subnet String
    IPv4 address/mask
    type String
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].
    adom string
    ADOM name. default is 'root'.
    allowRouting string
    Enable/disable use of this address in the static route configuration. default is "disable".
    associatedIntf string
    Network interface associated with address.
    comment string
    Comments.
    endIp string
    Final IP address (inclusive) in the range for the address.
    fqdn string
    Fully Qualified Domain Name address.
    name string
    Address name.
    startIp string
    First IP address (inclusive) in the range for the address.
    subnet string
    IPv4 address/mask
    type string
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].
    adom str
    ADOM name. default is 'root'.
    allow_routing str
    Enable/disable use of this address in the static route configuration. default is "disable".
    associated_intf str
    Network interface associated with address.
    comment str
    Comments.
    end_ip str
    Final IP address (inclusive) in the range for the address.
    fqdn str
    Fully Qualified Domain Name address.
    name str
    Address name.
    start_ip str
    First IP address (inclusive) in the range for the address.
    subnet str
    IPv4 address/mask
    type str
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].
    adom String
    ADOM name. default is 'root'.
    allowRouting String
    Enable/disable use of this address in the static route configuration. default is "disable".
    associatedIntf String
    Network interface associated with address.
    comment String
    Comments.
    endIp String
    Final IP address (inclusive) in the range for the address.
    fqdn String
    Fully Qualified Domain Name address.
    name String
    Address name.
    startIp String
    First IP address (inclusive) in the range for the address.
    subnet String
    IPv4 address/mask
    type String
    Type of address, Enum: ["ipmask", "iprange", "fqdn"].

    Package Details

    Repository
    fortios pulumiverse/pulumi-fortios
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fortios Terraform Provider.
    fortios logo
    Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse