fortios.dlp.Filepattern
Explore with Pulumi AI
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.
- Dynamic
Sort stringSubtable - 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. Filepattern Entry> - Configure file patterns used by DLP blocking. The structure of
entries
block is documented below. - Get
All stringTables - 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.
- 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.
- Dynamic
Sort stringSubtable - 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
[]Filepattern
Entry Args - Configure file patterns used by DLP blocking. The structure of
entries
block is documented below. - Get
All stringTables - 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.
- 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.
- dynamic
Sort StringSubtable - 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<Filepattern
Entry> - Configure file patterns used by DLP blocking. The structure of
entries
block is documented below. - get
All StringTables - 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.
- 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.
- dynamic
Sort stringSubtable - 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
Filepattern
Entry[] - Configure file patterns used by DLP blocking. The structure of
entries
block is documented below. - get
All stringTables - 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.
- 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_ strsubtable - 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[Filepattern
Entry Args] - Configure file patterns used by DLP blocking. The structure of
entries
block is documented below. - get_
all_ strtables - 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.
- 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.
- dynamic
Sort StringSubtable - 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. - get
All StringTables - 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.
- 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.
- Comment string
- Optional comments.
- Dynamic
Sort stringSubtable - 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. Filepattern Entry> - Configure file patterns used by DLP blocking. The structure of
entries
block is documented below. - Fosid int
- ID.
- Get
All stringTables - 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.
- 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.
- Dynamic
Sort stringSubtable - 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
[]Filepattern
Entry Args - Configure file patterns used by DLP blocking. The structure of
entries
block is documented below. - Fosid int
- ID.
- Get
All stringTables - 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.
- 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.
- dynamic
Sort StringSubtable - 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<Filepattern
Entry> - Configure file patterns used by DLP blocking. The structure of
entries
block is documented below. - fosid Integer
- ID.
- get
All StringTables - 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.
- 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.
- dynamic
Sort stringSubtable - 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
Filepattern
Entry[] - Configure file patterns used by DLP blocking. The structure of
entries
block is documented below. - fosid number
- ID.
- get
All stringTables - 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.
- 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_ strsubtable - 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[Filepattern
Entry Args] - Configure file patterns used by DLP blocking. The structure of
entries
block is documented below. - fosid int
- ID.
- get_
all_ strtables - 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.
- 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.
- dynamic
Sort StringSubtable - 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.
- get
All StringTables - 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.
- 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
- File
Type string - Select a file type.
- Filter
Type string - Filter by file name pattern or by file type. Valid values:
pattern
,type
. - Pattern string
- Add a file name pattern.
- File
Type string - Select a file type.
- Filter
Type string - Filter by file name pattern or by file type. Valid values:
pattern
,type
. - Pattern string
- Add a file name pattern.
- file
Type String - Select a file type.
- filter
Type String - Filter by file name pattern or by file type. Valid values:
pattern
,type
. - pattern String
- Add a file name pattern.
- file
Type string - Select a file type.
- filter
Type 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.
- file
Type String - Select a file type.
- filter
Type 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.