1. Packages
  2. Fortios
  3. API Docs
  4. firewall
  5. Ippool6
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

fortios.firewall.Ippool6

Explore with Pulumi AI

fortios logo
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

    Configure IPv6 IP pools.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.firewall.Ippool6("trname", {
        endip: "2001:3ca1:10f:1a:121b::19",
        startip: "2001:3ca1:10f:1a:121b::10",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.firewall.Ippool6("trname",
        endip="2001:3ca1:10f:1a:121b::19",
        startip="2001:3ca1:10f:1a:121b::10")
    
    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.NewIppool6(ctx, "trname", &firewall.Ippool6Args{
    			Endip:   pulumi.String("2001:3ca1:10f:1a:121b::19"),
    			Startip: pulumi.String("2001:3ca1:10f:1a:121b::10"),
    		})
    		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 trname = new Fortios.Firewall.Ippool6("trname", new()
        {
            Endip = "2001:3ca1:10f:1a:121b::19",
            Startip = "2001:3ca1:10f:1a:121b::10",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.firewall.Ippool6;
    import com.pulumi.fortios.firewall.Ippool6Args;
    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 trname = new Ippool6("trname", Ippool6Args.builder()        
                .endip("2001:3ca1:10f:1a:121b::19")
                .startip("2001:3ca1:10f:1a:121b::10")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:firewall:Ippool6
        properties:
          endip: 2001:3ca1:10f:1a:121b::19
          startip: 2001:3ca1:10f:1a:121b::10
    

    Create Ippool6 Resource

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

    Constructor syntax

    new Ippool6(name: string, args: Ippool6Args, opts?: CustomResourceOptions);
    @overload
    def Ippool6(resource_name: str,
                args: Ippool6Args,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ippool6(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                endip: Optional[str] = None,
                startip: Optional[str] = None,
                add_nat46_route: Optional[str] = None,
                comments: Optional[str] = None,
                name: Optional[str] = None,
                nat46: Optional[str] = None,
                vdomparam: Optional[str] = None)
    func NewIppool6(ctx *Context, name string, args Ippool6Args, opts ...ResourceOption) (*Ippool6, error)
    public Ippool6(string name, Ippool6Args args, CustomResourceOptions? opts = null)
    public Ippool6(String name, Ippool6Args args)
    public Ippool6(String name, Ippool6Args args, CustomResourceOptions options)
    
    type: fortios:firewall:Ippool6
    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 Ippool6Args
    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 Ippool6Args
    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 Ippool6Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Ippool6Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Ippool6Args
    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 ippool6Resource = new Fortios.Firewall.Ippool6("ippool6Resource", new()
    {
        Endip = "string",
        Startip = "string",
        AddNat46Route = "string",
        Comments = "string",
        Name = "string",
        Nat46 = "string",
        Vdomparam = "string",
    });
    
    example, err := firewall.NewIppool6(ctx, "ippool6Resource", &firewall.Ippool6Args{
    	Endip:         pulumi.String("string"),
    	Startip:       pulumi.String("string"),
    	AddNat46Route: pulumi.String("string"),
    	Comments:      pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Nat46:         pulumi.String("string"),
    	Vdomparam:     pulumi.String("string"),
    })
    
    var ippool6Resource = new Ippool6("ippool6Resource", Ippool6Args.builder()
        .endip("string")
        .startip("string")
        .addNat46Route("string")
        .comments("string")
        .name("string")
        .nat46("string")
        .vdomparam("string")
        .build());
    
    ippool6_resource = fortios.firewall.Ippool6("ippool6Resource",
        endip="string",
        startip="string",
        add_nat46_route="string",
        comments="string",
        name="string",
        nat46="string",
        vdomparam="string")
    
    const ippool6Resource = new fortios.firewall.Ippool6("ippool6Resource", {
        endip: "string",
        startip: "string",
        addNat46Route: "string",
        comments: "string",
        name: "string",
        nat46: "string",
        vdomparam: "string",
    });
    
    type: fortios:firewall:Ippool6
    properties:
        addNat46Route: string
        comments: string
        endip: string
        name: string
        nat46: string
        startip: string
        vdomparam: string
    

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

    Endip string
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    Startip string
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    AddNat46Route string
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    Comments string
    Comment.
    Name string
    IPv6 IP pool name.
    Nat46 string
    Enable/disable NAT46. Valid values: disable, enable.
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    Endip string
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    Startip string
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    AddNat46Route string
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    Comments string
    Comment.
    Name string
    IPv6 IP pool name.
    Nat46 string
    Enable/disable NAT46. Valid values: disable, enable.
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    endip String
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    startip String
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    addNat46Route String
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    comments String
    Comment.
    name String
    IPv6 IP pool name.
    nat46 String
    Enable/disable NAT46. Valid values: disable, enable.
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    endip string
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    startip string
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    addNat46Route string
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    comments string
    Comment.
    name string
    IPv6 IP pool name.
    nat46 string
    Enable/disable NAT46. Valid values: disable, enable.
    vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    endip str
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    startip str
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    add_nat46_route str
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    comments str
    Comment.
    name str
    IPv6 IP pool name.
    nat46 str
    Enable/disable NAT46. Valid values: disable, enable.
    vdomparam str
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    endip String
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    startip String
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    addNat46Route String
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    comments String
    Comment.
    name String
    IPv6 IP pool name.
    nat46 String
    Enable/disable NAT46. Valid values: disable, enable.
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

    Outputs

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

    Get an existing Ippool6 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?: Ippool6State, opts?: CustomResourceOptions): Ippool6
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            add_nat46_route: Optional[str] = None,
            comments: Optional[str] = None,
            endip: Optional[str] = None,
            name: Optional[str] = None,
            nat46: Optional[str] = None,
            startip: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Ippool6
    func GetIppool6(ctx *Context, name string, id IDInput, state *Ippool6State, opts ...ResourceOption) (*Ippool6, error)
    public static Ippool6 Get(string name, Input<string> id, Ippool6State? state, CustomResourceOptions? opts = null)
    public static Ippool6 get(String name, Output<String> id, Ippool6State 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:
    AddNat46Route string
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    Comments string
    Comment.
    Endip string
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    Name string
    IPv6 IP pool name.
    Nat46 string
    Enable/disable NAT46. Valid values: disable, enable.
    Startip string
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    AddNat46Route string
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    Comments string
    Comment.
    Endip string
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    Name string
    IPv6 IP pool name.
    Nat46 string
    Enable/disable NAT46. Valid values: disable, enable.
    Startip string
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    addNat46Route String
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    comments String
    Comment.
    endip String
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    name String
    IPv6 IP pool name.
    nat46 String
    Enable/disable NAT46. Valid values: disable, enable.
    startip String
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    addNat46Route string
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    comments string
    Comment.
    endip string
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    name string
    IPv6 IP pool name.
    nat46 string
    Enable/disable NAT46. Valid values: disable, enable.
    startip string
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    add_nat46_route str
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    comments str
    Comment.
    endip str
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    name str
    IPv6 IP pool name.
    nat46 str
    Enable/disable NAT46. Valid values: disable, enable.
    startip str
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    vdomparam str
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    addNat46Route String
    Enable/disable adding NAT46 route. Valid values: disable, enable.
    comments String
    Comment.
    endip String
    Final IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    name String
    IPv6 IP pool name.
    nat46 String
    Enable/disable NAT46. Valid values: disable, enable.
    startip String
    First IPv6 address (inclusive) in the range for the address pool (format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, Default: ::).
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

    Import

    Firewall Ippool6 can be imported using any of these accepted formats:

    $ pulumi import fortios:firewall/ippool6:Ippool6 labelname {{name}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:firewall/ippool6:Ippool6 labelname {{name}}
    

    $ unset “FORTIOS_IMPORT_TABLE”

    To learn more about importing existing cloud resources, see Importing resources.

    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.5 published on Tuesday, Apr 9, 2024 by pulumiverse