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

fortios.firewall.Localinpolicy

Explore with Pulumi AI

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

    Configure user defined IPv4 local-in policies.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.firewall.Localinpolicy("trname", {
        action: "accept",
        dstaddrs: [{
            name: "all",
        }],
        haMgmtIntfOnly: "disable",
        intf: "port4",
        policyid: 1,
        schedule: "always",
        services: [{
            name: "ALL",
        }],
        srcaddrs: [{
            name: "all",
        }],
        status: "enable",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.firewall.Localinpolicy("trname",
        action="accept",
        dstaddrs=[fortios.firewall.LocalinpolicyDstaddrArgs(
            name="all",
        )],
        ha_mgmt_intf_only="disable",
        intf="port4",
        policyid=1,
        schedule="always",
        services=[fortios.firewall.LocalinpolicyServiceArgs(
            name="ALL",
        )],
        srcaddrs=[fortios.firewall.LocalinpolicySrcaddrArgs(
            name="all",
        )],
        status="enable")
    
    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.NewLocalinpolicy(ctx, "trname", &firewall.LocalinpolicyArgs{
    			Action: pulumi.String("accept"),
    			Dstaddrs: firewall.LocalinpolicyDstaddrArray{
    				&firewall.LocalinpolicyDstaddrArgs{
    					Name: pulumi.String("all"),
    				},
    			},
    			HaMgmtIntfOnly: pulumi.String("disable"),
    			Intf:           pulumi.String("port4"),
    			Policyid:       pulumi.Int(1),
    			Schedule:       pulumi.String("always"),
    			Services: firewall.LocalinpolicyServiceArray{
    				&firewall.LocalinpolicyServiceArgs{
    					Name: pulumi.String("ALL"),
    				},
    			},
    			Srcaddrs: firewall.LocalinpolicySrcaddrArray{
    				&firewall.LocalinpolicySrcaddrArgs{
    					Name: pulumi.String("all"),
    				},
    			},
    			Status: pulumi.String("enable"),
    		})
    		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.Localinpolicy("trname", new()
        {
            Action = "accept",
            Dstaddrs = new[]
            {
                new Fortios.Firewall.Inputs.LocalinpolicyDstaddrArgs
                {
                    Name = "all",
                },
            },
            HaMgmtIntfOnly = "disable",
            Intf = "port4",
            Policyid = 1,
            Schedule = "always",
            Services = new[]
            {
                new Fortios.Firewall.Inputs.LocalinpolicyServiceArgs
                {
                    Name = "ALL",
                },
            },
            Srcaddrs = new[]
            {
                new Fortios.Firewall.Inputs.LocalinpolicySrcaddrArgs
                {
                    Name = "all",
                },
            },
            Status = "enable",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.firewall.Localinpolicy;
    import com.pulumi.fortios.firewall.LocalinpolicyArgs;
    import com.pulumi.fortios.firewall.inputs.LocalinpolicyDstaddrArgs;
    import com.pulumi.fortios.firewall.inputs.LocalinpolicyServiceArgs;
    import com.pulumi.fortios.firewall.inputs.LocalinpolicySrcaddrArgs;
    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 Localinpolicy("trname", LocalinpolicyArgs.builder()        
                .action("accept")
                .dstaddrs(LocalinpolicyDstaddrArgs.builder()
                    .name("all")
                    .build())
                .haMgmtIntfOnly("disable")
                .intf("port4")
                .policyid(1)
                .schedule("always")
                .services(LocalinpolicyServiceArgs.builder()
                    .name("ALL")
                    .build())
                .srcaddrs(LocalinpolicySrcaddrArgs.builder()
                    .name("all")
                    .build())
                .status("enable")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:firewall:Localinpolicy
        properties:
          action: accept
          dstaddrs:
            - name: all
          haMgmtIntfOnly: disable
          intf: port4
          policyid: 1
          schedule: always
          services:
            - name: ALL
          srcaddrs:
            - name: all
          status: enable
    

    Create Localinpolicy Resource

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

    Constructor syntax

    new Localinpolicy(name: string, args: LocalinpolicyArgs, opts?: CustomResourceOptions);
    @overload
    def Localinpolicy(resource_name: str,
                      args: LocalinpolicyArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def Localinpolicy(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      dstaddrs: Optional[Sequence[LocalinpolicyDstaddrArgs]] = None,
                      srcaddrs: Optional[Sequence[LocalinpolicySrcaddrArgs]] = None,
                      schedule: Optional[str] = None,
                      policyid: Optional[int] = None,
                      service_negate: Optional[str] = None,
                      get_all_tables: Optional[str] = None,
                      ha_mgmt_intf_only: Optional[str] = None,
                      intf: Optional[str] = None,
                      action: Optional[str] = None,
                      dstaddr_negate: Optional[str] = None,
                      dynamic_sort_subtable: Optional[str] = None,
                      services: Optional[Sequence[LocalinpolicyServiceArgs]] = None,
                      srcaddr_negate: Optional[str] = None,
                      comments: Optional[str] = None,
                      status: Optional[str] = None,
                      uuid: Optional[str] = None,
                      vdomparam: Optional[str] = None,
                      virtual_patch: Optional[str] = None)
    func NewLocalinpolicy(ctx *Context, name string, args LocalinpolicyArgs, opts ...ResourceOption) (*Localinpolicy, error)
    public Localinpolicy(string name, LocalinpolicyArgs args, CustomResourceOptions? opts = null)
    public Localinpolicy(String name, LocalinpolicyArgs args)
    public Localinpolicy(String name, LocalinpolicyArgs args, CustomResourceOptions options)
    
    type: fortios:firewall:Localinpolicy
    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 LocalinpolicyArgs
    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 LocalinpolicyArgs
    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 LocalinpolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LocalinpolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LocalinpolicyArgs
    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 localinpolicyResource = new Fortios.Firewall.Localinpolicy("localinpolicyResource", new()
    {
        Dstaddrs = new[]
        {
            new Fortios.Firewall.Inputs.LocalinpolicyDstaddrArgs
            {
                Name = "string",
            },
        },
        Srcaddrs = new[]
        {
            new Fortios.Firewall.Inputs.LocalinpolicySrcaddrArgs
            {
                Name = "string",
            },
        },
        Schedule = "string",
        Policyid = 0,
        ServiceNegate = "string",
        GetAllTables = "string",
        HaMgmtIntfOnly = "string",
        Intf = "string",
        Action = "string",
        DstaddrNegate = "string",
        DynamicSortSubtable = "string",
        Services = new[]
        {
            new Fortios.Firewall.Inputs.LocalinpolicyServiceArgs
            {
                Name = "string",
            },
        },
        SrcaddrNegate = "string",
        Comments = "string",
        Status = "string",
        Uuid = "string",
        Vdomparam = "string",
        VirtualPatch = "string",
    });
    
    example, err := firewall.NewLocalinpolicy(ctx, "localinpolicyResource", &firewall.LocalinpolicyArgs{
    	Dstaddrs: firewall.LocalinpolicyDstaddrArray{
    		&firewall.LocalinpolicyDstaddrArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Srcaddrs: firewall.LocalinpolicySrcaddrArray{
    		&firewall.LocalinpolicySrcaddrArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Schedule:            pulumi.String("string"),
    	Policyid:            pulumi.Int(0),
    	ServiceNegate:       pulumi.String("string"),
    	GetAllTables:        pulumi.String("string"),
    	HaMgmtIntfOnly:      pulumi.String("string"),
    	Intf:                pulumi.String("string"),
    	Action:              pulumi.String("string"),
    	DstaddrNegate:       pulumi.String("string"),
    	DynamicSortSubtable: pulumi.String("string"),
    	Services: firewall.LocalinpolicyServiceArray{
    		&firewall.LocalinpolicyServiceArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	SrcaddrNegate: pulumi.String("string"),
    	Comments:      pulumi.String("string"),
    	Status:        pulumi.String("string"),
    	Uuid:          pulumi.String("string"),
    	Vdomparam:     pulumi.String("string"),
    	VirtualPatch:  pulumi.String("string"),
    })
    
    var localinpolicyResource = new Localinpolicy("localinpolicyResource", LocalinpolicyArgs.builder()
        .dstaddrs(LocalinpolicyDstaddrArgs.builder()
            .name("string")
            .build())
        .srcaddrs(LocalinpolicySrcaddrArgs.builder()
            .name("string")
            .build())
        .schedule("string")
        .policyid(0)
        .serviceNegate("string")
        .getAllTables("string")
        .haMgmtIntfOnly("string")
        .intf("string")
        .action("string")
        .dstaddrNegate("string")
        .dynamicSortSubtable("string")
        .services(LocalinpolicyServiceArgs.builder()
            .name("string")
            .build())
        .srcaddrNegate("string")
        .comments("string")
        .status("string")
        .uuid("string")
        .vdomparam("string")
        .virtualPatch("string")
        .build());
    
    localinpolicy_resource = fortios.firewall.Localinpolicy("localinpolicyResource",
        dstaddrs=[fortios.firewall.LocalinpolicyDstaddrArgs(
            name="string",
        )],
        srcaddrs=[fortios.firewall.LocalinpolicySrcaddrArgs(
            name="string",
        )],
        schedule="string",
        policyid=0,
        service_negate="string",
        get_all_tables="string",
        ha_mgmt_intf_only="string",
        intf="string",
        action="string",
        dstaddr_negate="string",
        dynamic_sort_subtable="string",
        services=[fortios.firewall.LocalinpolicyServiceArgs(
            name="string",
        )],
        srcaddr_negate="string",
        comments="string",
        status="string",
        uuid="string",
        vdomparam="string",
        virtual_patch="string")
    
    const localinpolicyResource = new fortios.firewall.Localinpolicy("localinpolicyResource", {
        dstaddrs: [{
            name: "string",
        }],
        srcaddrs: [{
            name: "string",
        }],
        schedule: "string",
        policyid: 0,
        serviceNegate: "string",
        getAllTables: "string",
        haMgmtIntfOnly: "string",
        intf: "string",
        action: "string",
        dstaddrNegate: "string",
        dynamicSortSubtable: "string",
        services: [{
            name: "string",
        }],
        srcaddrNegate: "string",
        comments: "string",
        status: "string",
        uuid: "string",
        vdomparam: "string",
        virtualPatch: "string",
    });
    
    type: fortios:firewall:Localinpolicy
    properties:
        action: string
        comments: string
        dstaddrNegate: string
        dstaddrs:
            - name: string
        dynamicSortSubtable: string
        getAllTables: string
        haMgmtIntfOnly: string
        intf: string
        policyid: 0
        schedule: string
        serviceNegate: string
        services:
            - name: string
        srcaddrNegate: string
        srcaddrs:
            - name: string
        status: string
        uuid: string
        vdomparam: string
        virtualPatch: string
    

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

    Dstaddrs List<Pulumiverse.Fortios.Firewall.Inputs.LocalinpolicyDstaddr>
    Destination address object from available options. The structure of dstaddr block is documented below.
    Schedule string
    Schedule object from available options.
    Srcaddrs List<Pulumiverse.Fortios.Firewall.Inputs.LocalinpolicySrcaddr>
    Source address object from available options. The structure of srcaddr block is documented below.
    Action string
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    Comments string
    Comment.
    DstaddrNegate string
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    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.
    HaMgmtIntfOnly string
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    Intf string
    Incoming interface name from available options.
    Policyid int
    User defined local in policy ID.
    ServiceNegate string
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    Services List<Pulumiverse.Fortios.Firewall.Inputs.LocalinpolicyService>
    Service object from available options. The structure of service block is documented below.
    SrcaddrNegate string
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    Status string
    Enable/disable this local-in policy. Valid values: enable, disable.
    Uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    VirtualPatch string
    Enable/disable virtual patching. Valid values: enable, disable.
    Dstaddrs []LocalinpolicyDstaddrArgs
    Destination address object from available options. The structure of dstaddr block is documented below.
    Schedule string
    Schedule object from available options.
    Srcaddrs []LocalinpolicySrcaddrArgs
    Source address object from available options. The structure of srcaddr block is documented below.
    Action string
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    Comments string
    Comment.
    DstaddrNegate string
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    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.
    HaMgmtIntfOnly string
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    Intf string
    Incoming interface name from available options.
    Policyid int
    User defined local in policy ID.
    ServiceNegate string
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    Services []LocalinpolicyServiceArgs
    Service object from available options. The structure of service block is documented below.
    SrcaddrNegate string
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    Status string
    Enable/disable this local-in policy. Valid values: enable, disable.
    Uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    VirtualPatch string
    Enable/disable virtual patching. Valid values: enable, disable.
    dstaddrs List<LocalinpolicyDstaddr>
    Destination address object from available options. The structure of dstaddr block is documented below.
    schedule String
    Schedule object from available options.
    srcaddrs List<LocalinpolicySrcaddr>
    Source address object from available options. The structure of srcaddr block is documented below.
    action String
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    comments String
    Comment.
    dstaddrNegate String
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    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.
    haMgmtIntfOnly String
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    intf String
    Incoming interface name from available options.
    policyid Integer
    User defined local in policy ID.
    serviceNegate String
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    services List<LocalinpolicyService>
    Service object from available options. The structure of service block is documented below.
    srcaddrNegate String
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    status String
    Enable/disable this local-in policy. Valid values: enable, disable.
    uuid String
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    virtualPatch String
    Enable/disable virtual patching. Valid values: enable, disable.
    dstaddrs LocalinpolicyDstaddr[]
    Destination address object from available options. The structure of dstaddr block is documented below.
    schedule string
    Schedule object from available options.
    srcaddrs LocalinpolicySrcaddr[]
    Source address object from available options. The structure of srcaddr block is documented below.
    action string
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    comments string
    Comment.
    dstaddrNegate string
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    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.
    haMgmtIntfOnly string
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    intf string
    Incoming interface name from available options.
    policyid number
    User defined local in policy ID.
    serviceNegate string
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    services LocalinpolicyService[]
    Service object from available options. The structure of service block is documented below.
    srcaddrNegate string
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    status string
    Enable/disable this local-in policy. Valid values: enable, disable.
    uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    virtualPatch string
    Enable/disable virtual patching. Valid values: enable, disable.
    dstaddrs Sequence[LocalinpolicyDstaddrArgs]
    Destination address object from available options. The structure of dstaddr block is documented below.
    schedule str
    Schedule object from available options.
    srcaddrs Sequence[LocalinpolicySrcaddrArgs]
    Source address object from available options. The structure of srcaddr block is documented below.
    action str
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    comments str
    Comment.
    dstaddr_negate str
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    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.
    ha_mgmt_intf_only str
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    intf str
    Incoming interface name from available options.
    policyid int
    User defined local in policy ID.
    service_negate str
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    services Sequence[LocalinpolicyServiceArgs]
    Service object from available options. The structure of service block is documented below.
    srcaddr_negate str
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    status str
    Enable/disable this local-in policy. Valid values: enable, disable.
    uuid str
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    virtual_patch str
    Enable/disable virtual patching. Valid values: enable, disable.
    dstaddrs List<Property Map>
    Destination address object from available options. The structure of dstaddr block is documented below.
    schedule String
    Schedule object from available options.
    srcaddrs List<Property Map>
    Source address object from available options. The structure of srcaddr block is documented below.
    action String
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    comments String
    Comment.
    dstaddrNegate String
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    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.
    haMgmtIntfOnly String
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    intf String
    Incoming interface name from available options.
    policyid Number
    User defined local in policy ID.
    serviceNegate String
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    services List<Property Map>
    Service object from available options. The structure of service block is documented below.
    srcaddrNegate String
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    status String
    Enable/disable this local-in policy. Valid values: enable, disable.
    uuid String
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    virtualPatch String
    Enable/disable virtual patching. Valid values: enable, disable.

    Outputs

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

    Get an existing Localinpolicy 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?: LocalinpolicyState, opts?: CustomResourceOptions): Localinpolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            comments: Optional[str] = None,
            dstaddr_negate: Optional[str] = None,
            dstaddrs: Optional[Sequence[LocalinpolicyDstaddrArgs]] = None,
            dynamic_sort_subtable: Optional[str] = None,
            get_all_tables: Optional[str] = None,
            ha_mgmt_intf_only: Optional[str] = None,
            intf: Optional[str] = None,
            policyid: Optional[int] = None,
            schedule: Optional[str] = None,
            service_negate: Optional[str] = None,
            services: Optional[Sequence[LocalinpolicyServiceArgs]] = None,
            srcaddr_negate: Optional[str] = None,
            srcaddrs: Optional[Sequence[LocalinpolicySrcaddrArgs]] = None,
            status: Optional[str] = None,
            uuid: Optional[str] = None,
            vdomparam: Optional[str] = None,
            virtual_patch: Optional[str] = None) -> Localinpolicy
    func GetLocalinpolicy(ctx *Context, name string, id IDInput, state *LocalinpolicyState, opts ...ResourceOption) (*Localinpolicy, error)
    public static Localinpolicy Get(string name, Input<string> id, LocalinpolicyState? state, CustomResourceOptions? opts = null)
    public static Localinpolicy get(String name, Output<String> id, LocalinpolicyState 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 performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    Comments string
    Comment.
    DstaddrNegate string
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    Dstaddrs List<Pulumiverse.Fortios.Firewall.Inputs.LocalinpolicyDstaddr>
    Destination address object from available options. 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 ].
    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.
    HaMgmtIntfOnly string
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    Intf string
    Incoming interface name from available options.
    Policyid int
    User defined local in policy ID.
    Schedule string
    Schedule object from available options.
    ServiceNegate string
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    Services List<Pulumiverse.Fortios.Firewall.Inputs.LocalinpolicyService>
    Service object from available options. The structure of service block is documented below.
    SrcaddrNegate string
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    Srcaddrs List<Pulumiverse.Fortios.Firewall.Inputs.LocalinpolicySrcaddr>
    Source address object from available options. The structure of srcaddr block is documented below.
    Status string
    Enable/disable this local-in policy. Valid values: enable, disable.
    Uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    VirtualPatch string
    Enable/disable virtual patching. Valid values: enable, disable.
    Action string
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    Comments string
    Comment.
    DstaddrNegate string
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    Dstaddrs []LocalinpolicyDstaddrArgs
    Destination address object from available options. 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 ].
    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.
    HaMgmtIntfOnly string
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    Intf string
    Incoming interface name from available options.
    Policyid int
    User defined local in policy ID.
    Schedule string
    Schedule object from available options.
    ServiceNegate string
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    Services []LocalinpolicyServiceArgs
    Service object from available options. The structure of service block is documented below.
    SrcaddrNegate string
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    Srcaddrs []LocalinpolicySrcaddrArgs
    Source address object from available options. The structure of srcaddr block is documented below.
    Status string
    Enable/disable this local-in policy. Valid values: enable, disable.
    Uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    VirtualPatch string
    Enable/disable virtual patching. Valid values: enable, disable.
    action String
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    comments String
    Comment.
    dstaddrNegate String
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    dstaddrs List<LocalinpolicyDstaddr>
    Destination address object from available options. 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 ].
    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.
    haMgmtIntfOnly String
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    intf String
    Incoming interface name from available options.
    policyid Integer
    User defined local in policy ID.
    schedule String
    Schedule object from available options.
    serviceNegate String
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    services List<LocalinpolicyService>
    Service object from available options. The structure of service block is documented below.
    srcaddrNegate String
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    srcaddrs List<LocalinpolicySrcaddr>
    Source address object from available options. The structure of srcaddr block is documented below.
    status String
    Enable/disable this local-in policy. Valid values: enable, disable.
    uuid String
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    virtualPatch String
    Enable/disable virtual patching. Valid values: enable, disable.
    action string
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    comments string
    Comment.
    dstaddrNegate string
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    dstaddrs LocalinpolicyDstaddr[]
    Destination address object from available options. 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 ].
    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.
    haMgmtIntfOnly string
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    intf string
    Incoming interface name from available options.
    policyid number
    User defined local in policy ID.
    schedule string
    Schedule object from available options.
    serviceNegate string
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    services LocalinpolicyService[]
    Service object from available options. The structure of service block is documented below.
    srcaddrNegate string
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    srcaddrs LocalinpolicySrcaddr[]
    Source address object from available options. The structure of srcaddr block is documented below.
    status string
    Enable/disable this local-in policy. Valid values: enable, disable.
    uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    virtualPatch string
    Enable/disable virtual patching. Valid values: enable, disable.
    action str
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    comments str
    Comment.
    dstaddr_negate str
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    dstaddrs Sequence[LocalinpolicyDstaddrArgs]
    Destination address object from available options. 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 ].
    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.
    ha_mgmt_intf_only str
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    intf str
    Incoming interface name from available options.
    policyid int
    User defined local in policy ID.
    schedule str
    Schedule object from available options.
    service_negate str
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    services Sequence[LocalinpolicyServiceArgs]
    Service object from available options. The structure of service block is documented below.
    srcaddr_negate str
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    srcaddrs Sequence[LocalinpolicySrcaddrArgs]
    Source address object from available options. The structure of srcaddr block is documented below.
    status str
    Enable/disable this local-in policy. Valid values: enable, disable.
    uuid str
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    virtual_patch str
    Enable/disable virtual patching. Valid values: enable, disable.
    action String
    Action performed on traffic matching the policy (default = deny). Valid values: accept, deny.
    comments String
    Comment.
    dstaddrNegate String
    When enabled dstaddr specifies what the destination address must NOT be. Valid values: enable, disable.
    dstaddrs List<Property Map>
    Destination address object from available options. 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 ].
    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.
    haMgmtIntfOnly String
    Enable/disable dedicating the HA management interface only for local-in policy. Valid values: enable, disable.
    intf String
    Incoming interface name from available options.
    policyid Number
    User defined local in policy ID.
    schedule String
    Schedule object from available options.
    serviceNegate String
    When enabled service specifies what the service must NOT be. Valid values: enable, disable.
    services List<Property Map>
    Service object from available options. The structure of service block is documented below.
    srcaddrNegate String
    When enabled srcaddr specifies what the source address must NOT be. Valid values: enable, disable.
    srcaddrs List<Property Map>
    Source address object from available options. The structure of srcaddr block is documented below.
    status String
    Enable/disable this local-in policy. Valid values: enable, disable.
    uuid String
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    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.
    virtualPatch String
    Enable/disable virtual patching. Valid values: enable, disable.

    Supporting Types

    LocalinpolicyDstaddr, LocalinpolicyDstaddrArgs

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

    LocalinpolicyService, LocalinpolicyServiceArgs

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

    LocalinpolicySrcaddr, LocalinpolicySrcaddrArgs

    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 LocalInPolicy can be imported using any of these accepted formats:

    $ pulumi import fortios:firewall/localinpolicy:Localinpolicy labelname {{policyid}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:firewall/localinpolicy:Localinpolicy labelname {{policyid}}
    

    $ 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