1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. FileTypeControlRules
Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler

zia.FileTypeControlRules

Explore with Pulumi AI

zia logo
Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler

    The zia_file_type_control_rules resource allows the creation and management of ZIA file type control rules in the Zscaler Internet Access.

    Example Usage

    data "zia_department_management" "engineering" {
     name = "Engineering"
    }
    
    data "zia_group_management" "normal_internet" {
        name = "Normal_Internet"
    }
    
    data "zia_cloud_applications" "this" {
      policy_type = "cloud_application_policy"
      app_class   = ["AI_ML"]
    }
    
    resource "zia_file_type_control_rules" "this" {
        name               = "Terraform_File_Type01"
        description        = "Terraform_File_Type01"
        state              = "ENABLED"
        order              = 1
        rank               = 7
        filtering_action   = "BLOCK"
        operation          = "DOWNLOAD"
        active_content     = true
        unscannable        = false
        device_trust_levels = ["UNKNOWN_DEVICETRUSTLEVEL", "LOW_TRUST", "MEDIUM_TRUST", "HIGH_TRUST"]
        file_types         = ["FTCATEGORY_MS_WORD", "FTCATEGORY_MS_POWERPOINT", "FTCATEGORY_PDF_DOCUMENT", "FTCATEGORY_MS_EXCEL"]
        protocols          = ["FOHTTP_RULE", "FTP_RULE", "HTTPS_RULE", "HTTP_RULE"]
        cloud_applications = tolist([for app in data.zia_cloud_applications.this.applications : app["app"]])
    
        departments {
            id = [ data.zia_department_management.engineering.id ]
        }
        groups {
            id = [ data.zia_group_management.normal_internet.id ]
        }
    }
    

    Create FileTypeControlRules Resource

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

    Constructor syntax

    new FileTypeControlRules(name: string, args: FileTypeControlRulesArgs, opts?: CustomResourceOptions);
    @overload
    def FileTypeControlRules(resource_name: str,
                             args: FileTypeControlRulesArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def FileTypeControlRules(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             order: Optional[int] = None,
                             protocols: Optional[Sequence[str]] = None,
                             device_trust_levels: Optional[Sequence[str]] = None,
                             unscannable: Optional[bool] = None,
                             description: Optional[str] = None,
                             device_groups: Optional[FileTypeControlRulesDeviceGroupsArgs] = None,
                             active_content: Optional[bool] = None,
                             devices: Optional[FileTypeControlRulesDevicesArgs] = None,
                             file_types: Optional[Sequence[str]] = None,
                             filtering_action: Optional[str] = None,
                             groups: Optional[FileTypeControlRulesGroupsArgs] = None,
                             labels: Optional[FileTypeControlRulesLabelsArgs] = None,
                             location_groups: Optional[FileTypeControlRulesLocationGroupsArgs] = None,
                             locations: Optional[FileTypeControlRulesLocationsArgs] = None,
                             departments: Optional[FileTypeControlRulesDepartmentsArgs] = None,
                             name: Optional[str] = None,
                             max_size: Optional[int] = None,
                             operation: Optional[str] = None,
                             cloud_applications: Optional[Sequence[str]] = None,
                             capture_pcap: Optional[bool] = None,
                             rank: Optional[int] = None,
                             state: Optional[str] = None,
                             time_windows: Optional[FileTypeControlRulesTimeWindowsArgs] = None,
                             min_size: Optional[int] = None,
                             url_categories: Optional[Sequence[str]] = None,
                             users: Optional[FileTypeControlRulesUsersArgs] = None,
                             zpa_app_segments: Optional[Sequence[FileTypeControlRulesZpaAppSegmentArgs]] = None)
    func NewFileTypeControlRules(ctx *Context, name string, args FileTypeControlRulesArgs, opts ...ResourceOption) (*FileTypeControlRules, error)
    public FileTypeControlRules(string name, FileTypeControlRulesArgs args, CustomResourceOptions? opts = null)
    public FileTypeControlRules(String name, FileTypeControlRulesArgs args)
    public FileTypeControlRules(String name, FileTypeControlRulesArgs args, CustomResourceOptions options)
    
    type: zia:FileTypeControlRules
    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 FileTypeControlRulesArgs
    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 FileTypeControlRulesArgs
    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 FileTypeControlRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FileTypeControlRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FileTypeControlRulesArgs
    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 fileTypeControlRulesResource = new Zia.FileTypeControlRules("fileTypeControlRulesResource", new()
    {
        Order = 0,
        Protocols = new[]
        {
            "string",
        },
        DeviceTrustLevels = new[]
        {
            "string",
        },
        Unscannable = false,
        Description = "string",
        DeviceGroups = new Zia.Inputs.FileTypeControlRulesDeviceGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        ActiveContent = false,
        Devices = new Zia.Inputs.FileTypeControlRulesDevicesArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        FileTypes = new[]
        {
            "string",
        },
        FilteringAction = "string",
        Groups = new Zia.Inputs.FileTypeControlRulesGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        Labels = new Zia.Inputs.FileTypeControlRulesLabelsArgs
        {
            Id = 0,
        },
        LocationGroups = new Zia.Inputs.FileTypeControlRulesLocationGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        Locations = new Zia.Inputs.FileTypeControlRulesLocationsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        Departments = new Zia.Inputs.FileTypeControlRulesDepartmentsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        Name = "string",
        MaxSize = 0,
        Operation = "string",
        CloudApplications = new[]
        {
            "string",
        },
        CapturePcap = false,
        Rank = 0,
        State = "string",
        TimeWindows = new Zia.Inputs.FileTypeControlRulesTimeWindowsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        MinSize = 0,
        UrlCategories = new[]
        {
            "string",
        },
        Users = new Zia.Inputs.FileTypeControlRulesUsersArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        ZpaAppSegments = new[]
        {
            new Zia.Inputs.FileTypeControlRulesZpaAppSegmentArgs
            {
                ExternalId = "string",
                Name = "string",
            },
        },
    });
    
    example, err := zia.NewFileTypeControlRules(ctx, "fileTypeControlRulesResource", &zia.FileTypeControlRulesArgs{
    	Order: pulumi.Int(0),
    	Protocols: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DeviceTrustLevels: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Unscannable: pulumi.Bool(false),
    	Description: pulumi.String("string"),
    	DeviceGroups: &zia.FileTypeControlRulesDeviceGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	ActiveContent: pulumi.Bool(false),
    	Devices: &zia.FileTypeControlRulesDevicesArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	FileTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	FilteringAction: pulumi.String("string"),
    	Groups: &zia.FileTypeControlRulesGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	Labels: &zia.FileTypeControlRulesLabelsArgs{
    		Id: pulumi.Int(0),
    	},
    	LocationGroups: &zia.FileTypeControlRulesLocationGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	Locations: &zia.FileTypeControlRulesLocationsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	Departments: &zia.FileTypeControlRulesDepartmentsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	Name:      pulumi.String("string"),
    	MaxSize:   pulumi.Int(0),
    	Operation: pulumi.String("string"),
    	CloudApplications: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	CapturePcap: pulumi.Bool(false),
    	Rank:        pulumi.Int(0),
    	State:       pulumi.String("string"),
    	TimeWindows: &zia.FileTypeControlRulesTimeWindowsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	MinSize: pulumi.Int(0),
    	UrlCategories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Users: &zia.FileTypeControlRulesUsersArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	ZpaAppSegments: zia.FileTypeControlRulesZpaAppSegmentArray{
    		&zia.FileTypeControlRulesZpaAppSegmentArgs{
    			ExternalId: pulumi.String("string"),
    			Name:       pulumi.String("string"),
    		},
    	},
    })
    
    var fileTypeControlRulesResource = new FileTypeControlRules("fileTypeControlRulesResource", FileTypeControlRulesArgs.builder()
        .order(0)
        .protocols("string")
        .deviceTrustLevels("string")
        .unscannable(false)
        .description("string")
        .deviceGroups(FileTypeControlRulesDeviceGroupsArgs.builder()
            .ids(0)
            .build())
        .activeContent(false)
        .devices(FileTypeControlRulesDevicesArgs.builder()
            .ids(0)
            .build())
        .fileTypes("string")
        .filteringAction("string")
        .groups(FileTypeControlRulesGroupsArgs.builder()
            .ids(0)
            .build())
        .labels(FileTypeControlRulesLabelsArgs.builder()
            .id(0)
            .build())
        .locationGroups(FileTypeControlRulesLocationGroupsArgs.builder()
            .ids(0)
            .build())
        .locations(FileTypeControlRulesLocationsArgs.builder()
            .ids(0)
            .build())
        .departments(FileTypeControlRulesDepartmentsArgs.builder()
            .ids(0)
            .build())
        .name("string")
        .maxSize(0)
        .operation("string")
        .cloudApplications("string")
        .capturePcap(false)
        .rank(0)
        .state("string")
        .timeWindows(FileTypeControlRulesTimeWindowsArgs.builder()
            .ids(0)
            .build())
        .minSize(0)
        .urlCategories("string")
        .users(FileTypeControlRulesUsersArgs.builder()
            .ids(0)
            .build())
        .zpaAppSegments(FileTypeControlRulesZpaAppSegmentArgs.builder()
            .externalId("string")
            .name("string")
            .build())
        .build());
    
    file_type_control_rules_resource = zia.FileTypeControlRules("fileTypeControlRulesResource",
        order=0,
        protocols=["string"],
        device_trust_levels=["string"],
        unscannable=False,
        description="string",
        device_groups={
            "ids": [0],
        },
        active_content=False,
        devices={
            "ids": [0],
        },
        file_types=["string"],
        filtering_action="string",
        groups={
            "ids": [0],
        },
        labels={
            "id": 0,
        },
        location_groups={
            "ids": [0],
        },
        locations={
            "ids": [0],
        },
        departments={
            "ids": [0],
        },
        name="string",
        max_size=0,
        operation="string",
        cloud_applications=["string"],
        capture_pcap=False,
        rank=0,
        state="string",
        time_windows={
            "ids": [0],
        },
        min_size=0,
        url_categories=["string"],
        users={
            "ids": [0],
        },
        zpa_app_segments=[{
            "external_id": "string",
            "name": "string",
        }])
    
    const fileTypeControlRulesResource = new zia.FileTypeControlRules("fileTypeControlRulesResource", {
        order: 0,
        protocols: ["string"],
        deviceTrustLevels: ["string"],
        unscannable: false,
        description: "string",
        deviceGroups: {
            ids: [0],
        },
        activeContent: false,
        devices: {
            ids: [0],
        },
        fileTypes: ["string"],
        filteringAction: "string",
        groups: {
            ids: [0],
        },
        labels: {
            id: 0,
        },
        locationGroups: {
            ids: [0],
        },
        locations: {
            ids: [0],
        },
        departments: {
            ids: [0],
        },
        name: "string",
        maxSize: 0,
        operation: "string",
        cloudApplications: ["string"],
        capturePcap: false,
        rank: 0,
        state: "string",
        timeWindows: {
            ids: [0],
        },
        minSize: 0,
        urlCategories: ["string"],
        users: {
            ids: [0],
        },
        zpaAppSegments: [{
            externalId: "string",
            name: "string",
        }],
    });
    
    type: zia:FileTypeControlRules
    properties:
        activeContent: false
        capturePcap: false
        cloudApplications:
            - string
        departments:
            ids:
                - 0
        description: string
        deviceGroups:
            ids:
                - 0
        deviceTrustLevels:
            - string
        devices:
            ids:
                - 0
        fileTypes:
            - string
        filteringAction: string
        groups:
            ids:
                - 0
        labels:
            id: 0
        locationGroups:
            ids:
                - 0
        locations:
            ids:
                - 0
        maxSize: 0
        minSize: 0
        name: string
        operation: string
        order: 0
        protocols:
            - string
        rank: 0
        state: string
        timeWindows:
            ids:
                - 0
        unscannable: false
        urlCategories:
            - string
        users:
            ids:
                - 0
        zpaAppSegments:
            - externalId: string
              name: string
    

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

    Order int
    The rule order of execution for the File Type Control rule with respect to other rules.
    Protocols List<string>
    Protocol for the given rule. This field is not applicable to the Lite API.
    ActiveContent bool
    Flag to check whether a file has active content or not
    CapturePcap bool
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    CloudApplications List<string>
    The list of cloud applications to which the File Type Control rule must be applied.
    Departments zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesDepartments
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    Description string
    The description of the File Type Control rule.
    DeviceGroups zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    DeviceTrustLevels List<string>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    Devices zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    FileTypes List<string>
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    FilteringAction string
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    Groups zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesGroups
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    Labels zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesLabels
    list of Labels that are applicable to the rule.
    LocationGroups zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesLocationGroups
    Name-ID pairs of locations groups for which rule must be applied.
    Locations zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesLocations
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    MaxSize int
    Maximum file size (in KB) used for evaluation of the FTP rule
    MinSize int
    Minimum file size (in KB) used for evaluation of the FTP rule
    Name string
    The File Type Control policy rule name.
    Operation string
    File operation performed. This field is not applicable to the Lite API.
    Rank int
    Admin rank of the admin who creates this rule
    State string
    Enables or disables the File Type Control rule.
    TimeWindows zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesTimeWindows
    list of time interval during which rule must be enforced.
    Unscannable bool
    Flag to check whether a file has active content or not
    UrlCategories List<string>
    List of URL categories for which rule must be applied
    Users zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesUsers
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    ZpaAppSegments List<zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesZpaAppSegment>
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable
    Order int
    The rule order of execution for the File Type Control rule with respect to other rules.
    Protocols []string
    Protocol for the given rule. This field is not applicable to the Lite API.
    ActiveContent bool
    Flag to check whether a file has active content or not
    CapturePcap bool
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    CloudApplications []string
    The list of cloud applications to which the File Type Control rule must be applied.
    Departments FileTypeControlRulesDepartmentsArgs
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    Description string
    The description of the File Type Control rule.
    DeviceGroups FileTypeControlRulesDeviceGroupsArgs
    This field is applicable for devices that are managed using Zscaler Client Connector.
    DeviceTrustLevels []string
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    Devices FileTypeControlRulesDevicesArgs
    Name-ID pairs of devices for which rule must be applied.
    FileTypes []string
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    FilteringAction string
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    Groups FileTypeControlRulesGroupsArgs
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    Labels FileTypeControlRulesLabelsArgs
    list of Labels that are applicable to the rule.
    LocationGroups FileTypeControlRulesLocationGroupsArgs
    Name-ID pairs of locations groups for which rule must be applied.
    Locations FileTypeControlRulesLocationsArgs
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    MaxSize int
    Maximum file size (in KB) used for evaluation of the FTP rule
    MinSize int
    Minimum file size (in KB) used for evaluation of the FTP rule
    Name string
    The File Type Control policy rule name.
    Operation string
    File operation performed. This field is not applicable to the Lite API.
    Rank int
    Admin rank of the admin who creates this rule
    State string
    Enables or disables the File Type Control rule.
    TimeWindows FileTypeControlRulesTimeWindowsArgs
    list of time interval during which rule must be enforced.
    Unscannable bool
    Flag to check whether a file has active content or not
    UrlCategories []string
    List of URL categories for which rule must be applied
    Users FileTypeControlRulesUsersArgs
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    ZpaAppSegments []FileTypeControlRulesZpaAppSegmentArgs
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable
    order Integer
    The rule order of execution for the File Type Control rule with respect to other rules.
    protocols List<String>
    Protocol for the given rule. This field is not applicable to the Lite API.
    activeContent Boolean
    Flag to check whether a file has active content or not
    capturePcap Boolean
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    cloudApplications List<String>
    The list of cloud applications to which the File Type Control rule must be applied.
    departments FileTypeControlRulesDepartments
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    description String
    The description of the File Type Control rule.
    deviceGroups FileTypeControlRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels List<String>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices FileTypeControlRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    fileTypes List<String>
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    filteringAction String
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    groups FileTypeControlRulesGroups
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    labels FileTypeControlRulesLabels
    list of Labels that are applicable to the rule.
    locationGroups FileTypeControlRulesLocationGroups
    Name-ID pairs of locations groups for which rule must be applied.
    locations FileTypeControlRulesLocations
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    maxSize Integer
    Maximum file size (in KB) used for evaluation of the FTP rule
    minSize Integer
    Minimum file size (in KB) used for evaluation of the FTP rule
    name String
    The File Type Control policy rule name.
    operation String
    File operation performed. This field is not applicable to the Lite API.
    rank Integer
    Admin rank of the admin who creates this rule
    state String
    Enables or disables the File Type Control rule.
    timeWindows FileTypeControlRulesTimeWindows
    list of time interval during which rule must be enforced.
    unscannable Boolean
    Flag to check whether a file has active content or not
    urlCategories List<String>
    List of URL categories for which rule must be applied
    users FileTypeControlRulesUsers
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    zpaAppSegments List<FileTypeControlRulesZpaAppSegment>
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable
    order number
    The rule order of execution for the File Type Control rule with respect to other rules.
    protocols string[]
    Protocol for the given rule. This field is not applicable to the Lite API.
    activeContent boolean
    Flag to check whether a file has active content or not
    capturePcap boolean
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    cloudApplications string[]
    The list of cloud applications to which the File Type Control rule must be applied.
    departments FileTypeControlRulesDepartments
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    description string
    The description of the File Type Control rule.
    deviceGroups FileTypeControlRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels string[]
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices FileTypeControlRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    fileTypes string[]
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    filteringAction string
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    groups FileTypeControlRulesGroups
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    labels FileTypeControlRulesLabels
    list of Labels that are applicable to the rule.
    locationGroups FileTypeControlRulesLocationGroups
    Name-ID pairs of locations groups for which rule must be applied.
    locations FileTypeControlRulesLocations
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    maxSize number
    Maximum file size (in KB) used for evaluation of the FTP rule
    minSize number
    Minimum file size (in KB) used for evaluation of the FTP rule
    name string
    The File Type Control policy rule name.
    operation string
    File operation performed. This field is not applicable to the Lite API.
    rank number
    Admin rank of the admin who creates this rule
    state string
    Enables or disables the File Type Control rule.
    timeWindows FileTypeControlRulesTimeWindows
    list of time interval during which rule must be enforced.
    unscannable boolean
    Flag to check whether a file has active content or not
    urlCategories string[]
    List of URL categories for which rule must be applied
    users FileTypeControlRulesUsers
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    zpaAppSegments FileTypeControlRulesZpaAppSegment[]
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable
    order int
    The rule order of execution for the File Type Control rule with respect to other rules.
    protocols Sequence[str]
    Protocol for the given rule. This field is not applicable to the Lite API.
    active_content bool
    Flag to check whether a file has active content or not
    capture_pcap bool
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    cloud_applications Sequence[str]
    The list of cloud applications to which the File Type Control rule must be applied.
    departments FileTypeControlRulesDepartmentsArgs
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    description str
    The description of the File Type Control rule.
    device_groups FileTypeControlRulesDeviceGroupsArgs
    This field is applicable for devices that are managed using Zscaler Client Connector.
    device_trust_levels Sequence[str]
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices FileTypeControlRulesDevicesArgs
    Name-ID pairs of devices for which rule must be applied.
    file_types Sequence[str]
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    filtering_action str
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    groups FileTypeControlRulesGroupsArgs
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    labels FileTypeControlRulesLabelsArgs
    list of Labels that are applicable to the rule.
    location_groups FileTypeControlRulesLocationGroupsArgs
    Name-ID pairs of locations groups for which rule must be applied.
    locations FileTypeControlRulesLocationsArgs
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    max_size int
    Maximum file size (in KB) used for evaluation of the FTP rule
    min_size int
    Minimum file size (in KB) used for evaluation of the FTP rule
    name str
    The File Type Control policy rule name.
    operation str
    File operation performed. This field is not applicable to the Lite API.
    rank int
    Admin rank of the admin who creates this rule
    state str
    Enables or disables the File Type Control rule.
    time_windows FileTypeControlRulesTimeWindowsArgs
    list of time interval during which rule must be enforced.
    unscannable bool
    Flag to check whether a file has active content or not
    url_categories Sequence[str]
    List of URL categories for which rule must be applied
    users FileTypeControlRulesUsersArgs
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    zpa_app_segments Sequence[FileTypeControlRulesZpaAppSegmentArgs]
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable
    order Number
    The rule order of execution for the File Type Control rule with respect to other rules.
    protocols List<String>
    Protocol for the given rule. This field is not applicable to the Lite API.
    activeContent Boolean
    Flag to check whether a file has active content or not
    capturePcap Boolean
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    cloudApplications List<String>
    The list of cloud applications to which the File Type Control rule must be applied.
    departments Property Map
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    description String
    The description of the File Type Control rule.
    deviceGroups Property Map
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels List<String>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices Property Map
    Name-ID pairs of devices for which rule must be applied.
    fileTypes List<String>
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    filteringAction String
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    groups Property Map
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    labels Property Map
    list of Labels that are applicable to the rule.
    locationGroups Property Map
    Name-ID pairs of locations groups for which rule must be applied.
    locations Property Map
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    maxSize Number
    Maximum file size (in KB) used for evaluation of the FTP rule
    minSize Number
    Minimum file size (in KB) used for evaluation of the FTP rule
    name String
    The File Type Control policy rule name.
    operation String
    File operation performed. This field is not applicable to the Lite API.
    rank Number
    Admin rank of the admin who creates this rule
    state String
    Enables or disables the File Type Control rule.
    timeWindows Property Map
    list of time interval during which rule must be enforced.
    unscannable Boolean
    Flag to check whether a file has active content or not
    urlCategories List<String>
    List of URL categories for which rule must be applied
    users Property Map
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    zpaAppSegments List<Property Map>
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId int
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId int
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId Integer
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId number
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id int
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId Number

    Look up Existing FileTypeControlRules Resource

    Get an existing FileTypeControlRules 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?: FileTypeControlRulesState, opts?: CustomResourceOptions): FileTypeControlRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active_content: Optional[bool] = None,
            capture_pcap: Optional[bool] = None,
            cloud_applications: Optional[Sequence[str]] = None,
            departments: Optional[FileTypeControlRulesDepartmentsArgs] = None,
            description: Optional[str] = None,
            device_groups: Optional[FileTypeControlRulesDeviceGroupsArgs] = None,
            device_trust_levels: Optional[Sequence[str]] = None,
            devices: Optional[FileTypeControlRulesDevicesArgs] = None,
            file_types: Optional[Sequence[str]] = None,
            filtering_action: Optional[str] = None,
            groups: Optional[FileTypeControlRulesGroupsArgs] = None,
            labels: Optional[FileTypeControlRulesLabelsArgs] = None,
            location_groups: Optional[FileTypeControlRulesLocationGroupsArgs] = None,
            locations: Optional[FileTypeControlRulesLocationsArgs] = None,
            max_size: Optional[int] = None,
            min_size: Optional[int] = None,
            name: Optional[str] = None,
            operation: Optional[str] = None,
            order: Optional[int] = None,
            protocols: Optional[Sequence[str]] = None,
            rank: Optional[int] = None,
            rule_id: Optional[int] = None,
            state: Optional[str] = None,
            time_windows: Optional[FileTypeControlRulesTimeWindowsArgs] = None,
            unscannable: Optional[bool] = None,
            url_categories: Optional[Sequence[str]] = None,
            users: Optional[FileTypeControlRulesUsersArgs] = None,
            zpa_app_segments: Optional[Sequence[FileTypeControlRulesZpaAppSegmentArgs]] = None) -> FileTypeControlRules
    func GetFileTypeControlRules(ctx *Context, name string, id IDInput, state *FileTypeControlRulesState, opts ...ResourceOption) (*FileTypeControlRules, error)
    public static FileTypeControlRules Get(string name, Input<string> id, FileTypeControlRulesState? state, CustomResourceOptions? opts = null)
    public static FileTypeControlRules get(String name, Output<String> id, FileTypeControlRulesState state, CustomResourceOptions options)
    resources:  _:    type: zia:FileTypeControlRules    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ActiveContent bool
    Flag to check whether a file has active content or not
    CapturePcap bool
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    CloudApplications List<string>
    The list of cloud applications to which the File Type Control rule must be applied.
    Departments zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesDepartments
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    Description string
    The description of the File Type Control rule.
    DeviceGroups zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    DeviceTrustLevels List<string>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    Devices zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    FileTypes List<string>
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    FilteringAction string
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    Groups zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesGroups
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    Labels zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesLabels
    list of Labels that are applicable to the rule.
    LocationGroups zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesLocationGroups
    Name-ID pairs of locations groups for which rule must be applied.
    Locations zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesLocations
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    MaxSize int
    Maximum file size (in KB) used for evaluation of the FTP rule
    MinSize int
    Minimum file size (in KB) used for evaluation of the FTP rule
    Name string
    The File Type Control policy rule name.
    Operation string
    File operation performed. This field is not applicable to the Lite API.
    Order int
    The rule order of execution for the File Type Control rule with respect to other rules.
    Protocols List<string>
    Protocol for the given rule. This field is not applicable to the Lite API.
    Rank int
    Admin rank of the admin who creates this rule
    RuleId int
    State string
    Enables or disables the File Type Control rule.
    TimeWindows zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesTimeWindows
    list of time interval during which rule must be enforced.
    Unscannable bool
    Flag to check whether a file has active content or not
    UrlCategories List<string>
    List of URL categories for which rule must be applied
    Users zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesUsers
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    ZpaAppSegments List<zscaler.PulumiPackage.Zia.Inputs.FileTypeControlRulesZpaAppSegment>
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable
    ActiveContent bool
    Flag to check whether a file has active content or not
    CapturePcap bool
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    CloudApplications []string
    The list of cloud applications to which the File Type Control rule must be applied.
    Departments FileTypeControlRulesDepartmentsArgs
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    Description string
    The description of the File Type Control rule.
    DeviceGroups FileTypeControlRulesDeviceGroupsArgs
    This field is applicable for devices that are managed using Zscaler Client Connector.
    DeviceTrustLevels []string
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    Devices FileTypeControlRulesDevicesArgs
    Name-ID pairs of devices for which rule must be applied.
    FileTypes []string
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    FilteringAction string
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    Groups FileTypeControlRulesGroupsArgs
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    Labels FileTypeControlRulesLabelsArgs
    list of Labels that are applicable to the rule.
    LocationGroups FileTypeControlRulesLocationGroupsArgs
    Name-ID pairs of locations groups for which rule must be applied.
    Locations FileTypeControlRulesLocationsArgs
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    MaxSize int
    Maximum file size (in KB) used for evaluation of the FTP rule
    MinSize int
    Minimum file size (in KB) used for evaluation of the FTP rule
    Name string
    The File Type Control policy rule name.
    Operation string
    File operation performed. This field is not applicable to the Lite API.
    Order int
    The rule order of execution for the File Type Control rule with respect to other rules.
    Protocols []string
    Protocol for the given rule. This field is not applicable to the Lite API.
    Rank int
    Admin rank of the admin who creates this rule
    RuleId int
    State string
    Enables or disables the File Type Control rule.
    TimeWindows FileTypeControlRulesTimeWindowsArgs
    list of time interval during which rule must be enforced.
    Unscannable bool
    Flag to check whether a file has active content or not
    UrlCategories []string
    List of URL categories for which rule must be applied
    Users FileTypeControlRulesUsersArgs
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    ZpaAppSegments []FileTypeControlRulesZpaAppSegmentArgs
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable
    activeContent Boolean
    Flag to check whether a file has active content or not
    capturePcap Boolean
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    cloudApplications List<String>
    The list of cloud applications to which the File Type Control rule must be applied.
    departments FileTypeControlRulesDepartments
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    description String
    The description of the File Type Control rule.
    deviceGroups FileTypeControlRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels List<String>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices FileTypeControlRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    fileTypes List<String>
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    filteringAction String
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    groups FileTypeControlRulesGroups
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    labels FileTypeControlRulesLabels
    list of Labels that are applicable to the rule.
    locationGroups FileTypeControlRulesLocationGroups
    Name-ID pairs of locations groups for which rule must be applied.
    locations FileTypeControlRulesLocations
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    maxSize Integer
    Maximum file size (in KB) used for evaluation of the FTP rule
    minSize Integer
    Minimum file size (in KB) used for evaluation of the FTP rule
    name String
    The File Type Control policy rule name.
    operation String
    File operation performed. This field is not applicable to the Lite API.
    order Integer
    The rule order of execution for the File Type Control rule with respect to other rules.
    protocols List<String>
    Protocol for the given rule. This field is not applicable to the Lite API.
    rank Integer
    Admin rank of the admin who creates this rule
    ruleId Integer
    state String
    Enables or disables the File Type Control rule.
    timeWindows FileTypeControlRulesTimeWindows
    list of time interval during which rule must be enforced.
    unscannable Boolean
    Flag to check whether a file has active content or not
    urlCategories List<String>
    List of URL categories for which rule must be applied
    users FileTypeControlRulesUsers
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    zpaAppSegments List<FileTypeControlRulesZpaAppSegment>
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable
    activeContent boolean
    Flag to check whether a file has active content or not
    capturePcap boolean
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    cloudApplications string[]
    The list of cloud applications to which the File Type Control rule must be applied.
    departments FileTypeControlRulesDepartments
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    description string
    The description of the File Type Control rule.
    deviceGroups FileTypeControlRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels string[]
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices FileTypeControlRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    fileTypes string[]
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    filteringAction string
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    groups FileTypeControlRulesGroups
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    labels FileTypeControlRulesLabels
    list of Labels that are applicable to the rule.
    locationGroups FileTypeControlRulesLocationGroups
    Name-ID pairs of locations groups for which rule must be applied.
    locations FileTypeControlRulesLocations
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    maxSize number
    Maximum file size (in KB) used for evaluation of the FTP rule
    minSize number
    Minimum file size (in KB) used for evaluation of the FTP rule
    name string
    The File Type Control policy rule name.
    operation string
    File operation performed. This field is not applicable to the Lite API.
    order number
    The rule order of execution for the File Type Control rule with respect to other rules.
    protocols string[]
    Protocol for the given rule. This field is not applicable to the Lite API.
    rank number
    Admin rank of the admin who creates this rule
    ruleId number
    state string
    Enables or disables the File Type Control rule.
    timeWindows FileTypeControlRulesTimeWindows
    list of time interval during which rule must be enforced.
    unscannable boolean
    Flag to check whether a file has active content or not
    urlCategories string[]
    List of URL categories for which rule must be applied
    users FileTypeControlRulesUsers
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    zpaAppSegments FileTypeControlRulesZpaAppSegment[]
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable
    active_content bool
    Flag to check whether a file has active content or not
    capture_pcap bool
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    cloud_applications Sequence[str]
    The list of cloud applications to which the File Type Control rule must be applied.
    departments FileTypeControlRulesDepartmentsArgs
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    description str
    The description of the File Type Control rule.
    device_groups FileTypeControlRulesDeviceGroupsArgs
    This field is applicable for devices that are managed using Zscaler Client Connector.
    device_trust_levels Sequence[str]
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices FileTypeControlRulesDevicesArgs
    Name-ID pairs of devices for which rule must be applied.
    file_types Sequence[str]
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    filtering_action str
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    groups FileTypeControlRulesGroupsArgs
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    labels FileTypeControlRulesLabelsArgs
    list of Labels that are applicable to the rule.
    location_groups FileTypeControlRulesLocationGroupsArgs
    Name-ID pairs of locations groups for which rule must be applied.
    locations FileTypeControlRulesLocationsArgs
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    max_size int
    Maximum file size (in KB) used for evaluation of the FTP rule
    min_size int
    Minimum file size (in KB) used for evaluation of the FTP rule
    name str
    The File Type Control policy rule name.
    operation str
    File operation performed. This field is not applicable to the Lite API.
    order int
    The rule order of execution for the File Type Control rule with respect to other rules.
    protocols Sequence[str]
    Protocol for the given rule. This field is not applicable to the Lite API.
    rank int
    Admin rank of the admin who creates this rule
    rule_id int
    state str
    Enables or disables the File Type Control rule.
    time_windows FileTypeControlRulesTimeWindowsArgs
    list of time interval during which rule must be enforced.
    unscannable bool
    Flag to check whether a file has active content or not
    url_categories Sequence[str]
    List of URL categories for which rule must be applied
    users FileTypeControlRulesUsersArgs
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    zpa_app_segments Sequence[FileTypeControlRulesZpaAppSegmentArgs]
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable
    activeContent Boolean
    Flag to check whether a file has active content or not
    capturePcap Boolean
    A Boolean value that indicates whether packet capture (PCAP) is enabled or not
    cloudApplications List<String>
    The list of cloud applications to which the File Type Control rule must be applied.
    departments Property Map
    The Name-ID pairs of departments to which the File Type Control rule must be applied.
    description String
    The description of the File Type Control rule.
    deviceGroups Property Map
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels List<String>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices Property Map
    Name-ID pairs of devices for which rule must be applied.
    fileTypes List<String>
    File type categories for which the policy is applied. If not set, the rule is applied across all file types.
    filteringAction String
    Action taken when traffic matches policy. This field is not applicable to the Lite API.
    groups Property Map
    The Name-ID pairs of groups to which the File Type Control rule must be applied.
    labels Property Map
    list of Labels that are applicable to the rule.
    locationGroups Property Map
    Name-ID pairs of locations groups for which rule must be applied.
    locations Property Map
    Name-ID pairs of locations for the which policy must be applied. If not set, policy is applied for all locations.
    maxSize Number
    Maximum file size (in KB) used for evaluation of the FTP rule
    minSize Number
    Minimum file size (in KB) used for evaluation of the FTP rule
    name String
    The File Type Control policy rule name.
    operation String
    File operation performed. This field is not applicable to the Lite API.
    order Number
    The rule order of execution for the File Type Control rule with respect to other rules.
    protocols List<String>
    Protocol for the given rule. This field is not applicable to the Lite API.
    rank Number
    Admin rank of the admin who creates this rule
    ruleId Number
    state String
    Enables or disables the File Type Control rule.
    timeWindows Property Map
    list of time interval during which rule must be enforced.
    unscannable Boolean
    Flag to check whether a file has active content or not
    urlCategories List<String>
    List of URL categories for which rule must be applied
    users Property Map
    The Name-ID pairs of users to which the File Type Control rule must be applied.
    zpaAppSegments List<Property Map>
    List of Source IP Anchoring-enabled ZPA Application Segments for which this rule is applicable

    Supporting Types

    FileTypeControlRulesDepartments, FileTypeControlRulesDepartmentsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    FileTypeControlRulesDeviceGroups, FileTypeControlRulesDeviceGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    FileTypeControlRulesDevices, FileTypeControlRulesDevicesArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    FileTypeControlRulesGroups, FileTypeControlRulesGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    FileTypeControlRulesLabels, FileTypeControlRulesLabelsArgs

    Id int
    Id int
    id Integer
    id number
    id int
    id Number

    FileTypeControlRulesLocationGroups, FileTypeControlRulesLocationGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    FileTypeControlRulesLocations, FileTypeControlRulesLocationsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    FileTypeControlRulesTimeWindows, FileTypeControlRulesTimeWindowsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    FileTypeControlRulesUsers, FileTypeControlRulesUsersArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    FileTypeControlRulesZpaAppSegment, FileTypeControlRulesZpaAppSegmentArgs

    ExternalId string
    External ID of the application segment.
    Name string
    Name of the application segment.
    ExternalId string
    External ID of the application segment.
    Name string
    Name of the application segment.
    externalId String
    External ID of the application segment.
    name String
    Name of the application segment.
    externalId string
    External ID of the application segment.
    name string
    Name of the application segment.
    external_id str
    External ID of the application segment.
    name str
    Name of the application segment.
    externalId String
    External ID of the application segment.
    name String
    Name of the application segment.

    Import

    Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language.

    Visit

    zia_file_type_control_rules can be imported by using <RULE ID> or <RULE NAME> as the import ID.

    For example:

    $ pulumi import zia:index/fileTypeControlRules:FileTypeControlRules example <rule_id>
    

    or

    $ pulumi import zia:index/fileTypeControlRules:FileTypeControlRules example <rule_name>
    

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

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    MIT
    Notes
    This Pulumi package is based on the zia Terraform Provider.
    zia logo
    Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler