1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectDlpFilepattern
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.ObjectDlpFilepattern

Explore with Pulumi AI

Configure file patterns used by DLP blocking.

The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

  • entries: fortimanager.ObjectDlpFilepatternEntries

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trname1 = new fortimanager.ObjectDlpFilepattern("trname1", {
    comment: "This is a Terraform example",
    fosid: 3,
});
const trname2 = new fortimanager.ObjectDlpFilepattern("trname2", {
    entries: [
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.bat",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.com",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.dll",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.doc",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.exe",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.gz",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.hta",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.ppt",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.rar",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.scr",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.tar",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.tgz",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.vb?",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.wps",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.xl?",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.zip",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.pif",
        },
        {
            fileType: "unknown",
            filterType: "pattern",
            pattern: "*.cpl",
        },
    ],
    fosid: 2,
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname1 = fortimanager.ObjectDlpFilepattern("trname1",
    comment="This is a Terraform example",
    fosid=3)
trname2 = fortimanager.ObjectDlpFilepattern("trname2",
    entries=[
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.bat",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.com",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.dll",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.doc",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.exe",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.gz",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.hta",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.ppt",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.rar",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.scr",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.tar",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.tgz",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.vb?",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.wps",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.xl?",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.zip",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.pif",
        },
        {
            "file_type": "unknown",
            "filter_type": "pattern",
            "pattern": "*.cpl",
        },
    ],
    fosid=2)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fortimanager.NewObjectDlpFilepattern(ctx, "trname1", &fortimanager.ObjectDlpFilepatternArgs{
			Comment: pulumi.String("This is a Terraform example"),
			Fosid:   pulumi.Float64(3),
		})
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectDlpFilepattern(ctx, "trname2", &fortimanager.ObjectDlpFilepatternArgs{
			Entries: fortimanager.ObjectDlpFilepatternEntryArray{
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.bat"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.com"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.dll"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.doc"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.exe"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.gz"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.hta"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.ppt"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.rar"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.scr"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.tar"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.tgz"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.vb?"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.wps"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.xl?"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.zip"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.pif"),
				},
				&fortimanager.ObjectDlpFilepatternEntryArgs{
					FileType:   pulumi.String("unknown"),
					FilterType: pulumi.String("pattern"),
					Pattern:    pulumi.String("*.cpl"),
				},
			},
			Fosid: pulumi.Float64(2),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trname1 = new Fortimanager.ObjectDlpFilepattern("trname1", new()
    {
        Comment = "This is a Terraform example",
        Fosid = 3,
    });

    var trname2 = new Fortimanager.ObjectDlpFilepattern("trname2", new()
    {
        Entries = new[]
        {
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.bat",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.com",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.dll",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.doc",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.exe",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.gz",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.hta",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.ppt",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.rar",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.scr",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.tar",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.tgz",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.vb?",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.wps",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.xl?",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.zip",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.pif",
            },
            new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
            {
                FileType = "unknown",
                FilterType = "pattern",
                Pattern = "*.cpl",
            },
        },
        Fosid = 2,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectDlpFilepattern;
import com.pulumi.fortimanager.ObjectDlpFilepatternArgs;
import com.pulumi.fortimanager.inputs.ObjectDlpFilepatternEntryArgs;
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 trname1 = new ObjectDlpFilepattern("trname1", ObjectDlpFilepatternArgs.builder()
            .comment("This is a Terraform example")
            .fosid(3)
            .build());

        var trname2 = new ObjectDlpFilepattern("trname2", ObjectDlpFilepatternArgs.builder()
            .entries(            
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.bat")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.com")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.dll")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.doc")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.exe")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.gz")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.hta")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.ppt")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.rar")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.scr")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.tar")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.tgz")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.vb?")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.wps")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.xl?")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.zip")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.pif")
                    .build(),
                ObjectDlpFilepatternEntryArgs.builder()
                    .fileType("unknown")
                    .filterType("pattern")
                    .pattern("*.cpl")
                    .build())
            .fosid(2)
            .build());

    }
}
Copy
resources:
  trname1:
    type: fortimanager:ObjectDlpFilepattern
    properties:
      comment: This is a Terraform example
      fosid: 3
  trname2:
    type: fortimanager:ObjectDlpFilepattern
    properties:
      entries:
        - fileType: unknown
          filterType: pattern
          pattern: '*.bat'
        - fileType: unknown
          filterType: pattern
          pattern: '*.com'
        - fileType: unknown
          filterType: pattern
          pattern: '*.dll'
        - fileType: unknown
          filterType: pattern
          pattern: '*.doc'
        - fileType: unknown
          filterType: pattern
          pattern: '*.exe'
        - fileType: unknown
          filterType: pattern
          pattern: '*.gz'
        - fileType: unknown
          filterType: pattern
          pattern: '*.hta'
        - fileType: unknown
          filterType: pattern
          pattern: '*.ppt'
        - fileType: unknown
          filterType: pattern
          pattern: '*.rar'
        - fileType: unknown
          filterType: pattern
          pattern: '*.scr'
        - fileType: unknown
          filterType: pattern
          pattern: '*.tar'
        - fileType: unknown
          filterType: pattern
          pattern: '*.tgz'
        - fileType: unknown
          filterType: pattern
          pattern: '*.vb?'
        - fileType: unknown
          filterType: pattern
          pattern: '*.wps'
        - fileType: unknown
          filterType: pattern
          pattern: '*.xl?'
        - fileType: unknown
          filterType: pattern
          pattern: '*.zip'
        - fileType: unknown
          filterType: pattern
          pattern: '*.pif'
        - fileType: unknown
          filterType: pattern
          pattern: '*.cpl'
      fosid: 2
Copy

Create ObjectDlpFilepattern Resource

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

Constructor syntax

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

@overload
def ObjectDlpFilepattern(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         adom: Optional[str] = None,
                         comment: Optional[str] = None,
                         dynamic_sort_subtable: Optional[str] = None,
                         entries: Optional[Sequence[ObjectDlpFilepatternEntryArgs]] = None,
                         fosid: Optional[float] = None,
                         name: Optional[str] = None,
                         object_dlp_filepattern_id: Optional[str] = None,
                         scopetype: Optional[str] = None)
func NewObjectDlpFilepattern(ctx *Context, name string, args *ObjectDlpFilepatternArgs, opts ...ResourceOption) (*ObjectDlpFilepattern, error)
public ObjectDlpFilepattern(string name, ObjectDlpFilepatternArgs? args = null, CustomResourceOptions? opts = null)
public ObjectDlpFilepattern(String name, ObjectDlpFilepatternArgs args)
public ObjectDlpFilepattern(String name, ObjectDlpFilepatternArgs args, CustomResourceOptions options)
type: fortimanager:ObjectDlpFilepattern
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 ObjectDlpFilepatternArgs
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 ObjectDlpFilepatternArgs
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 ObjectDlpFilepatternArgs
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 ObjectDlpFilepatternArgs
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. ObjectDlpFilepatternArgs
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 objectDlpFilepatternResource = new Fortimanager.ObjectDlpFilepattern("objectDlpFilepatternResource", new()
{
    Adom = "string",
    Comment = "string",
    DynamicSortSubtable = "string",
    Entries = new[]
    {
        new Fortimanager.Inputs.ObjectDlpFilepatternEntryArgs
        {
            FileType = "string",
            FilterType = "string",
            Pattern = "string",
        },
    },
    Fosid = 0,
    Name = "string",
    ObjectDlpFilepatternId = "string",
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectDlpFilepattern(ctx, "objectDlpFilepatternResource", &fortimanager.ObjectDlpFilepatternArgs{
Adom: pulumi.String("string"),
Comment: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
Entries: .ObjectDlpFilepatternEntryArray{
&.ObjectDlpFilepatternEntryArgs{
FileType: pulumi.String("string"),
FilterType: pulumi.String("string"),
Pattern: pulumi.String("string"),
},
},
Fosid: pulumi.Float64(0),
Name: pulumi.String("string"),
ObjectDlpFilepatternId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
})
Copy
var objectDlpFilepatternResource = new ObjectDlpFilepattern("objectDlpFilepatternResource", ObjectDlpFilepatternArgs.builder()
    .adom("string")
    .comment("string")
    .dynamicSortSubtable("string")
    .entries(ObjectDlpFilepatternEntryArgs.builder()
        .fileType("string")
        .filterType("string")
        .pattern("string")
        .build())
    .fosid(0)
    .name("string")
    .objectDlpFilepatternId("string")
    .scopetype("string")
    .build());
Copy
object_dlp_filepattern_resource = fortimanager.ObjectDlpFilepattern("objectDlpFilepatternResource",
    adom="string",
    comment="string",
    dynamic_sort_subtable="string",
    entries=[{
        "file_type": "string",
        "filter_type": "string",
        "pattern": "string",
    }],
    fosid=0,
    name="string",
    object_dlp_filepattern_id="string",
    scopetype="string")
Copy
const objectDlpFilepatternResource = new fortimanager.ObjectDlpFilepattern("objectDlpFilepatternResource", {
    adom: "string",
    comment: "string",
    dynamicSortSubtable: "string",
    entries: [{
        fileType: "string",
        filterType: "string",
        pattern: "string",
    }],
    fosid: 0,
    name: "string",
    objectDlpFilepatternId: "string",
    scopetype: "string",
});
Copy
type: fortimanager:ObjectDlpFilepattern
properties:
    adom: string
    comment: string
    dynamicSortSubtable: string
    entries:
        - fileType: string
          filterType: string
          pattern: string
    fosid: 0
    name: string
    objectDlpFilepatternId: string
    scopetype: string
Copy

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

Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comment string
Optional comments.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Entries List<ObjectDlpFilepatternEntry>
Entries. The structure of entries block is documented below.
Fosid double
ID.
Name string
Name of table containing the file pattern list.
ObjectDlpFilepatternId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comment string
Optional comments.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Entries []ObjectDlpFilepatternEntryArgs
Entries. The structure of entries block is documented below.
Fosid float64
ID.
Name string
Name of table containing the file pattern list.
ObjectDlpFilepatternId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment String
Optional comments.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries List<ObjectDlpFilepatternEntry>
Entries. The structure of entries block is documented below.
fosid Double
ID.
name String
Name of table containing the file pattern list.
objectDlpFilepatternId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment string
Optional comments.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries ObjectDlpFilepatternEntry[]
Entries. The structure of entries block is documented below.
fosid number
ID.
name string
Name of table containing the file pattern list.
objectDlpFilepatternId string
an identifier for the resource with format {{fosid}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment str
Optional comments.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries Sequence[ObjectDlpFilepatternEntryArgs]
Entries. The structure of entries block is documented below.
fosid float
ID.
name str
Name of table containing the file pattern list.
object_dlp_filepattern_id str
an identifier for the resource with format {{fosid}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment String
Optional comments.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries List<Property Map>
Entries. The structure of entries block is documented below.
fosid Number
ID.
name String
Name of table containing the file pattern list.
objectDlpFilepatternId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Outputs

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

Get an existing ObjectDlpFilepattern 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?: ObjectDlpFilepatternState, opts?: CustomResourceOptions): ObjectDlpFilepattern
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        comment: Optional[str] = None,
        dynamic_sort_subtable: Optional[str] = None,
        entries: Optional[Sequence[ObjectDlpFilepatternEntryArgs]] = None,
        fosid: Optional[float] = None,
        name: Optional[str] = None,
        object_dlp_filepattern_id: Optional[str] = None,
        scopetype: Optional[str] = None) -> ObjectDlpFilepattern
func GetObjectDlpFilepattern(ctx *Context, name string, id IDInput, state *ObjectDlpFilepatternState, opts ...ResourceOption) (*ObjectDlpFilepattern, error)
public static ObjectDlpFilepattern Get(string name, Input<string> id, ObjectDlpFilepatternState? state, CustomResourceOptions? opts = null)
public static ObjectDlpFilepattern get(String name, Output<String> id, ObjectDlpFilepatternState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectDlpFilepattern    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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comment string
Optional comments.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Entries List<ObjectDlpFilepatternEntry>
Entries. The structure of entries block is documented below.
Fosid double
ID.
Name string
Name of table containing the file pattern list.
ObjectDlpFilepatternId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comment string
Optional comments.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Entries []ObjectDlpFilepatternEntryArgs
Entries. The structure of entries block is documented below.
Fosid float64
ID.
Name string
Name of table containing the file pattern list.
ObjectDlpFilepatternId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment String
Optional comments.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries List<ObjectDlpFilepatternEntry>
Entries. The structure of entries block is documented below.
fosid Double
ID.
name String
Name of table containing the file pattern list.
objectDlpFilepatternId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment string
Optional comments.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries ObjectDlpFilepatternEntry[]
Entries. The structure of entries block is documented below.
fosid number
ID.
name string
Name of table containing the file pattern list.
objectDlpFilepatternId string
an identifier for the resource with format {{fosid}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment str
Optional comments.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries Sequence[ObjectDlpFilepatternEntryArgs]
Entries. The structure of entries block is documented below.
fosid float
ID.
name str
Name of table containing the file pattern list.
object_dlp_filepattern_id str
an identifier for the resource with format {{fosid}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment String
Optional comments.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries List<Property Map>
Entries. The structure of entries block is documented below.
fosid Number
ID.
name String
Name of table containing the file pattern list.
objectDlpFilepatternId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Supporting Types

ObjectDlpFilepatternEntry
, ObjectDlpFilepatternEntryArgs

FileType string
Select a file type. Valid values: unknown, ignored, exe, elf, bat, javascript, html, hta, msoffice, gzip, rar, tar, lzh, upx, zip, cab, bzip2, bzip, activemime, mime, hlp, arj, base64, binhex, uue, fsg, aspack, msc, petite, jpeg, gif, tiff, png, bmp, msi, mpeg, mov, mp3, wma, wav, pdf, avi, rm, torrent, hibun, 7z, xz, msofficex, mach-o, dmg, .net, xar, chm, iso, crx, flac, sis, prc, class, jad, cod.
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. Valid values: unknown, ignored, exe, elf, bat, javascript, html, hta, msoffice, gzip, rar, tar, lzh, upx, zip, cab, bzip2, bzip, activemime, mime, hlp, arj, base64, binhex, uue, fsg, aspack, msc, petite, jpeg, gif, tiff, png, bmp, msi, mpeg, mov, mp3, wma, wav, pdf, avi, rm, torrent, hibun, 7z, xz, msofficex, mach-o, dmg, .net, xar, chm, iso, crx, flac, sis, prc, class, jad, cod.
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. Valid values: unknown, ignored, exe, elf, bat, javascript, html, hta, msoffice, gzip, rar, tar, lzh, upx, zip, cab, bzip2, bzip, activemime, mime, hlp, arj, base64, binhex, uue, fsg, aspack, msc, petite, jpeg, gif, tiff, png, bmp, msi, mpeg, mov, mp3, wma, wav, pdf, avi, rm, torrent, hibun, 7z, xz, msofficex, mach-o, dmg, .net, xar, chm, iso, crx, flac, sis, prc, class, jad, cod.
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. Valid values: unknown, ignored, exe, elf, bat, javascript, html, hta, msoffice, gzip, rar, tar, lzh, upx, zip, cab, bzip2, bzip, activemime, mime, hlp, arj, base64, binhex, uue, fsg, aspack, msc, petite, jpeg, gif, tiff, png, bmp, msi, mpeg, mov, mp3, wma, wav, pdf, avi, rm, torrent, hibun, 7z, xz, msofficex, mach-o, dmg, .net, xar, chm, iso, crx, flac, sis, prc, class, jad, cod.
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. Valid values: unknown, ignored, exe, elf, bat, javascript, html, hta, msoffice, gzip, rar, tar, lzh, upx, zip, cab, bzip2, bzip, activemime, mime, hlp, arj, base64, binhex, uue, fsg, aspack, msc, petite, jpeg, gif, tiff, png, bmp, msi, mpeg, mov, mp3, wma, wav, pdf, avi, rm, torrent, hibun, 7z, xz, msofficex, mach-o, dmg, .net, xar, chm, iso, crx, flac, sis, prc, class, jad, cod.
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. Valid values: unknown, ignored, exe, elf, bat, javascript, html, hta, msoffice, gzip, rar, tar, lzh, upx, zip, cab, bzip2, bzip, activemime, mime, hlp, arj, base64, binhex, uue, fsg, aspack, msc, petite, jpeg, gif, tiff, png, bmp, msi, mpeg, mov, mp3, wma, wav, pdf, avi, rm, torrent, hibun, 7z, xz, msofficex, mach-o, dmg, .net, xar, chm, iso, crx, flac, sis, prc, class, jad, cod.
filterType String
Filter by file name pattern or by file type. Valid values: pattern, type.
pattern String
Add a file name pattern.

Import

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectDlpFilepattern:ObjectDlpFilepattern labelname {{fosid}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.