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

zia.getFileTypeControlRules

Explore with Pulumi AI

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

    Use the zia_file_type_control_rules data source to retrieves File Type Control rules.

    Example Usage

    # Retrieve a File Type Control Rule by name
    data "zia_file_type_control_rules" "this" {
        name = "Example"
    }
    
    # Retrieve a File Type Control Rule by ID
    data "zia_file_type_control_rules" "this" {
        name = "12134558"
    }
    

    Using getFileTypeControlRules

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getFileTypeControlRules(args: GetFileTypeControlRulesArgs, opts?: InvokeOptions): Promise<GetFileTypeControlRulesResult>
    function getFileTypeControlRulesOutput(args: GetFileTypeControlRulesOutputArgs, opts?: InvokeOptions): Output<GetFileTypeControlRulesResult>
    def get_file_type_control_rules(id: Optional[int] = None,
                                    name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetFileTypeControlRulesResult
    def get_file_type_control_rules_output(id: Optional[pulumi.Input[int]] = None,
                                    name: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetFileTypeControlRulesResult]
    func LookupFileTypeControlRules(ctx *Context, args *LookupFileTypeControlRulesArgs, opts ...InvokeOption) (*LookupFileTypeControlRulesResult, error)
    func LookupFileTypeControlRulesOutput(ctx *Context, args *LookupFileTypeControlRulesOutputArgs, opts ...InvokeOption) LookupFileTypeControlRulesResultOutput

    > Note: This function is named LookupFileTypeControlRules in the Go SDK.

    public static class GetFileTypeControlRules 
    {
        public static Task<GetFileTypeControlRulesResult> InvokeAsync(GetFileTypeControlRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetFileTypeControlRulesResult> Invoke(GetFileTypeControlRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFileTypeControlRulesResult> getFileTypeControlRules(GetFileTypeControlRulesArgs args, InvokeOptions options)
    public static Output<GetFileTypeControlRulesResult> getFileTypeControlRules(GetFileTypeControlRulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zia:index/getFileTypeControlRules:getFileTypeControlRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id int
    Name string
    Id int
    Name string
    id Integer
    name String
    id number
    name string
    id int
    name str
    id Number
    name String

    getFileTypeControlRules Result

    The following output properties are available:

    AccessControl string
    ActiveContent bool
    CapturePcap bool
    CloudApplications List<string>
    Departments List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesDepartment>
    Description string
    DeviceGroups List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesDeviceGroup>
    DeviceTrustLevels List<string>
    Devices List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesDevice>
    FileTypes List<string>
    FilteringAction string
    Groups List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesGroup>
    Id int
    Labels List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesLabel>
    LastModifiedBies List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesLastModifiedBy>
    LastModifiedTime int
    LocationGroups List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesLocationGroup>
    Locations List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesLocation>
    MaxSize int
    MinSize int
    Name string
    Operation string
    Order int
    Protocols List<string>
    Rank int
    SizeQuota int
    State string
    TimeQuota int
    TimeWindows List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesTimeWindow>
    Unscannable bool
    UrlCategories List<string>
    Users List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesUser>
    ZpaAppSegments List<zscaler.PulumiPackage.Zia.Outputs.GetFileTypeControlRulesZpaAppSegment>
    AccessControl string
    ActiveContent bool
    CapturePcap bool
    CloudApplications []string
    Departments []GetFileTypeControlRulesDepartment
    Description string
    DeviceGroups []GetFileTypeControlRulesDeviceGroup
    DeviceTrustLevels []string
    Devices []GetFileTypeControlRulesDevice
    FileTypes []string
    FilteringAction string
    Groups []GetFileTypeControlRulesGroup
    Id int
    Labels []GetFileTypeControlRulesLabel
    LastModifiedBies []GetFileTypeControlRulesLastModifiedBy
    LastModifiedTime int
    LocationGroups []GetFileTypeControlRulesLocationGroup
    Locations []GetFileTypeControlRulesLocation
    MaxSize int
    MinSize int
    Name string
    Operation string
    Order int
    Protocols []string
    Rank int
    SizeQuota int
    State string
    TimeQuota int
    TimeWindows []GetFileTypeControlRulesTimeWindow
    Unscannable bool
    UrlCategories []string
    Users []GetFileTypeControlRulesUser
    ZpaAppSegments []GetFileTypeControlRulesZpaAppSegment
    accessControl String
    activeContent Boolean
    capturePcap Boolean
    cloudApplications List<String>
    departments List<GetFileTypeControlRulesDepartment>
    description String
    deviceGroups List<GetFileTypeControlRulesDeviceGroup>
    deviceTrustLevels List<String>
    devices List<GetFileTypeControlRulesDevice>
    fileTypes List<String>
    filteringAction String
    groups List<GetFileTypeControlRulesGroup>
    id Integer
    labels List<GetFileTypeControlRulesLabel>
    lastModifiedBies List<GetFileTypeControlRulesLastModifiedBy>
    lastModifiedTime Integer
    locationGroups List<GetFileTypeControlRulesLocationGroup>
    locations List<GetFileTypeControlRulesLocation>
    maxSize Integer
    minSize Integer
    name String
    operation String
    order Integer
    protocols List<String>
    rank Integer
    sizeQuota Integer
    state String
    timeQuota Integer
    timeWindows List<GetFileTypeControlRulesTimeWindow>
    unscannable Boolean
    urlCategories List<String>
    users List<GetFileTypeControlRulesUser>
    zpaAppSegments List<GetFileTypeControlRulesZpaAppSegment>
    accessControl string
    activeContent boolean
    capturePcap boolean
    cloudApplications string[]
    departments GetFileTypeControlRulesDepartment[]
    description string
    deviceGroups GetFileTypeControlRulesDeviceGroup[]
    deviceTrustLevels string[]
    devices GetFileTypeControlRulesDevice[]
    fileTypes string[]
    filteringAction string
    groups GetFileTypeControlRulesGroup[]
    id number
    labels GetFileTypeControlRulesLabel[]
    lastModifiedBies GetFileTypeControlRulesLastModifiedBy[]
    lastModifiedTime number
    locationGroups GetFileTypeControlRulesLocationGroup[]
    locations GetFileTypeControlRulesLocation[]
    maxSize number
    minSize number
    name string
    operation string
    order number
    protocols string[]
    rank number
    sizeQuota number
    state string
    timeQuota number
    timeWindows GetFileTypeControlRulesTimeWindow[]
    unscannable boolean
    urlCategories string[]
    users GetFileTypeControlRulesUser[]
    zpaAppSegments GetFileTypeControlRulesZpaAppSegment[]
    access_control str
    active_content bool
    capture_pcap bool
    cloud_applications Sequence[str]
    departments Sequence[GetFileTypeControlRulesDepartment]
    description str
    device_groups Sequence[GetFileTypeControlRulesDeviceGroup]
    device_trust_levels Sequence[str]
    devices Sequence[GetFileTypeControlRulesDevice]
    file_types Sequence[str]
    filtering_action str
    groups Sequence[GetFileTypeControlRulesGroup]
    id int
    labels Sequence[GetFileTypeControlRulesLabel]
    last_modified_bies Sequence[GetFileTypeControlRulesLastModifiedBy]
    last_modified_time int
    location_groups Sequence[GetFileTypeControlRulesLocationGroup]
    locations Sequence[GetFileTypeControlRulesLocation]
    max_size int
    min_size int
    name str
    operation str
    order int
    protocols Sequence[str]
    rank int
    size_quota int
    state str
    time_quota int
    time_windows Sequence[GetFileTypeControlRulesTimeWindow]
    unscannable bool
    url_categories Sequence[str]
    users Sequence[GetFileTypeControlRulesUser]
    zpa_app_segments Sequence[GetFileTypeControlRulesZpaAppSegment]

    Supporting Types

    GetFileTypeControlRulesDepartment

    Extensions Dictionary<string, string>
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    Extensions map[string]string
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    extensions Map<String,String>
    Additional information about the entity
    id Integer
    A unique identifier for an entity
    name String
    The configured name of the entity
    extensions {[key: string]: string}
    Additional information about the entity
    id number
    A unique identifier for an entity
    name string
    The configured name of the entity
    extensions Mapping[str, str]
    Additional information about the entity
    id int
    A unique identifier for an entity
    name str
    The configured name of the entity
    extensions Map<String>
    Additional information about the entity
    id Number
    A unique identifier for an entity
    name String
    The configured name of the entity

    GetFileTypeControlRulesDevice

    Extensions Dictionary<string, string>
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    Extensions map[string]string
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    extensions Map<String,String>
    Additional information about the entity
    id Integer
    A unique identifier for an entity
    name String
    The configured name of the entity
    extensions {[key: string]: string}
    Additional information about the entity
    id number
    A unique identifier for an entity
    name string
    The configured name of the entity
    extensions Mapping[str, str]
    Additional information about the entity
    id int
    A unique identifier for an entity
    name str
    The configured name of the entity
    extensions Map<String>
    Additional information about the entity
    id Number
    A unique identifier for an entity
    name String
    The configured name of the entity

    GetFileTypeControlRulesDeviceGroup

    Extensions Dictionary<string, string>
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    Extensions map[string]string
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    extensions Map<String,String>
    Additional information about the entity
    id Integer
    A unique identifier for an entity
    name String
    The configured name of the entity
    extensions {[key: string]: string}
    Additional information about the entity
    id number
    A unique identifier for an entity
    name string
    The configured name of the entity
    extensions Mapping[str, str]
    Additional information about the entity
    id int
    A unique identifier for an entity
    name str
    The configured name of the entity
    extensions Map<String>
    Additional information about the entity
    id Number
    A unique identifier for an entity
    name String
    The configured name of the entity

    GetFileTypeControlRulesGroup

    Extensions Dictionary<string, string>
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    Extensions map[string]string
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    extensions Map<String,String>
    Additional information about the entity
    id Integer
    A unique identifier for an entity
    name String
    The configured name of the entity
    extensions {[key: string]: string}
    Additional information about the entity
    id number
    A unique identifier for an entity
    name string
    The configured name of the entity
    extensions Mapping[str, str]
    Additional information about the entity
    id int
    A unique identifier for an entity
    name str
    The configured name of the entity
    extensions Map<String>
    Additional information about the entity
    id Number
    A unique identifier for an entity
    name String
    The configured name of the entity

    GetFileTypeControlRulesLabel

    Extensions Dictionary<string, string>
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    Extensions map[string]string
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    extensions Map<String,String>
    Additional information about the entity
    id Integer
    A unique identifier for an entity
    name String
    The configured name of the entity
    extensions {[key: string]: string}
    Additional information about the entity
    id number
    A unique identifier for an entity
    name string
    The configured name of the entity
    extensions Mapping[str, str]
    Additional information about the entity
    id int
    A unique identifier for an entity
    name str
    The configured name of the entity
    extensions Map<String>
    Additional information about the entity
    id Number
    A unique identifier for an entity
    name String
    The configured name of the entity

    GetFileTypeControlRulesLastModifiedBy

    Extensions Dictionary<string, string>
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    Extensions map[string]string
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    extensions Map<String,String>
    Additional information about the entity
    id Integer
    A unique identifier for an entity
    name String
    The configured name of the entity
    extensions {[key: string]: string}
    Additional information about the entity
    id number
    A unique identifier for an entity
    name string
    The configured name of the entity
    extensions Mapping[str, str]
    Additional information about the entity
    id int
    A unique identifier for an entity
    name str
    The configured name of the entity
    extensions Map<String>
    Additional information about the entity
    id Number
    A unique identifier for an entity
    name String
    The configured name of the entity

    GetFileTypeControlRulesLocation

    Extensions Dictionary<string, string>
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    Extensions map[string]string
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    extensions Map<String,String>
    Additional information about the entity
    id Integer
    A unique identifier for an entity
    name String
    The configured name of the entity
    extensions {[key: string]: string}
    Additional information about the entity
    id number
    A unique identifier for an entity
    name string
    The configured name of the entity
    extensions Mapping[str, str]
    Additional information about the entity
    id int
    A unique identifier for an entity
    name str
    The configured name of the entity
    extensions Map<String>
    Additional information about the entity
    id Number
    A unique identifier for an entity
    name String
    The configured name of the entity

    GetFileTypeControlRulesLocationGroup

    Extensions Dictionary<string, string>
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    Extensions map[string]string
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    extensions Map<String,String>
    Additional information about the entity
    id Integer
    A unique identifier for an entity
    name String
    The configured name of the entity
    extensions {[key: string]: string}
    Additional information about the entity
    id number
    A unique identifier for an entity
    name string
    The configured name of the entity
    extensions Mapping[str, str]
    Additional information about the entity
    id int
    A unique identifier for an entity
    name str
    The configured name of the entity
    extensions Map<String>
    Additional information about the entity
    id Number
    A unique identifier for an entity
    name String
    The configured name of the entity

    GetFileTypeControlRulesTimeWindow

    Extensions Dictionary<string, string>
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    Extensions map[string]string
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    extensions Map<String,String>
    Additional information about the entity
    id Integer
    A unique identifier for an entity
    name String
    The configured name of the entity
    extensions {[key: string]: string}
    Additional information about the entity
    id number
    A unique identifier for an entity
    name string
    The configured name of the entity
    extensions Mapping[str, str]
    Additional information about the entity
    id int
    A unique identifier for an entity
    name str
    The configured name of the entity
    extensions Map<String>
    Additional information about the entity
    id Number
    A unique identifier for an entity
    name String
    The configured name of the entity

    GetFileTypeControlRulesUser

    Extensions Dictionary<string, string>
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    Extensions map[string]string
    Additional information about the entity
    Id int
    A unique identifier for an entity
    Name string
    The configured name of the entity
    extensions Map<String,String>
    Additional information about the entity
    id Integer
    A unique identifier for an entity
    name String
    The configured name of the entity
    extensions {[key: string]: string}
    Additional information about the entity
    id number
    A unique identifier for an entity
    name string
    The configured name of the entity
    extensions Mapping[str, str]
    Additional information about the entity
    id int
    A unique identifier for an entity
    name str
    The configured name of the entity
    extensions Map<String>
    Additional information about the entity
    id Number
    A unique identifier for an entity
    name String
    The configured name of the entity

    GetFileTypeControlRulesZpaAppSegment

    ExternalId string
    Indicates the external ID. Applicable only when this reference is of an external entity.
    Id int
    A unique identifier assigned to the Application Segment
    Name string
    The name of the Application Segment
    ExternalId string
    Indicates the external ID. Applicable only when this reference is of an external entity.
    Id int
    A unique identifier assigned to the Application Segment
    Name string
    The name of the Application Segment
    externalId String
    Indicates the external ID. Applicable only when this reference is of an external entity.
    id Integer
    A unique identifier assigned to the Application Segment
    name String
    The name of the Application Segment
    externalId string
    Indicates the external ID. Applicable only when this reference is of an external entity.
    id number
    A unique identifier assigned to the Application Segment
    name string
    The name of the Application Segment
    external_id str
    Indicates the external ID. Applicable only when this reference is of an external entity.
    id int
    A unique identifier assigned to the Application Segment
    name str
    The name of the Application Segment
    externalId String
    Indicates the external ID. Applicable only when this reference is of an external entity.
    id Number
    A unique identifier assigned to the Application Segment
    name String
    The name of the Application Segment

    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