1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. FileTypeControlRule
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
zia logo
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler

    The zia.FileTypeControlRule resource manages file type control rules in the Zscaler Internet Access (ZIA) cloud. File type control rules allow you to block, caution, or allow file downloads and uploads based on file types, protocols, URL categories, and other criteria. Predefined rules cannot be deleted.

    Example Usage

    Basic File Type Control Rule

    Example coming soon!

    Example coming soon!

    Example coming soon!

    import * as zia from "@bdzscaler/pulumi-zia";
    
    const example = new zia.FileTypeControlRule("example", {
        name: "Example File Type Rule",
        order: 1,
        description: "Managed by Pulumi",
        state: "ENABLED",
        filteringAction: "BLOCK",
        fileTypes: ["EXE", "DLL"],
        protocols: ["FTP_RULE", "HTTPS_RULE", "HTTP_PROXY"],
    });
    
    import zscaler_pulumi_zia as zia
    
    example = zia.FileTypeControlRule("example",
        name="Example File Type Rule",
        order=1,
        description="Managed by Pulumi",
        state="ENABLED",
        filtering_action="BLOCK",
        file_types=["EXE", "DLL"],
        protocols=["FTP_RULE", "HTTPS_RULE", "HTTP_PROXY"],
    )
    
    resources:
      example:
        type: zia:FileTypeControlRule
        properties:
          name: Example File Type Rule
          order: 1
          description: Managed by Pulumi
          state: ENABLED
          filteringAction: BLOCK
          fileTypes:
            - EXE
            - DLL
          protocols:
            - FTP_RULE
            - HTTPS_RULE
            - HTTP_PROXY
    

    Create FileTypeControlRule Resource

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

    Constructor syntax

    new FileTypeControlRule(name: string, args: FileTypeControlRuleArgs, opts?: CustomResourceOptions);
    @overload
    def FileTypeControlRule(resource_name: str,
                            args: FileTypeControlRuleArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def FileTypeControlRule(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            name: Optional[str] = None,
                            order: Optional[int] = None,
                            locations: Optional[Sequence[int]] = None,
                            protocols: Optional[Sequence[str]] = None,
                            departments: Optional[Sequence[int]] = None,
                            description: Optional[str] = None,
                            device_groups: Optional[Sequence[int]] = None,
                            device_trust_levels: Optional[Sequence[str]] = None,
                            devices: Optional[Sequence[int]] = None,
                            file_types: Optional[Sequence[str]] = None,
                            filtering_action: Optional[str] = None,
                            groups: Optional[Sequence[int]] = None,
                            labels: Optional[Sequence[int]] = None,
                            location_groups: Optional[Sequence[int]] = None,
                            active_content: Optional[bool] = None,
                            max_size: Optional[int] = None,
                            cloud_applications: Optional[Sequence[str]] = None,
                            operation: Optional[str] = None,
                            min_size: Optional[int] = None,
                            browser_eun_template_id: Optional[int] = None,
                            password_protected: Optional[bool] = None,
                            capture_pcap: Optional[bool] = None,
                            rank: Optional[int] = None,
                            size_quota: Optional[int] = None,
                            state: Optional[str] = None,
                            time_quota: Optional[int] = None,
                            time_windows: Optional[Sequence[int]] = None,
                            unscannable: Optional[bool] = None,
                            url_categories: Optional[Sequence[str]] = None,
                            users: Optional[Sequence[int]] = None,
                            zpa_app_segments: Optional[Sequence[ZPAAppSegmentInputArgs]] = None)
    func NewFileTypeControlRule(ctx *Context, name string, args FileTypeControlRuleArgs, opts ...ResourceOption) (*FileTypeControlRule, error)
    public FileTypeControlRule(string name, FileTypeControlRuleArgs args, CustomResourceOptions? opts = null)
    public FileTypeControlRule(String name, FileTypeControlRuleArgs args)
    public FileTypeControlRule(String name, FileTypeControlRuleArgs args, CustomResourceOptions options)
    
    type: zia:FileTypeControlRule
    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 FileTypeControlRuleArgs
    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 FileTypeControlRuleArgs
    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 FileTypeControlRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FileTypeControlRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FileTypeControlRuleArgs
    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 fileTypeControlRuleResource = new Zia.FileTypeControlRule("fileTypeControlRuleResource", new()
    {
        Name = "string",
        Order = 0,
        Locations = new[]
        {
            0,
        },
        Protocols = new[]
        {
            "string",
        },
        Departments = new[]
        {
            0,
        },
        Description = "string",
        DeviceGroups = new[]
        {
            0,
        },
        DeviceTrustLevels = new[]
        {
            "string",
        },
        Devices = new[]
        {
            0,
        },
        FileTypes = new[]
        {
            "string",
        },
        FilteringAction = "string",
        Groups = new[]
        {
            0,
        },
        Labels = new[]
        {
            0,
        },
        LocationGroups = new[]
        {
            0,
        },
        ActiveContent = false,
        MaxSize = 0,
        CloudApplications = new[]
        {
            "string",
        },
        Operation = "string",
        MinSize = 0,
        BrowserEunTemplateId = 0,
        PasswordProtected = false,
        CapturePcap = false,
        Rank = 0,
        SizeQuota = 0,
        State = "string",
        TimeQuota = 0,
        TimeWindows = new[]
        {
            0,
        },
        Unscannable = false,
        UrlCategories = new[]
        {
            "string",
        },
        Users = new[]
        {
            0,
        },
        ZpaAppSegments = new[]
        {
            new Zia.Inputs.ZPAAppSegmentInputArgs
            {
                ExternalId = "string",
                Name = "string",
            },
        },
    });
    
    example, err := zia.NewFileTypeControlRule(ctx, "fileTypeControlRuleResource", &zia.FileTypeControlRuleArgs{
    	Name:  pulumi.String("string"),
    	Order: pulumi.Int(0),
    	Locations: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	Protocols: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Departments: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	Description: pulumi.String("string"),
    	DeviceGroups: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	DeviceTrustLevels: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Devices: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	FileTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	FilteringAction: pulumi.String("string"),
    	Groups: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	Labels: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	LocationGroups: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	ActiveContent: pulumi.Bool(false),
    	MaxSize:       pulumi.Int(0),
    	CloudApplications: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Operation:            pulumi.String("string"),
    	MinSize:              pulumi.Int(0),
    	BrowserEunTemplateId: pulumi.Int(0),
    	PasswordProtected:    pulumi.Bool(false),
    	CapturePcap:          pulumi.Bool(false),
    	Rank:                 pulumi.Int(0),
    	SizeQuota:            pulumi.Int(0),
    	State:                pulumi.String("string"),
    	TimeQuota:            pulumi.Int(0),
    	TimeWindows: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	Unscannable: pulumi.Bool(false),
    	UrlCategories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Users: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	ZpaAppSegments: pulumizia.ZPAAppSegmentInputArray{
    		&pulumizia.ZPAAppSegmentInputArgs{
    			ExternalId: pulumi.String("string"),
    			Name:       pulumi.String("string"),
    		},
    	},
    })
    
    var fileTypeControlRuleResource = new FileTypeControlRule("fileTypeControlRuleResource", FileTypeControlRuleArgs.builder()
        .name("string")
        .order(0)
        .locations(0)
        .protocols("string")
        .departments(0)
        .description("string")
        .deviceGroups(0)
        .deviceTrustLevels("string")
        .devices(0)
        .fileTypes("string")
        .filteringAction("string")
        .groups(0)
        .labels(0)
        .locationGroups(0)
        .activeContent(false)
        .maxSize(0)
        .cloudApplications("string")
        .operation("string")
        .minSize(0)
        .browserEunTemplateId(0)
        .passwordProtected(false)
        .capturePcap(false)
        .rank(0)
        .sizeQuota(0)
        .state("string")
        .timeQuota(0)
        .timeWindows(0)
        .unscannable(false)
        .urlCategories("string")
        .users(0)
        .zpaAppSegments(ZPAAppSegmentInputArgs.builder()
            .externalId("string")
            .name("string")
            .build())
        .build());
    
    file_type_control_rule_resource = zia.FileTypeControlRule("fileTypeControlRuleResource",
        name="string",
        order=0,
        locations=[0],
        protocols=["string"],
        departments=[0],
        description="string",
        device_groups=[0],
        device_trust_levels=["string"],
        devices=[0],
        file_types=["string"],
        filtering_action="string",
        groups=[0],
        labels=[0],
        location_groups=[0],
        active_content=False,
        max_size=0,
        cloud_applications=["string"],
        operation="string",
        min_size=0,
        browser_eun_template_id=0,
        password_protected=False,
        capture_pcap=False,
        rank=0,
        size_quota=0,
        state="string",
        time_quota=0,
        time_windows=[0],
        unscannable=False,
        url_categories=["string"],
        users=[0],
        zpa_app_segments=[{
            "external_id": "string",
            "name": "string",
        }])
    
    const fileTypeControlRuleResource = new zia.FileTypeControlRule("fileTypeControlRuleResource", {
        name: "string",
        order: 0,
        locations: [0],
        protocols: ["string"],
        departments: [0],
        description: "string",
        deviceGroups: [0],
        deviceTrustLevels: ["string"],
        devices: [0],
        fileTypes: ["string"],
        filteringAction: "string",
        groups: [0],
        labels: [0],
        locationGroups: [0],
        activeContent: false,
        maxSize: 0,
        cloudApplications: ["string"],
        operation: "string",
        minSize: 0,
        browserEunTemplateId: 0,
        passwordProtected: false,
        capturePcap: false,
        rank: 0,
        sizeQuota: 0,
        state: "string",
        timeQuota: 0,
        timeWindows: [0],
        unscannable: false,
        urlCategories: ["string"],
        users: [0],
        zpaAppSegments: [{
            externalId: "string",
            name: "string",
        }],
    });
    
    type: zia:FileTypeControlRule
    properties:
        activeContent: false
        browserEunTemplateId: 0
        capturePcap: false
        cloudApplications:
            - string
        departments:
            - 0
        description: string
        deviceGroups:
            - 0
        deviceTrustLevels:
            - string
        devices:
            - 0
        fileTypes:
            - string
        filteringAction: string
        groups:
            - 0
        labels:
            - 0
        locationGroups:
            - 0
        locations:
            - 0
        maxSize: 0
        minSize: 0
        name: string
        operation: string
        order: 0
        passwordProtected: false
        protocols:
            - string
        rank: 0
        sizeQuota: 0
        state: string
        timeQuota: 0
        timeWindows:
            - 0
        unscannable: false
        urlCategories:
            - string
        users:
            - 0
        zpaAppSegments:
            - externalId: string
              name: string
    

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

    Name string
    Name of the file type control rule.
    Order int
    The rule order of execution for the file type control rule.
    ActiveContent bool
    Whether the rule applies to files with active content.
    BrowserEunTemplateId int
    The browser end-user notification template ID.
    CapturePcap bool
    Whether to capture PCAP data for the rule.
    CloudApplications List<string>
    List of cloud applications to which the rule applies.
    Departments List<int>
    List of department IDs to which the rule applies.
    Description string
    Description of the file type control rule.
    DeviceGroups List<int>
    List of device group IDs to which the rule applies.
    DeviceTrustLevels List<string>
    List of device trust levels for the rule.
    Devices List<int>
    List of device IDs to which the rule applies.
    FileTypes List<string>
    List of file types to which the rule applies (e.g., 'EXE', 'DLL').
    FilteringAction string
    The action taken when traffic matches the rule (e.g., 'BLOCK', 'CAUTION', 'ALLOW').
    Groups List<int>
    List of group IDs to which the rule applies.
    Labels List<int>
    List of label IDs associated with the rule.
    LocationGroups List<int>
    List of location group IDs to which the rule applies.
    Locations List<int>
    List of location IDs to which the rule applies.
    MaxSize int
    Maximum file size in bytes for the rule to apply.
    MinSize int
    Minimum file size in bytes for the rule to apply.
    Operation string
    The type of file operation (e.g., 'DOWNLOAD', 'UPLOAD').
    PasswordProtected bool
    Whether the rule applies to password-protected files.
    Protocols List<string>
    List of protocols to which the rule applies (e.g., 'FTP_RULE', 'HTTPS_RULE').
    Rank int
    The admin rank of the rule. Default is 7.
    SizeQuota int
    Size quota in KB beyond which the URL filtering rule is applied.
    State string
    The rule state. Accepted values: 'ENABLED' or 'DISABLED'.
    TimeQuota int
    Time quota in minutes after which the URL filtering rule is applied.
    TimeWindows List<int>
    List of time window IDs during which the rule is active.
    Unscannable bool
    Whether the rule applies to unscannable files.
    UrlCategories List<string>
    List of URL categories to which the rule applies.
    Users List<int>
    List of user IDs to which the rule applies.
    ZpaAppSegments List<zscaler.PulumiPackage.Zia.Inputs.ZPAAppSegmentInput>
    List of ZPA application segments for the rule.
    Name string
    Name of the file type control rule.
    Order int
    The rule order of execution for the file type control rule.
    ActiveContent bool
    Whether the rule applies to files with active content.
    BrowserEunTemplateId int
    The browser end-user notification template ID.
    CapturePcap bool
    Whether to capture PCAP data for the rule.
    CloudApplications []string
    List of cloud applications to which the rule applies.
    Departments []int
    List of department IDs to which the rule applies.
    Description string
    Description of the file type control rule.
    DeviceGroups []int
    List of device group IDs to which the rule applies.
    DeviceTrustLevels []string
    List of device trust levels for the rule.
    Devices []int
    List of device IDs to which the rule applies.
    FileTypes []string
    List of file types to which the rule applies (e.g., 'EXE', 'DLL').
    FilteringAction string
    The action taken when traffic matches the rule (e.g., 'BLOCK', 'CAUTION', 'ALLOW').
    Groups []int
    List of group IDs to which the rule applies.
    Labels []int
    List of label IDs associated with the rule.
    LocationGroups []int
    List of location group IDs to which the rule applies.
    Locations []int
    List of location IDs to which the rule applies.
    MaxSize int
    Maximum file size in bytes for the rule to apply.
    MinSize int
    Minimum file size in bytes for the rule to apply.
    Operation string
    The type of file operation (e.g., 'DOWNLOAD', 'UPLOAD').
    PasswordProtected bool
    Whether the rule applies to password-protected files.
    Protocols []string
    List of protocols to which the rule applies (e.g., 'FTP_RULE', 'HTTPS_RULE').
    Rank int
    The admin rank of the rule. Default is 7.
    SizeQuota int
    Size quota in KB beyond which the URL filtering rule is applied.
    State string
    The rule state. Accepted values: 'ENABLED' or 'DISABLED'.
    TimeQuota int
    Time quota in minutes after which the URL filtering rule is applied.
    TimeWindows []int
    List of time window IDs during which the rule is active.
    Unscannable bool
    Whether the rule applies to unscannable files.
    UrlCategories []string
    List of URL categories to which the rule applies.
    Users []int
    List of user IDs to which the rule applies.
    ZpaAppSegments []ZPAAppSegmentInputArgs
    List of ZPA application segments for the rule.
    name String
    Name of the file type control rule.
    order Integer
    The rule order of execution for the file type control rule.
    activeContent Boolean
    Whether the rule applies to files with active content.
    browserEunTemplateId Integer
    The browser end-user notification template ID.
    capturePcap Boolean
    Whether to capture PCAP data for the rule.
    cloudApplications List<String>
    List of cloud applications to which the rule applies.
    departments List<Integer>
    List of department IDs to which the rule applies.
    description String
    Description of the file type control rule.
    deviceGroups List<Integer>
    List of device group IDs to which the rule applies.
    deviceTrustLevels List<String>
    List of device trust levels for the rule.
    devices List<Integer>
    List of device IDs to which the rule applies.
    fileTypes List<String>
    List of file types to which the rule applies (e.g., 'EXE', 'DLL').
    filteringAction String
    The action taken when traffic matches the rule (e.g., 'BLOCK', 'CAUTION', 'ALLOW').
    groups List<Integer>
    List of group IDs to which the rule applies.
    labels List<Integer>
    List of label IDs associated with the rule.
    locationGroups List<Integer>
    List of location group IDs to which the rule applies.
    locations List<Integer>
    List of location IDs to which the rule applies.
    maxSize Integer
    Maximum file size in bytes for the rule to apply.
    minSize Integer
    Minimum file size in bytes for the rule to apply.
    operation String
    The type of file operation (e.g., 'DOWNLOAD', 'UPLOAD').
    passwordProtected Boolean
    Whether the rule applies to password-protected files.
    protocols List<String>
    List of protocols to which the rule applies (e.g., 'FTP_RULE', 'HTTPS_RULE').
    rank Integer
    The admin rank of the rule. Default is 7.
    sizeQuota Integer
    Size quota in KB beyond which the URL filtering rule is applied.
    state String
    The rule state. Accepted values: 'ENABLED' or 'DISABLED'.
    timeQuota Integer
    Time quota in minutes after which the URL filtering rule is applied.
    timeWindows List<Integer>
    List of time window IDs during which the rule is active.
    unscannable Boolean
    Whether the rule applies to unscannable files.
    urlCategories List<String>
    List of URL categories to which the rule applies.
    users List<Integer>
    List of user IDs to which the rule applies.
    zpaAppSegments List<ZPAAppSegmentInput>
    List of ZPA application segments for the rule.
    name string
    Name of the file type control rule.
    order number
    The rule order of execution for the file type control rule.
    activeContent boolean
    Whether the rule applies to files with active content.
    browserEunTemplateId number
    The browser end-user notification template ID.
    capturePcap boolean
    Whether to capture PCAP data for the rule.
    cloudApplications string[]
    List of cloud applications to which the rule applies.
    departments number[]
    List of department IDs to which the rule applies.
    description string
    Description of the file type control rule.
    deviceGroups number[]
    List of device group IDs to which the rule applies.
    deviceTrustLevels string[]
    List of device trust levels for the rule.
    devices number[]
    List of device IDs to which the rule applies.
    fileTypes string[]
    List of file types to which the rule applies (e.g., 'EXE', 'DLL').
    filteringAction string
    The action taken when traffic matches the rule (e.g., 'BLOCK', 'CAUTION', 'ALLOW').
    groups number[]
    List of group IDs to which the rule applies.
    labels number[]
    List of label IDs associated with the rule.
    locationGroups number[]
    List of location group IDs to which the rule applies.
    locations number[]
    List of location IDs to which the rule applies.
    maxSize number
    Maximum file size in bytes for the rule to apply.
    minSize number
    Minimum file size in bytes for the rule to apply.
    operation string
    The type of file operation (e.g., 'DOWNLOAD', 'UPLOAD').
    passwordProtected boolean
    Whether the rule applies to password-protected files.
    protocols string[]
    List of protocols to which the rule applies (e.g., 'FTP_RULE', 'HTTPS_RULE').
    rank number
    The admin rank of the rule. Default is 7.
    sizeQuota number
    Size quota in KB beyond which the URL filtering rule is applied.
    state string
    The rule state. Accepted values: 'ENABLED' or 'DISABLED'.
    timeQuota number
    Time quota in minutes after which the URL filtering rule is applied.
    timeWindows number[]
    List of time window IDs during which the rule is active.
    unscannable boolean
    Whether the rule applies to unscannable files.
    urlCategories string[]
    List of URL categories to which the rule applies.
    users number[]
    List of user IDs to which the rule applies.
    zpaAppSegments ZPAAppSegmentInput[]
    List of ZPA application segments for the rule.
    name str
    Name of the file type control rule.
    order int
    The rule order of execution for the file type control rule.
    active_content bool
    Whether the rule applies to files with active content.
    browser_eun_template_id int
    The browser end-user notification template ID.
    capture_pcap bool
    Whether to capture PCAP data for the rule.
    cloud_applications Sequence[str]
    List of cloud applications to which the rule applies.
    departments Sequence[int]
    List of department IDs to which the rule applies.
    description str
    Description of the file type control rule.
    device_groups Sequence[int]
    List of device group IDs to which the rule applies.
    device_trust_levels Sequence[str]
    List of device trust levels for the rule.
    devices Sequence[int]
    List of device IDs to which the rule applies.
    file_types Sequence[str]
    List of file types to which the rule applies (e.g., 'EXE', 'DLL').
    filtering_action str
    The action taken when traffic matches the rule (e.g., 'BLOCK', 'CAUTION', 'ALLOW').
    groups Sequence[int]
    List of group IDs to which the rule applies.
    labels Sequence[int]
    List of label IDs associated with the rule.
    location_groups Sequence[int]
    List of location group IDs to which the rule applies.
    locations Sequence[int]
    List of location IDs to which the rule applies.
    max_size int
    Maximum file size in bytes for the rule to apply.
    min_size int
    Minimum file size in bytes for the rule to apply.
    operation str
    The type of file operation (e.g., 'DOWNLOAD', 'UPLOAD').
    password_protected bool
    Whether the rule applies to password-protected files.
    protocols Sequence[str]
    List of protocols to which the rule applies (e.g., 'FTP_RULE', 'HTTPS_RULE').
    rank int
    The admin rank of the rule. Default is 7.
    size_quota int
    Size quota in KB beyond which the URL filtering rule is applied.
    state str
    The rule state. Accepted values: 'ENABLED' or 'DISABLED'.
    time_quota int
    Time quota in minutes after which the URL filtering rule is applied.
    time_windows Sequence[int]
    List of time window IDs during which the rule is active.
    unscannable bool
    Whether the rule applies to unscannable files.
    url_categories Sequence[str]
    List of URL categories to which the rule applies.
    users Sequence[int]
    List of user IDs to which the rule applies.
    zpa_app_segments Sequence[ZPAAppSegmentInputArgs]
    List of ZPA application segments for the rule.
    name String
    Name of the file type control rule.
    order Number
    The rule order of execution for the file type control rule.
    activeContent Boolean
    Whether the rule applies to files with active content.
    browserEunTemplateId Number
    The browser end-user notification template ID.
    capturePcap Boolean
    Whether to capture PCAP data for the rule.
    cloudApplications List<String>
    List of cloud applications to which the rule applies.
    departments List<Number>
    List of department IDs to which the rule applies.
    description String
    Description of the file type control rule.
    deviceGroups List<Number>
    List of device group IDs to which the rule applies.
    deviceTrustLevels List<String>
    List of device trust levels for the rule.
    devices List<Number>
    List of device IDs to which the rule applies.
    fileTypes List<String>
    List of file types to which the rule applies (e.g., 'EXE', 'DLL').
    filteringAction String
    The action taken when traffic matches the rule (e.g., 'BLOCK', 'CAUTION', 'ALLOW').
    groups List<Number>
    List of group IDs to which the rule applies.
    labels List<Number>
    List of label IDs associated with the rule.
    locationGroups List<Number>
    List of location group IDs to which the rule applies.
    locations List<Number>
    List of location IDs to which the rule applies.
    maxSize Number
    Maximum file size in bytes for the rule to apply.
    minSize Number
    Minimum file size in bytes for the rule to apply.
    operation String
    The type of file operation (e.g., 'DOWNLOAD', 'UPLOAD').
    passwordProtected Boolean
    Whether the rule applies to password-protected files.
    protocols List<String>
    List of protocols to which the rule applies (e.g., 'FTP_RULE', 'HTTPS_RULE').
    rank Number
    The admin rank of the rule. Default is 7.
    sizeQuota Number
    Size quota in KB beyond which the URL filtering rule is applied.
    state String
    The rule state. Accepted values: 'ENABLED' or 'DISABLED'.
    timeQuota Number
    Time quota in minutes after which the URL filtering rule is applied.
    timeWindows List<Number>
    List of time window IDs during which the rule is active.
    unscannable Boolean
    Whether the rule applies to unscannable files.
    urlCategories List<String>
    List of URL categories to which the rule applies.
    users List<Number>
    List of user IDs to which the rule applies.
    zpaAppSegments List<Property Map>
    List of ZPA application segments for the rule.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FileTypeControlRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId int
    The unique identifier for the file type control rule assigned by the ZIA cloud.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId int
    The unique identifier for the file type control rule assigned by the ZIA cloud.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId Integer
    The unique identifier for the file type control rule assigned by the ZIA cloud.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId number
    The unique identifier for the file type control rule assigned by the ZIA cloud.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id int
    The unique identifier for the file type control rule assigned by the ZIA cloud.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId Number
    The unique identifier for the file type control rule assigned by the ZIA cloud.

    Supporting Types

    ZPAAppSegmentInput, ZPAAppSegmentInputArgs

    ExternalId string
    Name string
    ExternalId string
    Name string
    externalId String
    name String
    externalId string
    name string
    externalId String
    name String

    Import

    An existing file type control rule can be imported using its ID, e.g.

    $ pulumi import zia:index:FileTypeControlRule example 12345
    

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

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    zia logo
    Viewing docs for pulumi-resource-zia v1.3.8
    published on Friday, Mar 13, 2026 by Zscaler
      Try Pulumi Cloud free. Your team will thank you.