zia.CasbMalwareRules
Explore with Pulumi AI
The zia_casb_malware_rules resource Adds a new SaaS Security Data at Rest Scanning Malware Detection rule.
Example Usage
data "zia_casb_tenant" "this" {
tenant_name = "GitLab_Tenant01"
}
data "zia_rule_labels" "this" {
name = "RuleLabel01
}
resource "zia_casb_malware_rules" "this" {
name = "GitLab_Tenant01"
action = "OFLCASB_AVP_REPORT_MALWARE"
type = "OFLCASB_AVP_REPO"
order = 1
cloud_app_tenants {
id = [data.zia_casb_tenant.this.id]
}
labels {
id = [data.zia_rule_labels.this.id]
}
buckets {
id = [1442271, 1442270, 1442268, 1442269, 1442272]
}
}
Create CasbMalwareRules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CasbMalwareRules(name: string, args?: CasbMalwareRulesArgs, opts?: CustomResourceOptions);
@overload
def CasbMalwareRules(resource_name: str,
args: Optional[CasbMalwareRulesArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CasbMalwareRules(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
buckets: Optional[CasbMalwareRulesBucketsArgs] = None,
casb_email_labels: Optional[Sequence[CasbMalwareRulesCasbEmailLabelArgs]] = None,
casb_tombstone_templates: Optional[Sequence[CasbMalwareRulesCasbTombstoneTemplateArgs]] = None,
cloud_app_tenant_ids: Optional[CasbMalwareRulesCloudAppTenantIdsArgs] = None,
cloud_app_tenants: Optional[CasbMalwareRulesCloudAppTenantsArgs] = None,
labels: Optional[CasbMalwareRulesLabelsArgs] = None,
name: Optional[str] = None,
order: Optional[int] = None,
quarantine_location: Optional[str] = None,
scan_inbound_email_link: Optional[str] = None,
state: Optional[str] = None,
type: Optional[str] = None)
func NewCasbMalwareRules(ctx *Context, name string, args *CasbMalwareRulesArgs, opts ...ResourceOption) (*CasbMalwareRules, error)
public CasbMalwareRules(string name, CasbMalwareRulesArgs? args = null, CustomResourceOptions? opts = null)
public CasbMalwareRules(String name, CasbMalwareRulesArgs args)
public CasbMalwareRules(String name, CasbMalwareRulesArgs args, CustomResourceOptions options)
type: zia:CasbMalwareRules
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 CasbMalwareRulesArgs
- 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 CasbMalwareRulesArgs
- 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 CasbMalwareRulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CasbMalwareRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CasbMalwareRulesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CasbMalwareRules 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 CasbMalwareRules resource accepts the following input properties:
- Action string
- Buckets
zscaler.
Pulumi Package. Zia. Inputs. Casb Malware Rules Buckets - Name-ID pairs of locations for which rule must be applied
- Casb
Email List<zscaler.Labels Pulumi Package. Zia. Inputs. Casb Malware Rules Casb Email Label> - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- Casb
Tombstone List<zscaler.Templates Pulumi Package. Zia. Inputs. Casb Malware Rules Casb Tombstone Template> - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- Cloud
App zscaler.Tenant Ids Pulumi Package. Zia. Inputs. Casb Malware Rules Cloud App Tenant Ids - This field is applicable for devices that are managed using Zscaler Client Connector.
- Cloud
App zscaler.Tenants Pulumi Package. Zia. Inputs. Casb Malware Rules Cloud App Tenants - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- Labels
zscaler.
Pulumi Package. Zia. Inputs. Casb Malware Rules Labels - list of Labels that are applicable to the rule.
- Name string
- Order int
- Quarantine
Location string - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- Scan
Inbound stringEmail Link - Enables or disables the scan inbound email link
- State string
- Type string
- Action string
- Buckets
Casb
Malware Rules Buckets Args - Name-ID pairs of locations for which rule must be applied
- Casb
Email []CasbLabels Malware Rules Casb Email Label Args - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- Casb
Tombstone []CasbTemplates Malware Rules Casb Tombstone Template Args - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- Cloud
App CasbTenant Ids Malware Rules Cloud App Tenant Ids Args - This field is applicable for devices that are managed using Zscaler Client Connector.
- Cloud
App CasbTenants Malware Rules Cloud App Tenants Args - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- Labels
Casb
Malware Rules Labels Args - list of Labels that are applicable to the rule.
- Name string
- Order int
- Quarantine
Location string - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- Scan
Inbound stringEmail Link - Enables or disables the scan inbound email link
- State string
- Type string
- action String
- buckets
Casb
Malware Rules Buckets - Name-ID pairs of locations for which rule must be applied
- casb
Email List<CasbLabels Malware Rules Casb Email Label> - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- casb
Tombstone List<CasbTemplates Malware Rules Casb Tombstone Template> - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- cloud
App CasbTenant Ids Malware Rules Cloud App Tenant Ids - This field is applicable for devices that are managed using Zscaler Client Connector.
- cloud
App CasbTenants Malware Rules Cloud App Tenants - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- labels
Casb
Malware Rules Labels - list of Labels that are applicable to the rule.
- name String
- order Integer
- quarantine
Location String - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- scan
Inbound StringEmail Link - Enables or disables the scan inbound email link
- state String
- type String
- action string
- buckets
Casb
Malware Rules Buckets - Name-ID pairs of locations for which rule must be applied
- casb
Email CasbLabels Malware Rules Casb Email Label[] - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- casb
Tombstone CasbTemplates Malware Rules Casb Tombstone Template[] - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- cloud
App CasbTenant Ids Malware Rules Cloud App Tenant Ids - This field is applicable for devices that are managed using Zscaler Client Connector.
- cloud
App CasbTenants Malware Rules Cloud App Tenants - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- labels
Casb
Malware Rules Labels - list of Labels that are applicable to the rule.
- name string
- order number
- quarantine
Location string - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- scan
Inbound stringEmail Link - Enables or disables the scan inbound email link
- state string
- type string
- action str
- buckets
Casb
Malware Rules Buckets Args - Name-ID pairs of locations for which rule must be applied
- casb_
email_ Sequence[Casblabels Malware Rules Casb Email Label Args] - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- casb_
tombstone_ Sequence[Casbtemplates Malware Rules Casb Tombstone Template Args] - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- cloud_
app_ Casbtenant_ ids Malware Rules Cloud App Tenant Ids Args - This field is applicable for devices that are managed using Zscaler Client Connector.
- cloud_
app_ Casbtenants Malware Rules Cloud App Tenants Args - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- labels
Casb
Malware Rules Labels Args - list of Labels that are applicable to the rule.
- name str
- order int
- quarantine_
location str - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- scan_
inbound_ stremail_ link - Enables or disables the scan inbound email link
- state str
- type str
- action String
- buckets Property Map
- Name-ID pairs of locations for which rule must be applied
- casb
Email List<Property Map>Labels - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- casb
Tombstone List<Property Map>Templates - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- cloud
App Property MapTenant Ids - This field is applicable for devices that are managed using Zscaler Client Connector.
- cloud
App Property MapTenants - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- labels Property Map
- list of Labels that are applicable to the rule.
- name String
- order Number
- quarantine
Location String - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- scan
Inbound StringEmail Link - Enables or disables the scan inbound email link
- state String
- type String
Outputs
All input properties are implicitly available as output properties. Additionally, the CasbMalwareRules resource produces the following output properties:
Look up Existing CasbMalwareRules Resource
Get an existing CasbMalwareRules 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?: CasbMalwareRulesState, opts?: CustomResourceOptions): CasbMalwareRules
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
buckets: Optional[CasbMalwareRulesBucketsArgs] = None,
casb_email_labels: Optional[Sequence[CasbMalwareRulesCasbEmailLabelArgs]] = None,
casb_tombstone_templates: Optional[Sequence[CasbMalwareRulesCasbTombstoneTemplateArgs]] = None,
cloud_app_tenant_ids: Optional[CasbMalwareRulesCloudAppTenantIdsArgs] = None,
cloud_app_tenants: Optional[CasbMalwareRulesCloudAppTenantsArgs] = None,
labels: Optional[CasbMalwareRulesLabelsArgs] = None,
name: Optional[str] = None,
order: Optional[int] = None,
quarantine_location: Optional[str] = None,
rule_id: Optional[int] = None,
scan_inbound_email_link: Optional[str] = None,
state: Optional[str] = None,
type: Optional[str] = None) -> CasbMalwareRules
func GetCasbMalwareRules(ctx *Context, name string, id IDInput, state *CasbMalwareRulesState, opts ...ResourceOption) (*CasbMalwareRules, error)
public static CasbMalwareRules Get(string name, Input<string> id, CasbMalwareRulesState? state, CustomResourceOptions? opts = null)
public static CasbMalwareRules get(String name, Output<String> id, CasbMalwareRulesState state, CustomResourceOptions options)
resources: _: type: zia:CasbMalwareRules 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.
- Action string
- Buckets
zscaler.
Pulumi Package. Zia. Inputs. Casb Malware Rules Buckets - Name-ID pairs of locations for which rule must be applied
- Casb
Email List<zscaler.Labels Pulumi Package. Zia. Inputs. Casb Malware Rules Casb Email Label> - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- Casb
Tombstone List<zscaler.Templates Pulumi Package. Zia. Inputs. Casb Malware Rules Casb Tombstone Template> - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- Cloud
App zscaler.Tenant Ids Pulumi Package. Zia. Inputs. Casb Malware Rules Cloud App Tenant Ids - This field is applicable for devices that are managed using Zscaler Client Connector.
- Cloud
App zscaler.Tenants Pulumi Package. Zia. Inputs. Casb Malware Rules Cloud App Tenants - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- Labels
zscaler.
Pulumi Package. Zia. Inputs. Casb Malware Rules Labels - list of Labels that are applicable to the rule.
- Name string
- Order int
- Quarantine
Location string - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- Rule
Id int - A unique identifier assigned to the forwarding rule
- Scan
Inbound stringEmail Link - Enables or disables the scan inbound email link
- State string
- Type string
- Action string
- Buckets
Casb
Malware Rules Buckets Args - Name-ID pairs of locations for which rule must be applied
- Casb
Email []CasbLabels Malware Rules Casb Email Label Args - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- Casb
Tombstone []CasbTemplates Malware Rules Casb Tombstone Template Args - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- Cloud
App CasbTenant Ids Malware Rules Cloud App Tenant Ids Args - This field is applicable for devices that are managed using Zscaler Client Connector.
- Cloud
App CasbTenants Malware Rules Cloud App Tenants Args - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- Labels
Casb
Malware Rules Labels Args - list of Labels that are applicable to the rule.
- Name string
- Order int
- Quarantine
Location string - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- Rule
Id int - A unique identifier assigned to the forwarding rule
- Scan
Inbound stringEmail Link - Enables or disables the scan inbound email link
- State string
- Type string
- action String
- buckets
Casb
Malware Rules Buckets - Name-ID pairs of locations for which rule must be applied
- casb
Email List<CasbLabels Malware Rules Casb Email Label> - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- casb
Tombstone List<CasbTemplates Malware Rules Casb Tombstone Template> - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- cloud
App CasbTenant Ids Malware Rules Cloud App Tenant Ids - This field is applicable for devices that are managed using Zscaler Client Connector.
- cloud
App CasbTenants Malware Rules Cloud App Tenants - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- labels
Casb
Malware Rules Labels - list of Labels that are applicable to the rule.
- name String
- order Integer
- quarantine
Location String - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- rule
Id Integer - A unique identifier assigned to the forwarding rule
- scan
Inbound StringEmail Link - Enables or disables the scan inbound email link
- state String
- type String
- action string
- buckets
Casb
Malware Rules Buckets - Name-ID pairs of locations for which rule must be applied
- casb
Email CasbLabels Malware Rules Casb Email Label[] - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- casb
Tombstone CasbTemplates Malware Rules Casb Tombstone Template[] - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- cloud
App CasbTenant Ids Malware Rules Cloud App Tenant Ids - This field is applicable for devices that are managed using Zscaler Client Connector.
- cloud
App CasbTenants Malware Rules Cloud App Tenants - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- labels
Casb
Malware Rules Labels - list of Labels that are applicable to the rule.
- name string
- order number
- quarantine
Location string - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- rule
Id number - A unique identifier assigned to the forwarding rule
- scan
Inbound stringEmail Link - Enables or disables the scan inbound email link
- state string
- type string
- action str
- buckets
Casb
Malware Rules Buckets Args - Name-ID pairs of locations for which rule must be applied
- casb_
email_ Sequence[Casblabels Malware Rules Casb Email Label Args] - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- casb_
tombstone_ Sequence[Casbtemplates Malware Rules Casb Tombstone Template Args] - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- cloud_
app_ Casbtenant_ ids Malware Rules Cloud App Tenant Ids Args - This field is applicable for devices that are managed using Zscaler Client Connector.
- cloud_
app_ Casbtenants Malware Rules Cloud App Tenants Args - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- labels
Casb
Malware Rules Labels Args - list of Labels that are applicable to the rule.
- name str
- order int
- quarantine_
location str - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- rule_
id int - A unique identifier assigned to the forwarding rule
- scan_
inbound_ stremail_ link - Enables or disables the scan inbound email link
- state str
- type str
- action String
- buckets Property Map
- Name-ID pairs of locations for which rule must be applied
- casb
Email List<Property Map>Labels - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- casb
Tombstone List<Property Map>Templates - The ZPA Server Group for which this rule is applicable. Only the Server Groups that are associated with the selected Application Segments are allowed. This field is applicable only for the ZPA forwarding method.
- cloud
App Property MapTenant Ids - This field is applicable for devices that are managed using Zscaler Client Connector.
- cloud
App Property MapTenants - Name-ID pairs of the cloud application tenants for which the rule is applied. If the name-ID pairs of the cloud application tenants are not specified, the rule is applied to all tenants.
- labels Property Map
- list of Labels that are applicable to the rule.
- name String
- order Number
- quarantine
Location String - Location where all the quarantined files are moved and necessary actions are taken by either deleting or restoring the data
- rule
Id Number - A unique identifier assigned to the forwarding rule
- scan
Inbound StringEmail Link - Enables or disables the scan inbound email link
- state String
- type String
Supporting Types
CasbMalwareRulesBuckets, CasbMalwareRulesBucketsArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
CasbMalwareRulesCasbEmailLabel, CasbMalwareRulesCasbEmailLabelArgs
- Id int
- Id int
- id Integer
- id number
- id int
- id Number
CasbMalwareRulesCasbTombstoneTemplate, CasbMalwareRulesCasbTombstoneTemplateArgs
- Id int
- Id int
- id Integer
- id number
- id int
- id Number
CasbMalwareRulesCloudAppTenantIds, CasbMalwareRulesCloudAppTenantIdsArgs
- Id int
- Id int
- id Integer
- id number
- id int
- id Number
CasbMalwareRulesCloudAppTenants, CasbMalwareRulesCloudAppTenantsArgs
- Id int
- Id int
- id Integer
- id number
- id int
- id Number
CasbMalwareRulesLabels, CasbMalwareRulesLabelsArgs
- Id int
- Id int
- id Integer
- id number
- id int
- id Number
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_casb_malware_rules can be imported by using <RULE_TYPE:RULE_ID>
or <RULE_TYPE:RULE_NAME>
as the import ID.
For example:
$ pulumi import zia:index/casbMalwareRules:CasbMalwareRules this <rule_type:rule_id>
$ pulumi import zia:index/casbMalwareRules:CasbMalwareRules this <"rule_type: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.