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

fortios.firewall.Ttlpolicy

Explore with Pulumi AI

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

    Configure TTL policies.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.firewall.Ttlpolicy("trname", {
        action: "accept",
        fosid: 1,
        schedule: "always",
        services: [{
            name: "ALL",
        }],
        srcaddrs: [{
            name: "all",
        }],
        srcintf: "port3",
        status: "enable",
        ttl: "23",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.firewall.Ttlpolicy("trname",
        action="accept",
        fosid=1,
        schedule="always",
        services=[fortios.firewall.TtlpolicyServiceArgs(
            name="ALL",
        )],
        srcaddrs=[fortios.firewall.TtlpolicySrcaddrArgs(
            name="all",
        )],
        srcintf="port3",
        status="enable",
        ttl="23")
    
    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.NewTtlpolicy(ctx, "trname", &firewall.TtlpolicyArgs{
    			Action:   pulumi.String("accept"),
    			Fosid:    pulumi.Int(1),
    			Schedule: pulumi.String("always"),
    			Services: firewall.TtlpolicyServiceArray{
    				&firewall.TtlpolicyServiceArgs{
    					Name: pulumi.String("ALL"),
    				},
    			},
    			Srcaddrs: firewall.TtlpolicySrcaddrArray{
    				&firewall.TtlpolicySrcaddrArgs{
    					Name: pulumi.String("all"),
    				},
    			},
    			Srcintf: pulumi.String("port3"),
    			Status:  pulumi.String("enable"),
    			Ttl:     pulumi.String("23"),
    		})
    		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.Ttlpolicy("trname", new()
        {
            Action = "accept",
            Fosid = 1,
            Schedule = "always",
            Services = new[]
            {
                new Fortios.Firewall.Inputs.TtlpolicyServiceArgs
                {
                    Name = "ALL",
                },
            },
            Srcaddrs = new[]
            {
                new Fortios.Firewall.Inputs.TtlpolicySrcaddrArgs
                {
                    Name = "all",
                },
            },
            Srcintf = "port3",
            Status = "enable",
            Ttl = "23",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.firewall.Ttlpolicy;
    import com.pulumi.fortios.firewall.TtlpolicyArgs;
    import com.pulumi.fortios.firewall.inputs.TtlpolicyServiceArgs;
    import com.pulumi.fortios.firewall.inputs.TtlpolicySrcaddrArgs;
    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 Ttlpolicy("trname", TtlpolicyArgs.builder()        
                .action("accept")
                .fosid(1)
                .schedule("always")
                .services(TtlpolicyServiceArgs.builder()
                    .name("ALL")
                    .build())
                .srcaddrs(TtlpolicySrcaddrArgs.builder()
                    .name("all")
                    .build())
                .srcintf("port3")
                .status("enable")
                .ttl("23")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:firewall:Ttlpolicy
        properties:
          action: accept
          fosid: 1
          schedule: always
          services:
            - name: ALL
          srcaddrs:
            - name: all
          srcintf: port3
          status: enable
          ttl: '23'
    

    Create Ttlpolicy Resource

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

    Constructor syntax

    new Ttlpolicy(name: string, args: TtlpolicyArgs, opts?: CustomResourceOptions);
    @overload
    def Ttlpolicy(resource_name: str,
                  args: TtlpolicyArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ttlpolicy(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  fosid: Optional[int] = None,
                  schedule: Optional[str] = None,
                  services: Optional[Sequence[TtlpolicyServiceArgs]] = None,
                  srcaddrs: Optional[Sequence[TtlpolicySrcaddrArgs]] = None,
                  srcintf: Optional[str] = None,
                  ttl: Optional[str] = None,
                  action: Optional[str] = None,
                  dynamic_sort_subtable: Optional[str] = None,
                  get_all_tables: Optional[str] = None,
                  status: Optional[str] = None,
                  vdomparam: Optional[str] = None)
    func NewTtlpolicy(ctx *Context, name string, args TtlpolicyArgs, opts ...ResourceOption) (*Ttlpolicy, error)
    public Ttlpolicy(string name, TtlpolicyArgs args, CustomResourceOptions? opts = null)
    public Ttlpolicy(String name, TtlpolicyArgs args)
    public Ttlpolicy(String name, TtlpolicyArgs args, CustomResourceOptions options)
    
    type: fortios:firewall:Ttlpolicy
    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 TtlpolicyArgs
    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 TtlpolicyArgs
    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 TtlpolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TtlpolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TtlpolicyArgs
    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 ttlpolicyResource = new Fortios.Firewall.Ttlpolicy("ttlpolicyResource", new()
    {
        Fosid = 0,
        Schedule = "string",
        Services = new[]
        {
            new Fortios.Firewall.Inputs.TtlpolicyServiceArgs
            {
                Name = "string",
            },
        },
        Srcaddrs = new[]
        {
            new Fortios.Firewall.Inputs.TtlpolicySrcaddrArgs
            {
                Name = "string",
            },
        },
        Srcintf = "string",
        Ttl = "string",
        Action = "string",
        DynamicSortSubtable = "string",
        GetAllTables = "string",
        Status = "string",
        Vdomparam = "string",
    });
    
    example, err := firewall.NewTtlpolicy(ctx, "ttlpolicyResource", &firewall.TtlpolicyArgs{
    	Fosid:    pulumi.Int(0),
    	Schedule: pulumi.String("string"),
    	Services: firewall.TtlpolicyServiceArray{
    		&firewall.TtlpolicyServiceArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Srcaddrs: firewall.TtlpolicySrcaddrArray{
    		&firewall.TtlpolicySrcaddrArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Srcintf:             pulumi.String("string"),
    	Ttl:                 pulumi.String("string"),
    	Action:              pulumi.String("string"),
    	DynamicSortSubtable: pulumi.String("string"),
    	GetAllTables:        pulumi.String("string"),
    	Status:              pulumi.String("string"),
    	Vdomparam:           pulumi.String("string"),
    })
    
    var ttlpolicyResource = new Ttlpolicy("ttlpolicyResource", TtlpolicyArgs.builder()
        .fosid(0)
        .schedule("string")
        .services(TtlpolicyServiceArgs.builder()
            .name("string")
            .build())
        .srcaddrs(TtlpolicySrcaddrArgs.builder()
            .name("string")
            .build())
        .srcintf("string")
        .ttl("string")
        .action("string")
        .dynamicSortSubtable("string")
        .getAllTables("string")
        .status("string")
        .vdomparam("string")
        .build());
    
    ttlpolicy_resource = fortios.firewall.Ttlpolicy("ttlpolicyResource",
        fosid=0,
        schedule="string",
        services=[fortios.firewall.TtlpolicyServiceArgs(
            name="string",
        )],
        srcaddrs=[fortios.firewall.TtlpolicySrcaddrArgs(
            name="string",
        )],
        srcintf="string",
        ttl="string",
        action="string",
        dynamic_sort_subtable="string",
        get_all_tables="string",
        status="string",
        vdomparam="string")
    
    const ttlpolicyResource = new fortios.firewall.Ttlpolicy("ttlpolicyResource", {
        fosid: 0,
        schedule: "string",
        services: [{
            name: "string",
        }],
        srcaddrs: [{
            name: "string",
        }],
        srcintf: "string",
        ttl: "string",
        action: "string",
        dynamicSortSubtable: "string",
        getAllTables: "string",
        status: "string",
        vdomparam: "string",
    });
    
    type: fortios:firewall:Ttlpolicy
    properties:
        action: string
        dynamicSortSubtable: string
        fosid: 0
        getAllTables: string
        schedule: string
        services:
            - name: string
        srcaddrs:
            - name: string
        srcintf: string
        status: string
        ttl: string
        vdomparam: string
    

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

    Fosid int
    ID.
    Schedule string
    Schedule object from available options.
    Services List<Pulumiverse.Fortios.Firewall.Inputs.TtlpolicyService>
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    Srcaddrs List<Pulumiverse.Fortios.Firewall.Inputs.TtlpolicySrcaddr>
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    Srcintf string
    Source interface name from available interfaces.
    Ttl string
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    Action string
    Action to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    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.
    Status string
    Enable/disable this TTL policy. Valid values: enable, disable.
    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.
    Fosid int
    ID.
    Schedule string
    Schedule object from available options.
    Services []TtlpolicyServiceArgs
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    Srcaddrs []TtlpolicySrcaddrArgs
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    Srcintf string
    Source interface name from available interfaces.
    Ttl string
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    Action string
    Action to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    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.
    Status string
    Enable/disable this TTL policy. Valid values: enable, disable.
    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.
    fosid Integer
    ID.
    schedule String
    Schedule object from available options.
    services List<TtlpolicyService>
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    srcaddrs List<TtlpolicySrcaddr>
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    srcintf String
    Source interface name from available interfaces.
    ttl String
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    action String
    Action to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    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.
    status String
    Enable/disable this TTL policy. Valid values: enable, disable.
    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.
    fosid number
    ID.
    schedule string
    Schedule object from available options.
    services TtlpolicyService[]
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    srcaddrs TtlpolicySrcaddr[]
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    srcintf string
    Source interface name from available interfaces.
    ttl string
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    action string
    Action to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    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.
    status string
    Enable/disable this TTL policy. Valid values: enable, disable.
    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.
    fosid int
    ID.
    schedule str
    Schedule object from available options.
    services Sequence[TtlpolicyServiceArgs]
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    srcaddrs Sequence[TtlpolicySrcaddrArgs]
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    srcintf str
    Source interface name from available interfaces.
    ttl str
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    action str
    Action to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    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.
    status str
    Enable/disable this TTL policy. Valid values: enable, disable.
    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.
    fosid Number
    ID.
    schedule String
    Schedule object from available options.
    services List<Property Map>
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    srcaddrs List<Property Map>
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    srcintf String
    Source interface name from available interfaces.
    ttl String
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    action String
    Action to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    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.
    status String
    Enable/disable this TTL policy. Valid values: enable, disable.
    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 Ttlpolicy 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 Ttlpolicy Resource

    Get an existing Ttlpolicy 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?: TtlpolicyState, opts?: CustomResourceOptions): Ttlpolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            dynamic_sort_subtable: Optional[str] = None,
            fosid: Optional[int] = None,
            get_all_tables: Optional[str] = None,
            schedule: Optional[str] = None,
            services: Optional[Sequence[TtlpolicyServiceArgs]] = None,
            srcaddrs: Optional[Sequence[TtlpolicySrcaddrArgs]] = None,
            srcintf: Optional[str] = None,
            status: Optional[str] = None,
            ttl: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Ttlpolicy
    func GetTtlpolicy(ctx *Context, name string, id IDInput, state *TtlpolicyState, opts ...ResourceOption) (*Ttlpolicy, error)
    public static Ttlpolicy Get(string name, Input<string> id, TtlpolicyState? state, CustomResourceOptions? opts = null)
    public static Ttlpolicy get(String name, Output<String> id, TtlpolicyState 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 to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    Fosid int
    ID.
    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.
    Schedule string
    Schedule object from available options.
    Services List<Pulumiverse.Fortios.Firewall.Inputs.TtlpolicyService>
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    Srcaddrs List<Pulumiverse.Fortios.Firewall.Inputs.TtlpolicySrcaddr>
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    Srcintf string
    Source interface name from available interfaces.
    Status string
    Enable/disable this TTL policy. Valid values: enable, disable.
    Ttl string
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    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 to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    Fosid int
    ID.
    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.
    Schedule string
    Schedule object from available options.
    Services []TtlpolicyServiceArgs
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    Srcaddrs []TtlpolicySrcaddrArgs
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    Srcintf string
    Source interface name from available interfaces.
    Status string
    Enable/disable this TTL policy. Valid values: enable, disable.
    Ttl string
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    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 to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    fosid Integer
    ID.
    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.
    schedule String
    Schedule object from available options.
    services List<TtlpolicyService>
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    srcaddrs List<TtlpolicySrcaddr>
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    srcintf String
    Source interface name from available interfaces.
    status String
    Enable/disable this TTL policy. Valid values: enable, disable.
    ttl String
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    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 to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    fosid number
    ID.
    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.
    schedule string
    Schedule object from available options.
    services TtlpolicyService[]
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    srcaddrs TtlpolicySrcaddr[]
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    srcintf string
    Source interface name from available interfaces.
    status string
    Enable/disable this TTL policy. Valid values: enable, disable.
    ttl string
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    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 to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    fosid int
    ID.
    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.
    schedule str
    Schedule object from available options.
    services Sequence[TtlpolicyServiceArgs]
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    srcaddrs Sequence[TtlpolicySrcaddrArgs]
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    srcintf str
    Source interface name from available interfaces.
    status str
    Enable/disable this TTL policy. Valid values: enable, disable.
    ttl str
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    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 to be performed on traffic matching this policy (default = deny). Valid values: accept, deny.
    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 ].
    fosid Number
    ID.
    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.
    schedule String
    Schedule object from available options.
    services List<Property Map>
    Service object(s) from available options. Separate multiple names with a space. The structure of service block is documented below.
    srcaddrs List<Property Map>
    Source address object(s) from available options. Separate multiple names with a space. The structure of srcaddr block is documented below.
    srcintf String
    Source interface name from available interfaces.
    status String
    Enable/disable this TTL policy. Valid values: enable, disable.
    ttl String
    Value/range to match against the packet's Time to Live value (format: ttl[ - ttl_high], 1 - 255).
    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

    TtlpolicyService, TtlpolicyServiceArgs

    Name string
    Service name.
    Name string
    Service name.
    name String
    Service name.
    name string
    Service name.
    name str
    Service name.
    name String
    Service name.

    TtlpolicySrcaddr, TtlpolicySrcaddrArgs

    Name string
    Address name.
    Name string
    Address name.
    name String
    Address name.
    name string
    Address name.
    name str
    Address name.
    name String
    Address name.

    Import

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

    $ pulumi import fortios:firewall/ttlpolicy:Ttlpolicy labelname {{fosid}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:firewall/ttlpolicy:Ttlpolicy labelname {{fosid}}
    

    $ 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