1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. MobileMalwareProtectionPolicy
Zscaler Internet Access v1.1.1 published on Tuesday, Jun 24, 2025 by Zscaler

zia.MobileMalwareProtectionPolicy

Explore with Pulumi AI

zia logo
Zscaler Internet Access v1.1.1 published on Tuesday, Jun 24, 2025 by Zscaler

    The zia_mobile_malware_protection_policy resource allows you to update Mobile Malware Protection policy. To learn more see Configuring the Mobile Malware Protection Policy

    Example Usage

    resource "zia_mobile_malware_protection_policy" "this" {
        block_apps_with_malicious_activity = true
        block_apps_with_known_vulnerabilities = true
        block_apps_sending_unencrypted_user_credentials = true
        block_apps_sending_location_info = true
        block_apps_sending_personally_identifiable_info = true
        block_apps_sending_device_identifier = true
        block_apps_communicating_with_ad_websites = true
        block_apps_communicating_with_remote_unknown_servers = true
    }
    

    Create MobileMalwareProtectionPolicy Resource

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

    Constructor syntax

    new MobileMalwareProtectionPolicy(name: string, args?: MobileMalwareProtectionPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def MobileMalwareProtectionPolicy(resource_name: str,
                                      args: Optional[MobileMalwareProtectionPolicyArgs] = None,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def MobileMalwareProtectionPolicy(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      block_apps_communicating_with_ad_websites: Optional[bool] = None,
                                      block_apps_communicating_with_remote_unknown_servers: Optional[bool] = None,
                                      block_apps_sending_device_identifier: Optional[bool] = None,
                                      block_apps_sending_location_info: Optional[bool] = None,
                                      block_apps_sending_personally_identifiable_info: Optional[bool] = None,
                                      block_apps_sending_unencrypted_user_credentials: Optional[bool] = None,
                                      block_apps_with_known_vulnerabilities: Optional[bool] = None,
                                      block_apps_with_malicious_activity: Optional[bool] = None)
    func NewMobileMalwareProtectionPolicy(ctx *Context, name string, args *MobileMalwareProtectionPolicyArgs, opts ...ResourceOption) (*MobileMalwareProtectionPolicy, error)
    public MobileMalwareProtectionPolicy(string name, MobileMalwareProtectionPolicyArgs? args = null, CustomResourceOptions? opts = null)
    public MobileMalwareProtectionPolicy(String name, MobileMalwareProtectionPolicyArgs args)
    public MobileMalwareProtectionPolicy(String name, MobileMalwareProtectionPolicyArgs args, CustomResourceOptions options)
    
    type: zia:MobileMalwareProtectionPolicy
    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 MobileMalwareProtectionPolicyArgs
    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 MobileMalwareProtectionPolicyArgs
    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 MobileMalwareProtectionPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MobileMalwareProtectionPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MobileMalwareProtectionPolicyArgs
    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 mobileMalwareProtectionPolicyResource = new Zia.MobileMalwareProtectionPolicy("mobileMalwareProtectionPolicyResource", new()
    {
        BlockAppsCommunicatingWithAdWebsites = false,
        BlockAppsCommunicatingWithRemoteUnknownServers = false,
        BlockAppsSendingDeviceIdentifier = false,
        BlockAppsSendingLocationInfo = false,
        BlockAppsSendingPersonallyIdentifiableInfo = false,
        BlockAppsSendingUnencryptedUserCredentials = false,
        BlockAppsWithKnownVulnerabilities = false,
        BlockAppsWithMaliciousActivity = false,
    });
    
    example, err := zia.NewMobileMalwareProtectionPolicy(ctx, "mobileMalwareProtectionPolicyResource", &zia.MobileMalwareProtectionPolicyArgs{
    	BlockAppsCommunicatingWithAdWebsites:           pulumi.Bool(false),
    	BlockAppsCommunicatingWithRemoteUnknownServers: pulumi.Bool(false),
    	BlockAppsSendingDeviceIdentifier:               pulumi.Bool(false),
    	BlockAppsSendingLocationInfo:                   pulumi.Bool(false),
    	BlockAppsSendingPersonallyIdentifiableInfo:     pulumi.Bool(false),
    	BlockAppsSendingUnencryptedUserCredentials:     pulumi.Bool(false),
    	BlockAppsWithKnownVulnerabilities:              pulumi.Bool(false),
    	BlockAppsWithMaliciousActivity:                 pulumi.Bool(false),
    })
    
    var mobileMalwareProtectionPolicyResource = new MobileMalwareProtectionPolicy("mobileMalwareProtectionPolicyResource", MobileMalwareProtectionPolicyArgs.builder()
        .blockAppsCommunicatingWithAdWebsites(false)
        .blockAppsCommunicatingWithRemoteUnknownServers(false)
        .blockAppsSendingDeviceIdentifier(false)
        .blockAppsSendingLocationInfo(false)
        .blockAppsSendingPersonallyIdentifiableInfo(false)
        .blockAppsSendingUnencryptedUserCredentials(false)
        .blockAppsWithKnownVulnerabilities(false)
        .blockAppsWithMaliciousActivity(false)
        .build());
    
    mobile_malware_protection_policy_resource = zia.MobileMalwareProtectionPolicy("mobileMalwareProtectionPolicyResource",
        block_apps_communicating_with_ad_websites=False,
        block_apps_communicating_with_remote_unknown_servers=False,
        block_apps_sending_device_identifier=False,
        block_apps_sending_location_info=False,
        block_apps_sending_personally_identifiable_info=False,
        block_apps_sending_unencrypted_user_credentials=False,
        block_apps_with_known_vulnerabilities=False,
        block_apps_with_malicious_activity=False)
    
    const mobileMalwareProtectionPolicyResource = new zia.MobileMalwareProtectionPolicy("mobileMalwareProtectionPolicyResource", {
        blockAppsCommunicatingWithAdWebsites: false,
        blockAppsCommunicatingWithRemoteUnknownServers: false,
        blockAppsSendingDeviceIdentifier: false,
        blockAppsSendingLocationInfo: false,
        blockAppsSendingPersonallyIdentifiableInfo: false,
        blockAppsSendingUnencryptedUserCredentials: false,
        blockAppsWithKnownVulnerabilities: false,
        blockAppsWithMaliciousActivity: false,
    });
    
    type: zia:MobileMalwareProtectionPolicy
    properties:
        blockAppsCommunicatingWithAdWebsites: false
        blockAppsCommunicatingWithRemoteUnknownServers: false
        blockAppsSendingDeviceIdentifier: false
        blockAppsSendingLocationInfo: false
        blockAppsSendingPersonallyIdentifiableInfo: false
        blockAppsSendingUnencryptedUserCredentials: false
        blockAppsWithKnownVulnerabilities: false
        blockAppsWithMaliciousActivity: false
    

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

    BlockAppsCommunicatingWithAdWebsites bool
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    BlockAppsCommunicatingWithRemoteUnknownServers bool
    BlockAppsSendingDeviceIdentifier bool
    Blocks an application from communicating with known advertisement websites
    BlockAppsSendingLocationInfo bool
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    BlockAppsSendingPersonallyIdentifiableInfo bool
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    BlockAppsSendingUnencryptedUserCredentials bool
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    BlockAppsWithKnownVulnerabilities bool
    Blocks an application from leaking a user's credentials in an unencrypted format
    BlockAppsWithMaliciousActivity bool
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols
    BlockAppsCommunicatingWithAdWebsites bool
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    BlockAppsCommunicatingWithRemoteUnknownServers bool
    BlockAppsSendingDeviceIdentifier bool
    Blocks an application from communicating with known advertisement websites
    BlockAppsSendingLocationInfo bool
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    BlockAppsSendingPersonallyIdentifiableInfo bool
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    BlockAppsSendingUnencryptedUserCredentials bool
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    BlockAppsWithKnownVulnerabilities bool
    Blocks an application from leaking a user's credentials in an unencrypted format
    BlockAppsWithMaliciousActivity bool
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols
    blockAppsCommunicatingWithAdWebsites Boolean
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    blockAppsCommunicatingWithRemoteUnknownServers Boolean
    blockAppsSendingDeviceIdentifier Boolean
    Blocks an application from communicating with known advertisement websites
    blockAppsSendingLocationInfo Boolean
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingPersonallyIdentifiableInfo Boolean
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingUnencryptedUserCredentials Boolean
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    blockAppsWithKnownVulnerabilities Boolean
    Blocks an application from leaking a user's credentials in an unencrypted format
    blockAppsWithMaliciousActivity Boolean
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols
    blockAppsCommunicatingWithAdWebsites boolean
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    blockAppsCommunicatingWithRemoteUnknownServers boolean
    blockAppsSendingDeviceIdentifier boolean
    Blocks an application from communicating with known advertisement websites
    blockAppsSendingLocationInfo boolean
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingPersonallyIdentifiableInfo boolean
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingUnencryptedUserCredentials boolean
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    blockAppsWithKnownVulnerabilities boolean
    Blocks an application from leaking a user's credentials in an unencrypted format
    blockAppsWithMaliciousActivity boolean
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols
    block_apps_communicating_with_ad_websites bool
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    block_apps_communicating_with_remote_unknown_servers bool
    block_apps_sending_device_identifier bool
    Blocks an application from communicating with known advertisement websites
    block_apps_sending_location_info bool
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    block_apps_sending_personally_identifiable_info bool
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    block_apps_sending_unencrypted_user_credentials bool
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    block_apps_with_known_vulnerabilities bool
    Blocks an application from leaking a user's credentials in an unencrypted format
    block_apps_with_malicious_activity bool
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols
    blockAppsCommunicatingWithAdWebsites Boolean
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    blockAppsCommunicatingWithRemoteUnknownServers Boolean
    blockAppsSendingDeviceIdentifier Boolean
    Blocks an application from communicating with known advertisement websites
    blockAppsSendingLocationInfo Boolean
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingPersonallyIdentifiableInfo Boolean
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingUnencryptedUserCredentials Boolean
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    blockAppsWithKnownVulnerabilities Boolean
    Blocks an application from leaking a user's credentials in an unencrypted format
    blockAppsWithMaliciousActivity Boolean
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MobileMalwareProtectionPolicy Resource

    Get an existing MobileMalwareProtectionPolicy 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?: MobileMalwareProtectionPolicyState, opts?: CustomResourceOptions): MobileMalwareProtectionPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            block_apps_communicating_with_ad_websites: Optional[bool] = None,
            block_apps_communicating_with_remote_unknown_servers: Optional[bool] = None,
            block_apps_sending_device_identifier: Optional[bool] = None,
            block_apps_sending_location_info: Optional[bool] = None,
            block_apps_sending_personally_identifiable_info: Optional[bool] = None,
            block_apps_sending_unencrypted_user_credentials: Optional[bool] = None,
            block_apps_with_known_vulnerabilities: Optional[bool] = None,
            block_apps_with_malicious_activity: Optional[bool] = None) -> MobileMalwareProtectionPolicy
    func GetMobileMalwareProtectionPolicy(ctx *Context, name string, id IDInput, state *MobileMalwareProtectionPolicyState, opts ...ResourceOption) (*MobileMalwareProtectionPolicy, error)
    public static MobileMalwareProtectionPolicy Get(string name, Input<string> id, MobileMalwareProtectionPolicyState? state, CustomResourceOptions? opts = null)
    public static MobileMalwareProtectionPolicy get(String name, Output<String> id, MobileMalwareProtectionPolicyState state, CustomResourceOptions options)
    resources:  _:    type: zia:MobileMalwareProtectionPolicy    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:
    BlockAppsCommunicatingWithAdWebsites bool
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    BlockAppsCommunicatingWithRemoteUnknownServers bool
    BlockAppsSendingDeviceIdentifier bool
    Blocks an application from communicating with known advertisement websites
    BlockAppsSendingLocationInfo bool
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    BlockAppsSendingPersonallyIdentifiableInfo bool
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    BlockAppsSendingUnencryptedUserCredentials bool
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    BlockAppsWithKnownVulnerabilities bool
    Blocks an application from leaking a user's credentials in an unencrypted format
    BlockAppsWithMaliciousActivity bool
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols
    BlockAppsCommunicatingWithAdWebsites bool
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    BlockAppsCommunicatingWithRemoteUnknownServers bool
    BlockAppsSendingDeviceIdentifier bool
    Blocks an application from communicating with known advertisement websites
    BlockAppsSendingLocationInfo bool
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    BlockAppsSendingPersonallyIdentifiableInfo bool
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    BlockAppsSendingUnencryptedUserCredentials bool
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    BlockAppsWithKnownVulnerabilities bool
    Blocks an application from leaking a user's credentials in an unencrypted format
    BlockAppsWithMaliciousActivity bool
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols
    blockAppsCommunicatingWithAdWebsites Boolean
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    blockAppsCommunicatingWithRemoteUnknownServers Boolean
    blockAppsSendingDeviceIdentifier Boolean
    Blocks an application from communicating with known advertisement websites
    blockAppsSendingLocationInfo Boolean
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingPersonallyIdentifiableInfo Boolean
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingUnencryptedUserCredentials Boolean
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    blockAppsWithKnownVulnerabilities Boolean
    Blocks an application from leaking a user's credentials in an unencrypted format
    blockAppsWithMaliciousActivity Boolean
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols
    blockAppsCommunicatingWithAdWebsites boolean
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    blockAppsCommunicatingWithRemoteUnknownServers boolean
    blockAppsSendingDeviceIdentifier boolean
    Blocks an application from communicating with known advertisement websites
    blockAppsSendingLocationInfo boolean
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingPersonallyIdentifiableInfo boolean
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingUnencryptedUserCredentials boolean
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    blockAppsWithKnownVulnerabilities boolean
    Blocks an application from leaking a user's credentials in an unencrypted format
    blockAppsWithMaliciousActivity boolean
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols
    block_apps_communicating_with_ad_websites bool
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    block_apps_communicating_with_remote_unknown_servers bool
    block_apps_sending_device_identifier bool
    Blocks an application from communicating with known advertisement websites
    block_apps_sending_location_info bool
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    block_apps_sending_personally_identifiable_info bool
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    block_apps_sending_unencrypted_user_credentials bool
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    block_apps_with_known_vulnerabilities bool
    Blocks an application from leaking a user's credentials in an unencrypted format
    block_apps_with_malicious_activity bool
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols
    blockAppsCommunicatingWithAdWebsites Boolean
    Blocks an application from communicating with unknown servers (i.e., servers not normally or historically associated with the application)
    blockAppsCommunicatingWithRemoteUnknownServers Boolean
    blockAppsSendingDeviceIdentifier Boolean
    Blocks an application from communicating with known advertisement websites
    blockAppsSendingLocationInfo Boolean
    Blocks an application from leaking a user's personally identifiable information (PII) via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingPersonallyIdentifiableInfo Boolean
    Blocks an application from leaking device identifiers via communication in an unencrypted format or for an unknown purpose
    blockAppsSendingUnencryptedUserCredentials Boolean
    Blocks an application from leaking device location details via communication in an unencrypted format or for an unknown purpose
    blockAppsWithKnownVulnerabilities Boolean
    Blocks an application from leaking a user's credentials in an unencrypted format
    blockAppsWithMaliciousActivity Boolean
    Blocks applications that contain vulnerabilities or that use insecure features, modules, or protocols

    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_mobile_malware_protection_policy can be imported by using mobile_settings as the import ID.

    For example:

    $ pulumi import zia:index/mobileMalwareProtectionPolicy:MobileMalwareProtectionPolicy this "mobile_settings"
    

    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.1.1 published on Tuesday, Jun 24, 2025 by Zscaler