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

fortios.dlp.Filepattern

Explore with Pulumi AI

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

    Configure file patterns used by DLP blocking.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.dlp.Filepattern("trname", {fosid: 9});
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.dlp.Filepattern("trname", fosid=9)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/dlp"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dlp.NewFilepattern(ctx, "trname", &dlp.FilepatternArgs{
    			Fosid: pulumi.Int(9),
    		})
    		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.Dlp.Filepattern("trname", new()
        {
            Fosid = 9,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.dlp.Filepattern;
    import com.pulumi.fortios.dlp.FilepatternArgs;
    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 Filepattern("trname", FilepatternArgs.builder()
                .fosid(9)
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:dlp:Filepattern
        properties:
          fosid: 9
    

    Create Filepattern Resource

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

    Constructor syntax

    new Filepattern(name: string, args: FilepatternArgs, opts?: CustomResourceOptions);
    @overload
    def Filepattern(resource_name: str,
                    args: FilepatternArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Filepattern(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    fosid: Optional[int] = None,
                    comment: Optional[str] = None,
                    dynamic_sort_subtable: Optional[str] = None,
                    entries: Optional[Sequence[FilepatternEntryArgs]] = None,
                    get_all_tables: Optional[str] = None,
                    name: Optional[str] = None,
                    vdomparam: Optional[str] = None)
    func NewFilepattern(ctx *Context, name string, args FilepatternArgs, opts ...ResourceOption) (*Filepattern, error)
    public Filepattern(string name, FilepatternArgs args, CustomResourceOptions? opts = null)
    public Filepattern(String name, FilepatternArgs args)
    public Filepattern(String name, FilepatternArgs args, CustomResourceOptions options)
    
    type: fortios:dlp:Filepattern
    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 FilepatternArgs
    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 FilepatternArgs
    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 FilepatternArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FilepatternArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FilepatternArgs
    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 filepatternResource = new Fortios.Dlp.Filepattern("filepatternResource", new()
    {
        Fosid = 0,
        Comment = "string",
        DynamicSortSubtable = "string",
        Entries = new[]
        {
            new Fortios.Dlp.Inputs.FilepatternEntryArgs
            {
                FileType = "string",
                FilterType = "string",
                Pattern = "string",
            },
        },
        GetAllTables = "string",
        Name = "string",
        Vdomparam = "string",
    });
    
    example, err := dlp.NewFilepattern(ctx, "filepatternResource", &dlp.FilepatternArgs{
    	Fosid:               pulumi.Int(0),
    	Comment:             pulumi.String("string"),
    	DynamicSortSubtable: pulumi.String("string"),
    	Entries: dlp.FilepatternEntryArray{
    		&dlp.FilepatternEntryArgs{
    			FileType:   pulumi.String("string"),
    			FilterType: pulumi.String("string"),
    			Pattern:    pulumi.String("string"),
    		},
    	},
    	GetAllTables: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Vdomparam:    pulumi.String("string"),
    })
    
    var filepatternResource = new Filepattern("filepatternResource", FilepatternArgs.builder()
        .fosid(0)
        .comment("string")
        .dynamicSortSubtable("string")
        .entries(FilepatternEntryArgs.builder()
            .fileType("string")
            .filterType("string")
            .pattern("string")
            .build())
        .getAllTables("string")
        .name("string")
        .vdomparam("string")
        .build());
    
    filepattern_resource = fortios.dlp.Filepattern("filepatternResource",
        fosid=0,
        comment="string",
        dynamic_sort_subtable="string",
        entries=[fortios.dlp.FilepatternEntryArgs(
            file_type="string",
            filter_type="string",
            pattern="string",
        )],
        get_all_tables="string",
        name="string",
        vdomparam="string")
    
    const filepatternResource = new fortios.dlp.Filepattern("filepatternResource", {
        fosid: 0,
        comment: "string",
        dynamicSortSubtable: "string",
        entries: [{
            fileType: "string",
            filterType: "string",
            pattern: "string",
        }],
        getAllTables: "string",
        name: "string",
        vdomparam: "string",
    });
    
    type: fortios:dlp:Filepattern
    properties:
        comment: string
        dynamicSortSubtable: string
        entries:
            - fileType: string
              filterType: string
              pattern: string
        fosid: 0
        getAllTables: string
        name: string
        vdomparam: string
    

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

    Fosid int
    ID.
    Comment string
    Optional comments.
    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 ].
    Entries List<Pulumiverse.Fortios.Dlp.Inputs.FilepatternEntry>
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Name string
    Name of table containing the file pattern list.
    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.
    Comment string
    Optional comments.
    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 ].
    Entries []FilepatternEntryArgs
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Name string
    Name of table containing the file pattern list.
    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.
    comment String
    Optional comments.
    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 ].
    entries List<FilepatternEntry>
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name String
    Name of table containing the file pattern list.
    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.
    comment string
    Optional comments.
    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 ].
    entries FilepatternEntry[]
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name string
    Name of table containing the file pattern list.
    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.
    comment str
    Optional comments.
    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 ].
    entries Sequence[FilepatternEntryArgs]
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name str
    Name of table containing the file pattern list.
    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.
    comment String
    Optional comments.
    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 ].
    entries List<Property Map>
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name String
    Name of table containing the file pattern list.
    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 Filepattern 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 Filepattern Resource

    Get an existing Filepattern 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?: FilepatternState, opts?: CustomResourceOptions): Filepattern
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            dynamic_sort_subtable: Optional[str] = None,
            entries: Optional[Sequence[FilepatternEntryArgs]] = None,
            fosid: Optional[int] = None,
            get_all_tables: Optional[str] = None,
            name: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Filepattern
    func GetFilepattern(ctx *Context, name string, id IDInput, state *FilepatternState, opts ...ResourceOption) (*Filepattern, error)
    public static Filepattern Get(string name, Input<string> id, FilepatternState? state, CustomResourceOptions? opts = null)
    public static Filepattern get(String name, Output<String> id, FilepatternState 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:
    Comment string
    Optional comments.
    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 ].
    Entries List<Pulumiverse.Fortios.Dlp.Inputs.FilepatternEntry>
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Name string
    Name of table containing the file pattern list.
    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.
    Comment string
    Optional comments.
    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 ].
    Entries []FilepatternEntryArgs
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Name string
    Name of table containing the file pattern list.
    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.
    comment String
    Optional comments.
    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 ].
    entries List<FilepatternEntry>
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name String
    Name of table containing the file pattern list.
    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.
    comment string
    Optional comments.
    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 ].
    entries FilepatternEntry[]
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name string
    Name of table containing the file pattern list.
    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.
    comment str
    Optional comments.
    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 ].
    entries Sequence[FilepatternEntryArgs]
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name str
    Name of table containing the file pattern list.
    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.
    comment String
    Optional comments.
    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 ].
    entries List<Property Map>
    Configure file patterns used by DLP blocking. The structure of entries block is documented below.
    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, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name String
    Name of table containing the file pattern list.
    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

    FilepatternEntry, FilepatternEntryArgs

    FileType string
    Select a file type.
    FilterType string
    Filter by file name pattern or by file type. Valid values: pattern, type.
    Pattern string
    Add a file name pattern.
    FileType string
    Select a file type.
    FilterType string
    Filter by file name pattern or by file type. Valid values: pattern, type.
    Pattern string
    Add a file name pattern.
    fileType String
    Select a file type.
    filterType String
    Filter by file name pattern or by file type. Valid values: pattern, type.
    pattern String
    Add a file name pattern.
    fileType string
    Select a file type.
    filterType string
    Filter by file name pattern or by file type. Valid values: pattern, type.
    pattern string
    Add a file name pattern.
    file_type str
    Select a file type.
    filter_type str
    Filter by file name pattern or by file type. Valid values: pattern, type.
    pattern str
    Add a file name pattern.
    fileType String
    Select a file type.
    filterType String
    Filter by file name pattern or by file type. Valid values: pattern, type.
    pattern String
    Add a file name pattern.

    Import

    Dlp Filepattern can be imported using any of these accepted formats:

    $ pulumi import fortios:dlp/filepattern:Filepattern labelname {{fosid}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:dlp/filepattern:Filepattern 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.6 published on Tuesday, Jul 9, 2024 by pulumiverse