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

fortios.firewall.ObjectIppool

Explore with Pulumi AI

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

    Provides a resource to configure IPv4 IP address pools of FortiOS.

    !> Warning: The resource will be deprecated and replaced by new resource fortios.firewall.Ippool, we recommend that you use the new resource.

    Example Usage

    Overload Ippool

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const s1 = new fortios.firewall.ObjectIppool("s1", {
        arpReply: "enable",
        comments: "fdsaf",
        endip: "22.0.0.0",
        startip: "11.0.0.0",
        type: "overload",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    s1 = fortios.firewall.ObjectIppool("s1",
        arp_reply="enable",
        comments="fdsaf",
        endip="22.0.0.0",
        startip="11.0.0.0",
        type="overload")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := firewall.NewObjectIppool(ctx, "s1", &firewall.ObjectIppoolArgs{
    			ArpReply: pulumi.String("enable"),
    			Comments: pulumi.String("fdsaf"),
    			Endip:    pulumi.String("22.0.0.0"),
    			Startip:  pulumi.String("11.0.0.0"),
    			Type:     pulumi.String("overload"),
    		})
    		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 s1 = new Fortios.Firewall.ObjectIppool("s1", new()
        {
            ArpReply = "enable",
            Comments = "fdsaf",
            Endip = "22.0.0.0",
            Startip = "11.0.0.0",
            Type = "overload",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.firewall.ObjectIppool;
    import com.pulumi.fortios.firewall.ObjectIppoolArgs;
    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 s1 = new ObjectIppool("s1", ObjectIppoolArgs.builder()
                .arpReply("enable")
                .comments("fdsaf")
                .endip("22.0.0.0")
                .startip("11.0.0.0")
                .type("overload")
                .build());
    
        }
    }
    
    resources:
      s1:
        type: fortios:firewall:ObjectIppool
        properties:
          arpReply: enable
          comments: fdsaf
          endip: 22.0.0.0
          startip: 11.0.0.0
          type: overload
    

    One-To-One Ippool

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const s2 = new fortios.firewall.ObjectIppool("s2", {
        arpReply: "enable",
        comments: "fdsaf",
        endip: "222.0.0.0",
        startip: "121.0.0.0",
        type: "one-to-one",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    s2 = fortios.firewall.ObjectIppool("s2",
        arp_reply="enable",
        comments="fdsaf",
        endip="222.0.0.0",
        startip="121.0.0.0",
        type="one-to-one")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := firewall.NewObjectIppool(ctx, "s2", &firewall.ObjectIppoolArgs{
    			ArpReply: pulumi.String("enable"),
    			Comments: pulumi.String("fdsaf"),
    			Endip:    pulumi.String("222.0.0.0"),
    			Startip:  pulumi.String("121.0.0.0"),
    			Type:     pulumi.String("one-to-one"),
    		})
    		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 s2 = new Fortios.Firewall.ObjectIppool("s2", new()
        {
            ArpReply = "enable",
            Comments = "fdsaf",
            Endip = "222.0.0.0",
            Startip = "121.0.0.0",
            Type = "one-to-one",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.firewall.ObjectIppool;
    import com.pulumi.fortios.firewall.ObjectIppoolArgs;
    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 s2 = new ObjectIppool("s2", ObjectIppoolArgs.builder()
                .arpReply("enable")
                .comments("fdsaf")
                .endip("222.0.0.0")
                .startip("121.0.0.0")
                .type("one-to-one")
                .build());
    
        }
    }
    
    resources:
      s2:
        type: fortios:firewall:ObjectIppool
        properties:
          arpReply: enable
          comments: fdsaf
          endip: 222.0.0.0
          startip: 121.0.0.0
          type: one-to-one
    

    Create ObjectIppool Resource

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

    Constructor syntax

    new ObjectIppool(name: string, args: ObjectIppoolArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectIppool(resource_name: str,
                     args: ObjectIppoolArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectIppool(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     endip: Optional[str] = None,
                     startip: Optional[str] = None,
                     type: Optional[str] = None,
                     arp_reply: Optional[str] = None,
                     comments: Optional[str] = None,
                     name: Optional[str] = None)
    func NewObjectIppool(ctx *Context, name string, args ObjectIppoolArgs, opts ...ResourceOption) (*ObjectIppool, error)
    public ObjectIppool(string name, ObjectIppoolArgs args, CustomResourceOptions? opts = null)
    public ObjectIppool(String name, ObjectIppoolArgs args)
    public ObjectIppool(String name, ObjectIppoolArgs args, CustomResourceOptions options)
    
    type: fortios:firewall:ObjectIppool
    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 ObjectIppoolArgs
    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 ObjectIppoolArgs
    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 ObjectIppoolArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectIppoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectIppoolArgs
    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 objectIppoolResource = new Fortios.Firewall.ObjectIppool("objectIppoolResource", new()
    {
        Endip = "string",
        Startip = "string",
        Type = "string",
        ArpReply = "string",
        Comments = "string",
        Name = "string",
    });
    
    example, err := firewall.NewObjectIppool(ctx, "objectIppoolResource", &firewall.ObjectIppoolArgs{
    	Endip:    pulumi.String("string"),
    	Startip:  pulumi.String("string"),
    	Type:     pulumi.String("string"),
    	ArpReply: pulumi.String("string"),
    	Comments: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    })
    
    var objectIppoolResource = new ObjectIppool("objectIppoolResource", ObjectIppoolArgs.builder()
        .endip("string")
        .startip("string")
        .type("string")
        .arpReply("string")
        .comments("string")
        .name("string")
        .build());
    
    object_ippool_resource = fortios.firewall.ObjectIppool("objectIppoolResource",
        endip="string",
        startip="string",
        type="string",
        arp_reply="string",
        comments="string",
        name="string")
    
    const objectIppoolResource = new fortios.firewall.ObjectIppool("objectIppoolResource", {
        endip: "string",
        startip: "string",
        type: "string",
        arpReply: "string",
        comments: "string",
        name: "string",
    });
    
    type: fortios:firewall:ObjectIppool
    properties:
        arpReply: string
        comments: string
        endip: string
        name: string
        startip: string
        type: string
    

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

    Endip string
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    Startip string
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    Type string
    IP pool type(Support overload and one-to-one).
    ArpReply string
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    Comments string
    Comment.
    Name string
    IP pool name.
    Endip string
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    Startip string
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    Type string
    IP pool type(Support overload and one-to-one).
    ArpReply string
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    Comments string
    Comment.
    Name string
    IP pool name.
    endip String
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    startip String
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    type String
    IP pool type(Support overload and one-to-one).
    arpReply String
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    comments String
    Comment.
    name String
    IP pool name.
    endip string
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    startip string
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    type string
    IP pool type(Support overload and one-to-one).
    arpReply string
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    comments string
    Comment.
    name string
    IP pool name.
    endip str
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    startip str
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    type str
    IP pool type(Support overload and one-to-one).
    arp_reply str
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    comments str
    Comment.
    name str
    IP pool name.
    endip String
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    startip String
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    type String
    IP pool type(Support overload and one-to-one).
    arpReply String
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    comments String
    Comment.
    name String
    IP pool name.

    Outputs

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

    Get an existing ObjectIppool 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?: ObjectIppoolState, opts?: CustomResourceOptions): ObjectIppool
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arp_reply: Optional[str] = None,
            comments: Optional[str] = None,
            endip: Optional[str] = None,
            name: Optional[str] = None,
            startip: Optional[str] = None,
            type: Optional[str] = None) -> ObjectIppool
    func GetObjectIppool(ctx *Context, name string, id IDInput, state *ObjectIppoolState, opts ...ResourceOption) (*ObjectIppool, error)
    public static ObjectIppool Get(string name, Input<string> id, ObjectIppoolState? state, CustomResourceOptions? opts = null)
    public static ObjectIppool get(String name, Output<String> id, ObjectIppoolState 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:
    ArpReply string
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    Comments string
    Comment.
    Endip string
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    Name string
    IP pool name.
    Startip string
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    Type string
    IP pool type(Support overload and one-to-one).
    ArpReply string
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    Comments string
    Comment.
    Endip string
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    Name string
    IP pool name.
    Startip string
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    Type string
    IP pool type(Support overload and one-to-one).
    arpReply String
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    comments String
    Comment.
    endip String
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    name String
    IP pool name.
    startip String
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    type String
    IP pool type(Support overload and one-to-one).
    arpReply string
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    comments string
    Comment.
    endip string
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    name string
    IP pool name.
    startip string
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    type string
    IP pool type(Support overload and one-to-one).
    arp_reply str
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    comments str
    Comment.
    endip str
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    name str
    IP pool name.
    startip str
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    type str
    IP pool type(Support overload and one-to-one).
    arpReply String
    Enable/disable replying to ARP requests when an IP Pool is added to a policy.
    comments String
    Comment.
    endip String
    Final IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    name String
    IP pool name.
    startip String
    First IPv4 address (inclusive) in the range for the address pool (format xxx.xxx.xxx.xxx).
    type String
    IP pool type(Support overload and one-to-one).

    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