1. Packages
  2. Fortios
  3. API Docs
  4. filter
  5. filter/file
  6. Profile
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.filter/file.Profile

Explore with Pulumi AI

Configure file-filter profiles. Applies to FortiOS Version >= 6.4.1.

Create Profile Resource

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

Constructor syntax

new Profile(name: string, args?: ProfileArgs, opts?: CustomResourceOptions);
@overload
def Profile(resource_name: str,
            args: Optional[ProfileArgs] = None,
            opts: Optional[ResourceOptions] = None)

@overload
def Profile(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            dynamic_sort_subtable: Optional[str] = None,
            extended_log: Optional[str] = None,
            feature_set: Optional[str] = None,
            get_all_tables: Optional[str] = None,
            log: Optional[str] = None,
            name: Optional[str] = None,
            replacemsg_group: Optional[str] = None,
            rules: Optional[Sequence[ProfileRuleArgs]] = None,
            scan_archive_contents: Optional[str] = None,
            vdomparam: Optional[str] = None)
func NewProfile(ctx *Context, name string, args *ProfileArgs, opts ...ResourceOption) (*Profile, error)
public Profile(string name, ProfileArgs? args = null, CustomResourceOptions? opts = null)
public Profile(String name, ProfileArgs args)
public Profile(String name, ProfileArgs args, CustomResourceOptions options)
type: fortios:filter/file/profile:Profile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ProfileArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ProfileArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ProfileArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Profile Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Profile resource accepts the following input properties:

Comment string
Comment.
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 ].
ExtendedLog string
Enable/disable file-filter extended logging. Valid values: disable, enable.
FeatureSet string
Flow/proxy feature set. Valid values: flow, proxy.
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.
Log string
Enable/disable file-filter logging. Valid values: disable, enable.
Name Changes to this property will trigger replacement. string
Profile name.
ReplacemsgGroup string
Replacement message group
Rules List<Pulumiverse.Fortios.Filter.File.Inputs.ProfileRule>
File filter rules. The structure of rules block is documented below.
ScanArchiveContents string
Enable/disable archive contents scan. Valid values: disable, enable.
Vdomparam Changes to this property will trigger replacement. 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
Comment.
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 ].
ExtendedLog string
Enable/disable file-filter extended logging. Valid values: disable, enable.
FeatureSet string
Flow/proxy feature set. Valid values: flow, proxy.
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.
Log string
Enable/disable file-filter logging. Valid values: disable, enable.
Name Changes to this property will trigger replacement. string
Profile name.
ReplacemsgGroup string
Replacement message group
Rules []ProfileRuleArgs
File filter rules. The structure of rules block is documented below.
ScanArchiveContents string
Enable/disable archive contents scan. Valid values: disable, enable.
Vdomparam Changes to this property will trigger replacement. 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
Comment.
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 ].
extendedLog String
Enable/disable file-filter extended logging. Valid values: disable, enable.
featureSet String
Flow/proxy feature set. Valid values: flow, proxy.
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.
log String
Enable/disable file-filter logging. Valid values: disable, enable.
name Changes to this property will trigger replacement. String
Profile name.
replacemsgGroup String
Replacement message group
rules List<ProfileRule>
File filter rules. The structure of rules block is documented below.
scanArchiveContents String
Enable/disable archive contents scan. Valid values: disable, enable.
vdomparam Changes to this property will trigger replacement. 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
Comment.
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 ].
extendedLog string
Enable/disable file-filter extended logging. Valid values: disable, enable.
featureSet string
Flow/proxy feature set. Valid values: flow, proxy.
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.
log string
Enable/disable file-filter logging. Valid values: disable, enable.
name Changes to this property will trigger replacement. string
Profile name.
replacemsgGroup string
Replacement message group
rules ProfileRule[]
File filter rules. The structure of rules block is documented below.
scanArchiveContents string
Enable/disable archive contents scan. Valid values: disable, enable.
vdomparam Changes to this property will trigger replacement. 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
Comment.
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 ].
extended_log str
Enable/disable file-filter extended logging. Valid values: disable, enable.
feature_set str
Flow/proxy feature set. Valid values: flow, proxy.
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.
log str
Enable/disable file-filter logging. Valid values: disable, enable.
name Changes to this property will trigger replacement. str
Profile name.
replacemsg_group str
Replacement message group
rules Sequence[ProfileRuleArgs]
File filter rules. The structure of rules block is documented below.
scan_archive_contents str
Enable/disable archive contents scan. Valid values: disable, enable.
vdomparam Changes to this property will trigger replacement. 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
Comment.
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 ].
extendedLog String
Enable/disable file-filter extended logging. Valid values: disable, enable.
featureSet String
Flow/proxy feature set. Valid values: flow, proxy.
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.
log String
Enable/disable file-filter logging. Valid values: disable, enable.
name Changes to this property will trigger replacement. String
Profile name.
replacemsgGroup String
Replacement message group
rules List<Property Map>
File filter rules. The structure of rules block is documented below.
scanArchiveContents String
Enable/disable archive contents scan. Valid values: disable, enable.
vdomparam Changes to this property will trigger replacement. 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 Profile 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 Profile Resource

Get an existing Profile 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?: ProfileState, opts?: CustomResourceOptions): Profile
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        comment: Optional[str] = None,
        dynamic_sort_subtable: Optional[str] = None,
        extended_log: Optional[str] = None,
        feature_set: Optional[str] = None,
        get_all_tables: Optional[str] = None,
        log: Optional[str] = None,
        name: Optional[str] = None,
        replacemsg_group: Optional[str] = None,
        rules: Optional[Sequence[ProfileRuleArgs]] = None,
        scan_archive_contents: Optional[str] = None,
        vdomparam: Optional[str] = None) -> Profile
func GetProfile(ctx *Context, name string, id IDInput, state *ProfileState, opts ...ResourceOption) (*Profile, error)
public static Profile Get(string name, Input<string> id, ProfileState? state, CustomResourceOptions? opts = null)
public static Profile get(String name, Output<String> id, ProfileState state, CustomResourceOptions options)
resources:  _:    type: fortios:filter/file/profile:Profile    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Comment.
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 ].
ExtendedLog string
Enable/disable file-filter extended logging. Valid values: disable, enable.
FeatureSet string
Flow/proxy feature set. Valid values: flow, proxy.
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.
Log string
Enable/disable file-filter logging. Valid values: disable, enable.
Name Changes to this property will trigger replacement. string
Profile name.
ReplacemsgGroup string
Replacement message group
Rules List<Pulumiverse.Fortios.Filter.File.Inputs.ProfileRule>
File filter rules. The structure of rules block is documented below.
ScanArchiveContents string
Enable/disable archive contents scan. Valid values: disable, enable.
Vdomparam Changes to this property will trigger replacement. 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
Comment.
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 ].
ExtendedLog string
Enable/disable file-filter extended logging. Valid values: disable, enable.
FeatureSet string
Flow/proxy feature set. Valid values: flow, proxy.
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.
Log string
Enable/disable file-filter logging. Valid values: disable, enable.
Name Changes to this property will trigger replacement. string
Profile name.
ReplacemsgGroup string
Replacement message group
Rules []ProfileRuleArgs
File filter rules. The structure of rules block is documented below.
ScanArchiveContents string
Enable/disable archive contents scan. Valid values: disable, enable.
Vdomparam Changes to this property will trigger replacement. 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
Comment.
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 ].
extendedLog String
Enable/disable file-filter extended logging. Valid values: disable, enable.
featureSet String
Flow/proxy feature set. Valid values: flow, proxy.
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.
log String
Enable/disable file-filter logging. Valid values: disable, enable.
name Changes to this property will trigger replacement. String
Profile name.
replacemsgGroup String
Replacement message group
rules List<ProfileRule>
File filter rules. The structure of rules block is documented below.
scanArchiveContents String
Enable/disable archive contents scan. Valid values: disable, enable.
vdomparam Changes to this property will trigger replacement. 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
Comment.
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 ].
extendedLog string
Enable/disable file-filter extended logging. Valid values: disable, enable.
featureSet string
Flow/proxy feature set. Valid values: flow, proxy.
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.
log string
Enable/disable file-filter logging. Valid values: disable, enable.
name Changes to this property will trigger replacement. string
Profile name.
replacemsgGroup string
Replacement message group
rules ProfileRule[]
File filter rules. The structure of rules block is documented below.
scanArchiveContents string
Enable/disable archive contents scan. Valid values: disable, enable.
vdomparam Changes to this property will trigger replacement. 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
Comment.
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 ].
extended_log str
Enable/disable file-filter extended logging. Valid values: disable, enable.
feature_set str
Flow/proxy feature set. Valid values: flow, proxy.
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.
log str
Enable/disable file-filter logging. Valid values: disable, enable.
name Changes to this property will trigger replacement. str
Profile name.
replacemsg_group str
Replacement message group
rules Sequence[ProfileRuleArgs]
File filter rules. The structure of rules block is documented below.
scan_archive_contents str
Enable/disable archive contents scan. Valid values: disable, enable.
vdomparam Changes to this property will trigger replacement. 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
Comment.
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 ].
extendedLog String
Enable/disable file-filter extended logging. Valid values: disable, enable.
featureSet String
Flow/proxy feature set. Valid values: flow, proxy.
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.
log String
Enable/disable file-filter logging. Valid values: disable, enable.
name Changes to this property will trigger replacement. String
Profile name.
replacemsgGroup String
Replacement message group
rules List<Property Map>
File filter rules. The structure of rules block is documented below.
scanArchiveContents String
Enable/disable archive contents scan. Valid values: disable, enable.
vdomparam Changes to this property will trigger replacement. 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

ProfileRule
, ProfileRuleArgs

Action string
Action taken for matched file. Valid values: log-only, block.
Comment string
Comment.
Direction string
Traffic direction. On FortiOS versions 6.4.1-7.4.1: HTTP, FTP, SSH, CIFS only. On FortiOS versions >= 7.4.2: HTTP, FTP, SSH, CIFS, and MAPI only. Valid values: incoming, outgoing, any.
FileTypes List<Pulumiverse.Fortios.Filter.File.Inputs.ProfileRuleFileType>
Select file type. The structure of file_type block is documented below.
Name string
File-filter rule name.
PasswordProtected string
Match password-protected files. Valid values: yes, any.
Protocol string
Protocols to apply rule to. Valid values: http, ftp, smtp, imap, pop3, mapi, cifs, ssh.
Action string
Action taken for matched file. Valid values: log-only, block.
Comment string
Comment.
Direction string
Traffic direction. On FortiOS versions 6.4.1-7.4.1: HTTP, FTP, SSH, CIFS only. On FortiOS versions >= 7.4.2: HTTP, FTP, SSH, CIFS, and MAPI only. Valid values: incoming, outgoing, any.
FileTypes []ProfileRuleFileType
Select file type. The structure of file_type block is documented below.
Name string
File-filter rule name.
PasswordProtected string
Match password-protected files. Valid values: yes, any.
Protocol string
Protocols to apply rule to. Valid values: http, ftp, smtp, imap, pop3, mapi, cifs, ssh.
action String
Action taken for matched file. Valid values: log-only, block.
comment String
Comment.
direction String
Traffic direction. On FortiOS versions 6.4.1-7.4.1: HTTP, FTP, SSH, CIFS only. On FortiOS versions >= 7.4.2: HTTP, FTP, SSH, CIFS, and MAPI only. Valid values: incoming, outgoing, any.
fileTypes List<ProfileRuleFileType>
Select file type. The structure of file_type block is documented below.
name String
File-filter rule name.
passwordProtected String
Match password-protected files. Valid values: yes, any.
protocol String
Protocols to apply rule to. Valid values: http, ftp, smtp, imap, pop3, mapi, cifs, ssh.
action string
Action taken for matched file. Valid values: log-only, block.
comment string
Comment.
direction string
Traffic direction. On FortiOS versions 6.4.1-7.4.1: HTTP, FTP, SSH, CIFS only. On FortiOS versions >= 7.4.2: HTTP, FTP, SSH, CIFS, and MAPI only. Valid values: incoming, outgoing, any.
fileTypes ProfileRuleFileType[]
Select file type. The structure of file_type block is documented below.
name string
File-filter rule name.
passwordProtected string
Match password-protected files. Valid values: yes, any.
protocol string
Protocols to apply rule to. Valid values: http, ftp, smtp, imap, pop3, mapi, cifs, ssh.
action str
Action taken for matched file. Valid values: log-only, block.
comment str
Comment.
direction str
Traffic direction. On FortiOS versions 6.4.1-7.4.1: HTTP, FTP, SSH, CIFS only. On FortiOS versions >= 7.4.2: HTTP, FTP, SSH, CIFS, and MAPI only. Valid values: incoming, outgoing, any.
file_types Sequence[ProfileRuleFileType]
Select file type. The structure of file_type block is documented below.
name str
File-filter rule name.
password_protected str
Match password-protected files. Valid values: yes, any.
protocol str
Protocols to apply rule to. Valid values: http, ftp, smtp, imap, pop3, mapi, cifs, ssh.
action String
Action taken for matched file. Valid values: log-only, block.
comment String
Comment.
direction String
Traffic direction. On FortiOS versions 6.4.1-7.4.1: HTTP, FTP, SSH, CIFS only. On FortiOS versions >= 7.4.2: HTTP, FTP, SSH, CIFS, and MAPI only. Valid values: incoming, outgoing, any.
fileTypes List<Property Map>
Select file type. The structure of file_type block is documented below.
name String
File-filter rule name.
passwordProtected String
Match password-protected files. Valid values: yes, any.
protocol String
Protocols to apply rule to. Valid values: http, ftp, smtp, imap, pop3, mapi, cifs, ssh.

ProfileRuleFileType
, ProfileRuleFileTypeArgs

Name string
File type name.
Name string
File type name.
name String
File type name.
name string
File type name.
name str
File type name.
name String
File type name.

Import

FileFilter Profile can be imported using any of these accepted formats:

$ pulumi import fortios:filter/file/profile:Profile labelname {{name}}
Copy

If you do not want to import arguments of block:

$ export “FORTIOS_IMPORT_TABLE”=“false”

$ pulumi import fortios:filter/file/profile:Profile labelname {{name}}
Copy

$ 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.