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

fortios.router.Policy6

Explore with Pulumi AI

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

    Configure IPv6 routing policies.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.router.Policy6("trname", {
        dst: "::/0",
        endPort: 65535,
        gateway: "::",
        inputDevice: "port1",
        outputDevice: "port3",
        protocol: 33,
        seqNum: 1,
        src: "2001:db8:85a3::8a2e:370:7334/128",
        startPort: 1,
        status: "enable",
        tos: "0x00",
        tosMask: "0x00",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.router.Policy6("trname",
        dst="::/0",
        end_port=65535,
        gateway="::",
        input_device="port1",
        output_device="port3",
        protocol=33,
        seq_num=1,
        src="2001:db8:85a3::8a2e:370:7334/128",
        start_port=1,
        status="enable",
        tos="0x00",
        tos_mask="0x00")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/router"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := router.NewPolicy6(ctx, "trname", &router.Policy6Args{
    			Dst:          pulumi.String("::/0"),
    			EndPort:      pulumi.Int(65535),
    			Gateway:      pulumi.String("::"),
    			InputDevice:  pulumi.String("port1"),
    			OutputDevice: pulumi.String("port3"),
    			Protocol:     pulumi.Int(33),
    			SeqNum:       pulumi.Int(1),
    			Src:          pulumi.String("2001:db8:85a3::8a2e:370:7334/128"),
    			StartPort:    pulumi.Int(1),
    			Status:       pulumi.String("enable"),
    			Tos:          pulumi.String("0x00"),
    			TosMask:      pulumi.String("0x00"),
    		})
    		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.Router.Policy6("trname", new()
        {
            Dst = "::/0",
            EndPort = 65535,
            Gateway = "::",
            InputDevice = "port1",
            OutputDevice = "port3",
            Protocol = 33,
            SeqNum = 1,
            Src = "2001:db8:85a3::8a2e:370:7334/128",
            StartPort = 1,
            Status = "enable",
            Tos = "0x00",
            TosMask = "0x00",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.router.Policy6;
    import com.pulumi.fortios.router.Policy6Args;
    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 Policy6("trname", Policy6Args.builder()        
                .dst("::/0")
                .endPort(65535)
                .gateway("::")
                .inputDevice("port1")
                .outputDevice("port3")
                .protocol(33)
                .seqNum(1)
                .src("2001:db8:85a3::8a2e:370:7334/128")
                .startPort(1)
                .status("enable")
                .tos("0x00")
                .tosMask("0x00")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:router:Policy6
        properties:
          dst: ::/0
          endPort: 65535
          gateway: '::'
          inputDevice: port1
          outputDevice: port3
          protocol: 33
          seqNum: 1
          src: 2001:db8:85a3::8a2e:370:7334/128
          startPort: 1
          status: enable
          tos: 0x00
          tosMask: 0x00
    

    Create Policy6 Resource

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

    Constructor syntax

    new Policy6(name: string, args: Policy6Args, opts?: CustomResourceOptions);
    @overload
    def Policy6(resource_name: str,
                args: Policy6Args,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Policy6(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                input_device: Optional[str] = None,
                internet_service_customs: Optional[Sequence[Policy6InternetServiceCustomArgs]] = None,
                dynamic_sort_subtable: Optional[str] = None,
                internet_service_ids: Optional[Sequence[Policy6InternetServiceIdArgs]] = None,
                dstaddrs: Optional[Sequence[Policy6DstaddrArgs]] = None,
                output_device: Optional[str] = None,
                end_port: Optional[int] = None,
                end_source_port: Optional[int] = None,
                protocol: Optional[int] = None,
                get_all_tables: Optional[str] = None,
                comments: Optional[str] = None,
                input_device_negate: Optional[str] = None,
                action: Optional[str] = None,
                dst_negate: Optional[str] = None,
                dst: Optional[str] = None,
                gateway: Optional[str] = None,
                seq_num: Optional[int] = None,
                src: Optional[str] = None,
                src_negate: Optional[str] = None,
                srcaddrs: Optional[Sequence[Policy6SrcaddrArgs]] = None,
                start_port: Optional[int] = None,
                start_source_port: Optional[int] = None,
                status: Optional[str] = None,
                tos: Optional[str] = None,
                tos_mask: Optional[str] = None,
                vdomparam: Optional[str] = None)
    func NewPolicy6(ctx *Context, name string, args Policy6Args, opts ...ResourceOption) (*Policy6, error)
    public Policy6(string name, Policy6Args args, CustomResourceOptions? opts = null)
    public Policy6(String name, Policy6Args args)
    public Policy6(String name, Policy6Args args, CustomResourceOptions options)
    
    type: fortios:router:Policy6
    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 Policy6Args
    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 Policy6Args
    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 Policy6Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Policy6Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Policy6Args
    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 fortiosPolicy6Resource = new Fortios.Router.Policy6("fortiosPolicy6Resource", new()
    {
        InputDevice = "string",
        InternetServiceCustoms = new[]
        {
            new Fortios.Router.Inputs.Policy6InternetServiceCustomArgs
            {
                Name = "string",
            },
        },
        DynamicSortSubtable = "string",
        InternetServiceIds = new[]
        {
            new Fortios.Router.Inputs.Policy6InternetServiceIdArgs
            {
                Id = 0,
            },
        },
        Dstaddrs = new[]
        {
            new Fortios.Router.Inputs.Policy6DstaddrArgs
            {
                Name = "string",
            },
        },
        OutputDevice = "string",
        EndPort = 0,
        EndSourcePort = 0,
        Protocol = 0,
        GetAllTables = "string",
        Comments = "string",
        InputDeviceNegate = "string",
        Action = "string",
        DstNegate = "string",
        Dst = "string",
        Gateway = "string",
        SeqNum = 0,
        Src = "string",
        SrcNegate = "string",
        Srcaddrs = new[]
        {
            new Fortios.Router.Inputs.Policy6SrcaddrArgs
            {
                Name = "string",
            },
        },
        StartPort = 0,
        StartSourcePort = 0,
        Status = "string",
        Tos = "string",
        TosMask = "string",
        Vdomparam = "string",
    });
    
    example, err := router.NewPolicy6(ctx, "fortiosPolicy6Resource", &router.Policy6Args{
    	InputDevice: pulumi.String("string"),
    	InternetServiceCustoms: router.Policy6InternetServiceCustomArray{
    		&router.Policy6InternetServiceCustomArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	DynamicSortSubtable: pulumi.String("string"),
    	InternetServiceIds: router.Policy6InternetServiceIdArray{
    		&router.Policy6InternetServiceIdArgs{
    			Id: pulumi.Int(0),
    		},
    	},
    	Dstaddrs: router.Policy6DstaddrArray{
    		&router.Policy6DstaddrArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	OutputDevice:      pulumi.String("string"),
    	EndPort:           pulumi.Int(0),
    	EndSourcePort:     pulumi.Int(0),
    	Protocol:          pulumi.Int(0),
    	GetAllTables:      pulumi.String("string"),
    	Comments:          pulumi.String("string"),
    	InputDeviceNegate: pulumi.String("string"),
    	Action:            pulumi.String("string"),
    	DstNegate:         pulumi.String("string"),
    	Dst:               pulumi.String("string"),
    	Gateway:           pulumi.String("string"),
    	SeqNum:            pulumi.Int(0),
    	Src:               pulumi.String("string"),
    	SrcNegate:         pulumi.String("string"),
    	Srcaddrs: router.Policy6SrcaddrArray{
    		&router.Policy6SrcaddrArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	StartPort:       pulumi.Int(0),
    	StartSourcePort: pulumi.Int(0),
    	Status:          pulumi.String("string"),
    	Tos:             pulumi.String("string"),
    	TosMask:         pulumi.String("string"),
    	Vdomparam:       pulumi.String("string"),
    })
    
    var fortiosPolicy6Resource = new Policy6("fortiosPolicy6Resource", Policy6Args.builder()
        .inputDevice("string")
        .internetServiceCustoms(Policy6InternetServiceCustomArgs.builder()
            .name("string")
            .build())
        .dynamicSortSubtable("string")
        .internetServiceIds(Policy6InternetServiceIdArgs.builder()
            .id(0)
            .build())
        .dstaddrs(Policy6DstaddrArgs.builder()
            .name("string")
            .build())
        .outputDevice("string")
        .endPort(0)
        .endSourcePort(0)
        .protocol(0)
        .getAllTables("string")
        .comments("string")
        .inputDeviceNegate("string")
        .action("string")
        .dstNegate("string")
        .dst("string")
        .gateway("string")
        .seqNum(0)
        .src("string")
        .srcNegate("string")
        .srcaddrs(Policy6SrcaddrArgs.builder()
            .name("string")
            .build())
        .startPort(0)
        .startSourcePort(0)
        .status("string")
        .tos("string")
        .tosMask("string")
        .vdomparam("string")
        .build());
    
    fortios_policy6_resource = fortios.router.Policy6("fortiosPolicy6Resource",
        input_device="string",
        internet_service_customs=[fortios.router.Policy6InternetServiceCustomArgs(
            name="string",
        )],
        dynamic_sort_subtable="string",
        internet_service_ids=[fortios.router.Policy6InternetServiceIdArgs(
            id=0,
        )],
        dstaddrs=[fortios.router.Policy6DstaddrArgs(
            name="string",
        )],
        output_device="string",
        end_port=0,
        end_source_port=0,
        protocol=0,
        get_all_tables="string",
        comments="string",
        input_device_negate="string",
        action="string",
        dst_negate="string",
        dst="string",
        gateway="string",
        seq_num=0,
        src="string",
        src_negate="string",
        srcaddrs=[fortios.router.Policy6SrcaddrArgs(
            name="string",
        )],
        start_port=0,
        start_source_port=0,
        status="string",
        tos="string",
        tos_mask="string",
        vdomparam="string")
    
    const fortiosPolicy6Resource = new fortios.router.Policy6("fortiosPolicy6Resource", {
        inputDevice: "string",
        internetServiceCustoms: [{
            name: "string",
        }],
        dynamicSortSubtable: "string",
        internetServiceIds: [{
            id: 0,
        }],
        dstaddrs: [{
            name: "string",
        }],
        outputDevice: "string",
        endPort: 0,
        endSourcePort: 0,
        protocol: 0,
        getAllTables: "string",
        comments: "string",
        inputDeviceNegate: "string",
        action: "string",
        dstNegate: "string",
        dst: "string",
        gateway: "string",
        seqNum: 0,
        src: "string",
        srcNegate: "string",
        srcaddrs: [{
            name: "string",
        }],
        startPort: 0,
        startSourcePort: 0,
        status: "string",
        tos: "string",
        tosMask: "string",
        vdomparam: "string",
    });
    
    type: fortios:router:Policy6
    properties:
        action: string
        comments: string
        dst: string
        dstNegate: string
        dstaddrs:
            - name: string
        dynamicSortSubtable: string
        endPort: 0
        endSourcePort: 0
        gateway: string
        getAllTables: string
        inputDevice: string
        inputDeviceNegate: string
        internetServiceCustoms:
            - name: string
        internetServiceIds:
            - id: 0
        outputDevice: string
        protocol: 0
        seqNum: 0
        src: string
        srcNegate: string
        srcaddrs:
            - name: string
        startPort: 0
        startSourcePort: 0
        status: string
        tos: string
        tosMask: string
        vdomparam: string
    

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

    InputDevice string
    Incoming interface name.
    Action string
    Action of the policy route. Valid values: deny, permit.
    Comments string
    Optional comments.
    Dst string
    Destination IPv6 prefix.
    DstNegate string
    Enable/disable negating destination address match. Valid values: enable, disable.
    Dstaddrs List<Pulumiverse.Fortios.Router.Inputs.Policy6Dstaddr>
    Destination address name. The structure of dstaddr block is documented below.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    EndPort int
    End destination port number (1 - 65535).
    EndSourcePort int
    End source port number (1 - 65535).
    Gateway string
    IPv6 address of the gateway.
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    InputDeviceNegate string
    Enable/disable negation of input device match. Valid values: enable, disable.
    InternetServiceCustoms List<Pulumiverse.Fortios.Router.Inputs.Policy6InternetServiceCustom>
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    InternetServiceIds List<Pulumiverse.Fortios.Router.Inputs.Policy6InternetServiceId>
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    OutputDevice string
    Outgoing interface name.
    Protocol int
    Protocol number (0 - 255).
    SeqNum int
    Sequence number.
    Src string
    Source IPv6 prefix.
    SrcNegate string
    Enable/disable negating source address match. Valid values: enable, disable.
    Srcaddrs List<Pulumiverse.Fortios.Router.Inputs.Policy6Srcaddr>
    Source address name. The structure of srcaddr block is documented below.
    StartPort int
    Start destination port number (1 - 65535).
    StartSourcePort int
    Start source port number (1 - 65535).
    Status string
    Enable/disable this policy route. Valid values: enable, disable.
    Tos string
    Type of service bit pattern.
    TosMask string
    Type of service evaluated bits.
    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.
    InputDevice string
    Incoming interface name.
    Action string
    Action of the policy route. Valid values: deny, permit.
    Comments string
    Optional comments.
    Dst string
    Destination IPv6 prefix.
    DstNegate string
    Enable/disable negating destination address match. Valid values: enable, disable.
    Dstaddrs []Policy6DstaddrArgs
    Destination address name. The structure of dstaddr block is documented below.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    EndPort int
    End destination port number (1 - 65535).
    EndSourcePort int
    End source port number (1 - 65535).
    Gateway string
    IPv6 address of the gateway.
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    InputDeviceNegate string
    Enable/disable negation of input device match. Valid values: enable, disable.
    InternetServiceCustoms []Policy6InternetServiceCustomArgs
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    InternetServiceIds []Policy6InternetServiceIdArgs
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    OutputDevice string
    Outgoing interface name.
    Protocol int
    Protocol number (0 - 255).
    SeqNum int
    Sequence number.
    Src string
    Source IPv6 prefix.
    SrcNegate string
    Enable/disable negating source address match. Valid values: enable, disable.
    Srcaddrs []Policy6SrcaddrArgs
    Source address name. The structure of srcaddr block is documented below.
    StartPort int
    Start destination port number (1 - 65535).
    StartSourcePort int
    Start source port number (1 - 65535).
    Status string
    Enable/disable this policy route. Valid values: enable, disable.
    Tos string
    Type of service bit pattern.
    TosMask string
    Type of service evaluated bits.
    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.
    inputDevice String
    Incoming interface name.
    action String
    Action of the policy route. Valid values: deny, permit.
    comments String
    Optional comments.
    dst String
    Destination IPv6 prefix.
    dstNegate String
    Enable/disable negating destination address match. Valid values: enable, disable.
    dstaddrs List<Policy6Dstaddr>
    Destination address name. The structure of dstaddr block is documented below.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    endPort Integer
    End destination port number (1 - 65535).
    endSourcePort Integer
    End source port number (1 - 65535).
    gateway String
    IPv6 address of the gateway.
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    inputDeviceNegate String
    Enable/disable negation of input device match. Valid values: enable, disable.
    internetServiceCustoms List<Policy6InternetServiceCustom>
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    internetServiceIds List<Policy6InternetServiceId>
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    outputDevice String
    Outgoing interface name.
    protocol Integer
    Protocol number (0 - 255).
    seqNum Integer
    Sequence number.
    src String
    Source IPv6 prefix.
    srcNegate String
    Enable/disable negating source address match. Valid values: enable, disable.
    srcaddrs List<Policy6Srcaddr>
    Source address name. The structure of srcaddr block is documented below.
    startPort Integer
    Start destination port number (1 - 65535).
    startSourcePort Integer
    Start source port number (1 - 65535).
    status String
    Enable/disable this policy route. Valid values: enable, disable.
    tos String
    Type of service bit pattern.
    tosMask String
    Type of service evaluated bits.
    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.
    inputDevice string
    Incoming interface name.
    action string
    Action of the policy route. Valid values: deny, permit.
    comments string
    Optional comments.
    dst string
    Destination IPv6 prefix.
    dstNegate string
    Enable/disable negating destination address match. Valid values: enable, disable.
    dstaddrs Policy6Dstaddr[]
    Destination address name. The structure of dstaddr block is documented below.
    dynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    endPort number
    End destination port number (1 - 65535).
    endSourcePort number
    End source port number (1 - 65535).
    gateway string
    IPv6 address of the gateway.
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    inputDeviceNegate string
    Enable/disable negation of input device match. Valid values: enable, disable.
    internetServiceCustoms Policy6InternetServiceCustom[]
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    internetServiceIds Policy6InternetServiceId[]
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    outputDevice string
    Outgoing interface name.
    protocol number
    Protocol number (0 - 255).
    seqNum number
    Sequence number.
    src string
    Source IPv6 prefix.
    srcNegate string
    Enable/disable negating source address match. Valid values: enable, disable.
    srcaddrs Policy6Srcaddr[]
    Source address name. The structure of srcaddr block is documented below.
    startPort number
    Start destination port number (1 - 65535).
    startSourcePort number
    Start source port number (1 - 65535).
    status string
    Enable/disable this policy route. Valid values: enable, disable.
    tos string
    Type of service bit pattern.
    tosMask string
    Type of service evaluated bits.
    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.
    input_device str
    Incoming interface name.
    action str
    Action of the policy route. Valid values: deny, permit.
    comments str
    Optional comments.
    dst str
    Destination IPv6 prefix.
    dst_negate str
    Enable/disable negating destination address match. Valid values: enable, disable.
    dstaddrs Sequence[Policy6DstaddrArgs]
    Destination address name. The structure of dstaddr block is documented below.
    dynamic_sort_subtable str
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    end_port int
    End destination port number (1 - 65535).
    end_source_port int
    End source port number (1 - 65535).
    gateway str
    IPv6 address of the gateway.
    get_all_tables str
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    input_device_negate str
    Enable/disable negation of input device match. Valid values: enable, disable.
    internet_service_customs Sequence[Policy6InternetServiceCustomArgs]
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    internet_service_ids Sequence[Policy6InternetServiceIdArgs]
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    output_device str
    Outgoing interface name.
    protocol int
    Protocol number (0 - 255).
    seq_num int
    Sequence number.
    src str
    Source IPv6 prefix.
    src_negate str
    Enable/disable negating source address match. Valid values: enable, disable.
    srcaddrs Sequence[Policy6SrcaddrArgs]
    Source address name. The structure of srcaddr block is documented below.
    start_port int
    Start destination port number (1 - 65535).
    start_source_port int
    Start source port number (1 - 65535).
    status str
    Enable/disable this policy route. Valid values: enable, disable.
    tos str
    Type of service bit pattern.
    tos_mask str
    Type of service evaluated bits.
    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.
    inputDevice String
    Incoming interface name.
    action String
    Action of the policy route. Valid values: deny, permit.
    comments String
    Optional comments.
    dst String
    Destination IPv6 prefix.
    dstNegate String
    Enable/disable negating destination address match. Valid values: enable, disable.
    dstaddrs List<Property Map>
    Destination address name. The structure of dstaddr block is documented below.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    endPort Number
    End destination port number (1 - 65535).
    endSourcePort Number
    End source port number (1 - 65535).
    gateway String
    IPv6 address of the gateway.
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    inputDeviceNegate String
    Enable/disable negation of input device match. Valid values: enable, disable.
    internetServiceCustoms List<Property Map>
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    internetServiceIds List<Property Map>
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    outputDevice String
    Outgoing interface name.
    protocol Number
    Protocol number (0 - 255).
    seqNum Number
    Sequence number.
    src String
    Source IPv6 prefix.
    srcNegate String
    Enable/disable negating source address match. Valid values: enable, disable.
    srcaddrs List<Property Map>
    Source address name. The structure of srcaddr block is documented below.
    startPort Number
    Start destination port number (1 - 65535).
    startSourcePort Number
    Start source port number (1 - 65535).
    status String
    Enable/disable this policy route. Valid values: enable, disable.
    tos String
    Type of service bit pattern.
    tosMask String
    Type of service evaluated bits.
    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 Policy6 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 Policy6 Resource

    Get an existing Policy6 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?: Policy6State, opts?: CustomResourceOptions): Policy6
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            comments: Optional[str] = None,
            dst: Optional[str] = None,
            dst_negate: Optional[str] = None,
            dstaddrs: Optional[Sequence[Policy6DstaddrArgs]] = None,
            dynamic_sort_subtable: Optional[str] = None,
            end_port: Optional[int] = None,
            end_source_port: Optional[int] = None,
            gateway: Optional[str] = None,
            get_all_tables: Optional[str] = None,
            input_device: Optional[str] = None,
            input_device_negate: Optional[str] = None,
            internet_service_customs: Optional[Sequence[Policy6InternetServiceCustomArgs]] = None,
            internet_service_ids: Optional[Sequence[Policy6InternetServiceIdArgs]] = None,
            output_device: Optional[str] = None,
            protocol: Optional[int] = None,
            seq_num: Optional[int] = None,
            src: Optional[str] = None,
            src_negate: Optional[str] = None,
            srcaddrs: Optional[Sequence[Policy6SrcaddrArgs]] = None,
            start_port: Optional[int] = None,
            start_source_port: Optional[int] = None,
            status: Optional[str] = None,
            tos: Optional[str] = None,
            tos_mask: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Policy6
    func GetPolicy6(ctx *Context, name string, id IDInput, state *Policy6State, opts ...ResourceOption) (*Policy6, error)
    public static Policy6 Get(string name, Input<string> id, Policy6State? state, CustomResourceOptions? opts = null)
    public static Policy6 get(String name, Output<String> id, Policy6State 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:
    Action string
    Action of the policy route. Valid values: deny, permit.
    Comments string
    Optional comments.
    Dst string
    Destination IPv6 prefix.
    DstNegate string
    Enable/disable negating destination address match. Valid values: enable, disable.
    Dstaddrs List<Pulumiverse.Fortios.Router.Inputs.Policy6Dstaddr>
    Destination address name. The structure of dstaddr block is documented below.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    EndPort int
    End destination port number (1 - 65535).
    EndSourcePort int
    End source port number (1 - 65535).
    Gateway string
    IPv6 address of the gateway.
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    InputDevice string
    Incoming interface name.
    InputDeviceNegate string
    Enable/disable negation of input device match. Valid values: enable, disable.
    InternetServiceCustoms List<Pulumiverse.Fortios.Router.Inputs.Policy6InternetServiceCustom>
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    InternetServiceIds List<Pulumiverse.Fortios.Router.Inputs.Policy6InternetServiceId>
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    OutputDevice string
    Outgoing interface name.
    Protocol int
    Protocol number (0 - 255).
    SeqNum int
    Sequence number.
    Src string
    Source IPv6 prefix.
    SrcNegate string
    Enable/disable negating source address match. Valid values: enable, disable.
    Srcaddrs List<Pulumiverse.Fortios.Router.Inputs.Policy6Srcaddr>
    Source address name. The structure of srcaddr block is documented below.
    StartPort int
    Start destination port number (1 - 65535).
    StartSourcePort int
    Start source port number (1 - 65535).
    Status string
    Enable/disable this policy route. Valid values: enable, disable.
    Tos string
    Type of service bit pattern.
    TosMask string
    Type of service evaluated bits.
    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.
    Action string
    Action of the policy route. Valid values: deny, permit.
    Comments string
    Optional comments.
    Dst string
    Destination IPv6 prefix.
    DstNegate string
    Enable/disable negating destination address match. Valid values: enable, disable.
    Dstaddrs []Policy6DstaddrArgs
    Destination address name. The structure of dstaddr block is documented below.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    EndPort int
    End destination port number (1 - 65535).
    EndSourcePort int
    End source port number (1 - 65535).
    Gateway string
    IPv6 address of the gateway.
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    InputDevice string
    Incoming interface name.
    InputDeviceNegate string
    Enable/disable negation of input device match. Valid values: enable, disable.
    InternetServiceCustoms []Policy6InternetServiceCustomArgs
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    InternetServiceIds []Policy6InternetServiceIdArgs
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    OutputDevice string
    Outgoing interface name.
    Protocol int
    Protocol number (0 - 255).
    SeqNum int
    Sequence number.
    Src string
    Source IPv6 prefix.
    SrcNegate string
    Enable/disable negating source address match. Valid values: enable, disable.
    Srcaddrs []Policy6SrcaddrArgs
    Source address name. The structure of srcaddr block is documented below.
    StartPort int
    Start destination port number (1 - 65535).
    StartSourcePort int
    Start source port number (1 - 65535).
    Status string
    Enable/disable this policy route. Valid values: enable, disable.
    Tos string
    Type of service bit pattern.
    TosMask string
    Type of service evaluated bits.
    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.
    action String
    Action of the policy route. Valid values: deny, permit.
    comments String
    Optional comments.
    dst String
    Destination IPv6 prefix.
    dstNegate String
    Enable/disable negating destination address match. Valid values: enable, disable.
    dstaddrs List<Policy6Dstaddr>
    Destination address name. The structure of dstaddr block is documented below.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    endPort Integer
    End destination port number (1 - 65535).
    endSourcePort Integer
    End source port number (1 - 65535).
    gateway String
    IPv6 address of the gateway.
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    inputDevice String
    Incoming interface name.
    inputDeviceNegate String
    Enable/disable negation of input device match. Valid values: enable, disable.
    internetServiceCustoms List<Policy6InternetServiceCustom>
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    internetServiceIds List<Policy6InternetServiceId>
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    outputDevice String
    Outgoing interface name.
    protocol Integer
    Protocol number (0 - 255).
    seqNum Integer
    Sequence number.
    src String
    Source IPv6 prefix.
    srcNegate String
    Enable/disable negating source address match. Valid values: enable, disable.
    srcaddrs List<Policy6Srcaddr>
    Source address name. The structure of srcaddr block is documented below.
    startPort Integer
    Start destination port number (1 - 65535).
    startSourcePort Integer
    Start source port number (1 - 65535).
    status String
    Enable/disable this policy route. Valid values: enable, disable.
    tos String
    Type of service bit pattern.
    tosMask String
    Type of service evaluated bits.
    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.
    action string
    Action of the policy route. Valid values: deny, permit.
    comments string
    Optional comments.
    dst string
    Destination IPv6 prefix.
    dstNegate string
    Enable/disable negating destination address match. Valid values: enable, disable.
    dstaddrs Policy6Dstaddr[]
    Destination address name. The structure of dstaddr block is documented below.
    dynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    endPort number
    End destination port number (1 - 65535).
    endSourcePort number
    End source port number (1 - 65535).
    gateway string
    IPv6 address of the gateway.
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    inputDevice string
    Incoming interface name.
    inputDeviceNegate string
    Enable/disable negation of input device match. Valid values: enable, disable.
    internetServiceCustoms Policy6InternetServiceCustom[]
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    internetServiceIds Policy6InternetServiceId[]
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    outputDevice string
    Outgoing interface name.
    protocol number
    Protocol number (0 - 255).
    seqNum number
    Sequence number.
    src string
    Source IPv6 prefix.
    srcNegate string
    Enable/disable negating source address match. Valid values: enable, disable.
    srcaddrs Policy6Srcaddr[]
    Source address name. The structure of srcaddr block is documented below.
    startPort number
    Start destination port number (1 - 65535).
    startSourcePort number
    Start source port number (1 - 65535).
    status string
    Enable/disable this policy route. Valid values: enable, disable.
    tos string
    Type of service bit pattern.
    tosMask string
    Type of service evaluated bits.
    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.
    action str
    Action of the policy route. Valid values: deny, permit.
    comments str
    Optional comments.
    dst str
    Destination IPv6 prefix.
    dst_negate str
    Enable/disable negating destination address match. Valid values: enable, disable.
    dstaddrs Sequence[Policy6DstaddrArgs]
    Destination address name. The structure of dstaddr block is documented below.
    dynamic_sort_subtable str
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    end_port int
    End destination port number (1 - 65535).
    end_source_port int
    End source port number (1 - 65535).
    gateway str
    IPv6 address of the gateway.
    get_all_tables str
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    input_device str
    Incoming interface name.
    input_device_negate str
    Enable/disable negation of input device match. Valid values: enable, disable.
    internet_service_customs Sequence[Policy6InternetServiceCustomArgs]
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    internet_service_ids Sequence[Policy6InternetServiceIdArgs]
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    output_device str
    Outgoing interface name.
    protocol int
    Protocol number (0 - 255).
    seq_num int
    Sequence number.
    src str
    Source IPv6 prefix.
    src_negate str
    Enable/disable negating source address match. Valid values: enable, disable.
    srcaddrs Sequence[Policy6SrcaddrArgs]
    Source address name. The structure of srcaddr block is documented below.
    start_port int
    Start destination port number (1 - 65535).
    start_source_port int
    Start source port number (1 - 65535).
    status str
    Enable/disable this policy route. Valid values: enable, disable.
    tos str
    Type of service bit pattern.
    tos_mask str
    Type of service evaluated bits.
    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.
    action String
    Action of the policy route. Valid values: deny, permit.
    comments String
    Optional comments.
    dst String
    Destination IPv6 prefix.
    dstNegate String
    Enable/disable negating destination address match. Valid values: enable, disable.
    dstaddrs List<Property Map>
    Destination address name. The structure of dstaddr block is documented below.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    endPort Number
    End destination port number (1 - 65535).
    endSourcePort Number
    End source port number (1 - 65535).
    gateway String
    IPv6 address of the gateway.
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    inputDevice String
    Incoming interface name.
    inputDeviceNegate String
    Enable/disable negation of input device match. Valid values: enable, disable.
    internetServiceCustoms List<Property Map>
    Custom Destination Internet Service name. The structure of internet_service_custom block is documented below.
    internetServiceIds List<Property Map>
    Destination Internet Service ID. The structure of internet_service_id block is documented below.
    outputDevice String
    Outgoing interface name.
    protocol Number
    Protocol number (0 - 255).
    seqNum Number
    Sequence number.
    src String
    Source IPv6 prefix.
    srcNegate String
    Enable/disable negating source address match. Valid values: enable, disable.
    srcaddrs List<Property Map>
    Source address name. The structure of srcaddr block is documented below.
    startPort Number
    Start destination port number (1 - 65535).
    startSourcePort Number
    Start source port number (1 - 65535).
    status String
    Enable/disable this policy route. Valid values: enable, disable.
    tos String
    Type of service bit pattern.
    tosMask String
    Type of service evaluated bits.
    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.

    Supporting Types

    Policy6Dstaddr, Policy6DstaddrArgs

    Name string
    Address/group name.
    Name string
    Address/group name.
    name String
    Address/group name.
    name string
    Address/group name.
    name str
    Address/group name.
    name String
    Address/group name.

    Policy6InternetServiceCustom, Policy6InternetServiceCustomArgs

    Name string
    Custom Destination Internet Service name.
    Name string
    Custom Destination Internet Service name.
    name String
    Custom Destination Internet Service name.
    name string
    Custom Destination Internet Service name.
    name str
    Custom Destination Internet Service name.
    name String
    Custom Destination Internet Service name.

    Policy6InternetServiceId, Policy6InternetServiceIdArgs

    Id int
    Destination Internet Service ID.
    Id int
    Destination Internet Service ID.
    id Integer
    Destination Internet Service ID.
    id number
    Destination Internet Service ID.
    id int
    Destination Internet Service ID.
    id Number
    Destination Internet Service ID.

    Policy6Srcaddr, Policy6SrcaddrArgs

    Name string
    Address/group name.
    Name string
    Address/group name.
    name String
    Address/group name.
    name string
    Address/group name.
    name str
    Address/group name.
    name String
    Address/group name.

    Import

    Router Policy6 can be imported using any of these accepted formats:

    $ pulumi import fortios:router/policy6:Policy6 labelname {{seq_num}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:router/policy6:Policy6 labelname {{seq_num}}
    

    $ 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