1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. CustomFileType
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_custom_file_type resource manages custom file type controls in the Zscaler Internet Access (ZIA) cloud service. Custom file types allow you to define file extensions and types for use in file type control policies.

    Example Usage

    Custom File Type

    Example coming soon!

    Example coming soon!

    Example coming soon!

    import * as zia from "@bdzscaler/pulumi-zia";
    
    const example = new zia.CustomFileType("example", {
        name: "Custom Archive",
        description: "Custom archive file type",
        extension: "myarch",
    });
    
    import zscaler_pulumi_zia as zia
    
    example = zia.CustomFileType("example",
        name="Custom Archive",
        description="Custom archive file type",
        extension="myarch",
    )
    
    resources:
      example:
        type: zia:CustomFileType
        properties:
          name: Custom Archive
          description: Custom archive file type
          extension: myarch
    

    Create CustomFileType Resource

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

    Constructor syntax

    new CustomFileType(name: string, args?: CustomFileTypeArgs, opts?: CustomResourceOptions);
    @overload
    def CustomFileType(resource_name: str,
                       args: Optional[CustomFileTypeArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def CustomFileType(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       description: Optional[str] = None,
                       extension: Optional[str] = None,
                       file_type_id: Optional[int] = None,
                       name: Optional[str] = None)
    func NewCustomFileType(ctx *Context, name string, args *CustomFileTypeArgs, opts ...ResourceOption) (*CustomFileType, error)
    public CustomFileType(string name, CustomFileTypeArgs? args = null, CustomResourceOptions? opts = null)
    public CustomFileType(String name, CustomFileTypeArgs args)
    public CustomFileType(String name, CustomFileTypeArgs args, CustomResourceOptions options)
    
    type: zia:CustomFileType
    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 CustomFileTypeArgs
    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 CustomFileTypeArgs
    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 CustomFileTypeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomFileTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomFileTypeArgs
    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 customFileTypeResource = new Zia.CustomFileType("customFileTypeResource", new()
    {
        Description = "string",
        Extension = "string",
        FileTypeId = 0,
        Name = "string",
    });
    
    example, err := zia.NewCustomFileType(ctx, "customFileTypeResource", &zia.CustomFileTypeArgs{
    	Description: pulumi.String("string"),
    	Extension:   pulumi.String("string"),
    	FileTypeId:  pulumi.Int(0),
    	Name:        pulumi.String("string"),
    })
    
    var customFileTypeResource = new CustomFileType("customFileTypeResource", CustomFileTypeArgs.builder()
        .description("string")
        .extension("string")
        .fileTypeId(0)
        .name("string")
        .build());
    
    custom_file_type_resource = zia.CustomFileType("customFileTypeResource",
        description="string",
        extension="string",
        file_type_id=0,
        name="string")
    
    const customFileTypeResource = new zia.CustomFileType("customFileTypeResource", {
        description: "string",
        extension: "string",
        fileTypeId: 0,
        name: "string",
    });
    
    type: zia:CustomFileType
    properties:
        description: string
        extension: string
        fileTypeId: 0
        name: string
    

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

    Description string
    A description of the custom file type.
    Extension string
    The file extension for this custom file type (e.g. myarch).
    FileTypeId int
    The file type category ID to associate this custom file type with.
    Name string
    The name of the custom file type.
    Description string
    A description of the custom file type.
    Extension string
    The file extension for this custom file type (e.g. myarch).
    FileTypeId int
    The file type category ID to associate this custom file type with.
    Name string
    The name of the custom file type.
    description String
    A description of the custom file type.
    extension String
    The file extension for this custom file type (e.g. myarch).
    fileTypeId Integer
    The file type category ID to associate this custom file type with.
    name String
    The name of the custom file type.
    description string
    A description of the custom file type.
    extension string
    The file extension for this custom file type (e.g. myarch).
    fileTypeId number
    The file type category ID to associate this custom file type with.
    name string
    The name of the custom file type.
    description str
    A description of the custom file type.
    extension str
    The file extension for this custom file type (e.g. myarch).
    file_type_id int
    The file type category ID to associate this custom file type with.
    name str
    The name of the custom file type.
    description String
    A description of the custom file type.
    extension String
    The file extension for this custom file type (e.g. myarch).
    fileTypeId Number
    The file type category ID to associate this custom file type with.
    name String
    The name of the custom file type.

    Outputs

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

    FileId int
    The system-generated ID of the custom file type.
    Id string
    The provider-assigned unique ID for this managed resource.
    FileId int
    The system-generated ID of the custom file type.
    Id string
    The provider-assigned unique ID for this managed resource.
    fileId Integer
    The system-generated ID of the custom file type.
    id String
    The provider-assigned unique ID for this managed resource.
    fileId number
    The system-generated ID of the custom file type.
    id string
    The provider-assigned unique ID for this managed resource.
    file_id int
    The system-generated ID of the custom file type.
    id str
    The provider-assigned unique ID for this managed resource.
    fileId Number
    The system-generated ID of the custom file type.
    id String
    The provider-assigned unique ID for this managed resource.

    Import

    An existing Custom File Type can be imported using its resource ID, e.g.

    $ pulumi import zia:index:CustomFileType 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.