The zia_custom_file_types resource allows the creation and management of ZIA custom file type in the Zscaler Internet Access.
Example Usage
resource "zia_custom_file_types" "this" {
name = "FileType02"
description = "FileType02"
extension = "tf"
}
Create CustomFileTypes Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomFileTypes(name: string, args?: CustomFileTypesArgs, opts?: CustomResourceOptions);@overload
def CustomFileTypes(resource_name: str,
args: Optional[CustomFileTypesArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CustomFileTypes(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
extension: Optional[str] = None,
name: Optional[str] = None)func NewCustomFileTypes(ctx *Context, name string, args *CustomFileTypesArgs, opts ...ResourceOption) (*CustomFileTypes, error)public CustomFileTypes(string name, CustomFileTypesArgs? args = null, CustomResourceOptions? opts = null)
public CustomFileTypes(String name, CustomFileTypesArgs args)
public CustomFileTypes(String name, CustomFileTypesArgs args, CustomResourceOptions options)
type: zia:CustomFileTypes
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 CustomFileTypesArgs
- 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 CustomFileTypesArgs
- 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 CustomFileTypesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomFileTypesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomFileTypesArgs
- 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 customFileTypesResource = new Zia.CustomFileTypes("customFileTypesResource", new()
{
Description = "string",
Extension = "string",
Name = "string",
});
example, err := zia.NewCustomFileTypes(ctx, "customFileTypesResource", &zia.CustomFileTypesArgs{
Description: pulumi.String("string"),
Extension: pulumi.String("string"),
Name: pulumi.String("string"),
})
var customFileTypesResource = new CustomFileTypes("customFileTypesResource", CustomFileTypesArgs.builder()
.description("string")
.extension("string")
.name("string")
.build());
custom_file_types_resource = zia.CustomFileTypes("customFileTypesResource",
description="string",
extension="string",
name="string")
const customFileTypesResource = new zia.CustomFileTypes("customFileTypesResource", {
description: "string",
extension: "string",
name: "string",
});
type: zia:CustomFileTypes
properties:
description: string
extension: string
name: string
CustomFileTypes 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 CustomFileTypes resource accepts the following input properties:
- Description string
- Additional information about the custom file type, if any.
- Extension string
- The file type extension. The maximum extension length is 10 characters.
- Name string
- The name of the custom file type.
- Description string
- Additional information about the custom file type, if any.
- Extension string
- The file type extension. The maximum extension length is 10 characters.
- Name string
- The name of the custom file type.
- description String
- Additional information about the custom file type, if any.
- extension String
- The file type extension. The maximum extension length is 10 characters.
- name String
- The name of the custom file type.
- description string
- Additional information about the custom file type, if any.
- extension string
- The file type extension. The maximum extension length is 10 characters.
- name string
- The name of the custom file type.
- description str
- Additional information about the custom file type, if any.
- extension str
- The file type extension. The maximum extension length is 10 characters.
- name str
- The name of the custom file type.
- description String
- Additional information about the custom file type, if any.
- extension String
- The file type extension. The maximum extension length is 10 characters.
- name String
- The name of the custom file type.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomFileTypes resource produces the following output properties:
- File
Id int - The unique identifier for the custom file type.
- File
Type intId - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- File
Id int - The unique identifier for the custom file type.
- File
Type intId - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- file
Id Integer - The unique identifier for the custom file type.
- file
Type IntegerId - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- id String
- The provider-assigned unique ID for this managed resource.
- file
Id number - The unique identifier for the custom file type.
- file
Type numberId - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- id string
- The provider-assigned unique ID for this managed resource.
- file_
id int - The unique identifier for the custom file type.
- file_
type_ intid - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- id str
- The provider-assigned unique ID for this managed resource.
- file
Id Number - The unique identifier for the custom file type.
- file
Type NumberId - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CustomFileTypes Resource
Get an existing CustomFileTypes 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?: CustomFileTypesState, opts?: CustomResourceOptions): CustomFileTypes@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
extension: Optional[str] = None,
file_id: Optional[int] = None,
file_type_id: Optional[int] = None,
name: Optional[str] = None) -> CustomFileTypesfunc GetCustomFileTypes(ctx *Context, name string, id IDInput, state *CustomFileTypesState, opts ...ResourceOption) (*CustomFileTypes, error)public static CustomFileTypes Get(string name, Input<string> id, CustomFileTypesState? state, CustomResourceOptions? opts = null)public static CustomFileTypes get(String name, Output<String> id, CustomFileTypesState state, CustomResourceOptions options)resources: _: type: zia:CustomFileTypes 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.
- Description string
- Additional information about the custom file type, if any.
- Extension string
- The file type extension. The maximum extension length is 10 characters.
- File
Id int - The unique identifier for the custom file type.
- File
Type intId - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- Name string
- The name of the custom file type.
- Description string
- Additional information about the custom file type, if any.
- Extension string
- The file type extension. The maximum extension length is 10 characters.
- File
Id int - The unique identifier for the custom file type.
- File
Type intId - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- Name string
- The name of the custom file type.
- description String
- Additional information about the custom file type, if any.
- extension String
- The file type extension. The maximum extension length is 10 characters.
- file
Id Integer - The unique identifier for the custom file type.
- file
Type IntegerId - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- name String
- The name of the custom file type.
- description string
- Additional information about the custom file type, if any.
- extension string
- The file type extension. The maximum extension length is 10 characters.
- file
Id number - The unique identifier for the custom file type.
- file
Type numberId - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- name string
- The name of the custom file type.
- description str
- Additional information about the custom file type, if any.
- extension str
- The file type extension. The maximum extension length is 10 characters.
- file_
id int - The unique identifier for the custom file type.
- file_
type_ intid - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- name str
- The name of the custom file type.
- description String
- Additional information about the custom file type, if any.
- extension String
- The file type extension. The maximum extension length is 10 characters.
- file
Id Number - The unique identifier for the custom file type.
- file
Type NumberId - File type ID. This ID is assigned and maintained for all file types including predefined and custom file types, and this value is different from the custom file type ID.
- name String
- The name of the custom file type.
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_custom_file_types can be imported by using <FILE ID> or <FILE NAME> as the import ID.
For example:
$ pulumi import zia:index/customFileTypes:CustomFileTypes example <file_id>
or
$ pulumi import zia:index/customFileTypes:CustomFileTypes example <file_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
ziaTerraform Provider.
