1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. MobileMalwareProtectionPolicy
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.MobileMalwareProtectionPolicy resource manages mobile malware protection policy settings in the Zscaler Internet Access (ZIA) cloud. This is a singleton resource (one per tenant) that controls which categories of mobile threats are blocked. Deleting the Pulumi resource does not remove the underlying settings.

    Example Usage

    Basic Mobile Malware Protection Policy

    Example coming soon!

    Example coming soon!

    Example coming soon!

    import * as zia from "@bdzscaler/pulumi-zia";
    
    const example = new zia.MobileMalwareProtectionPolicy("example", {
        blockAppsWithMaliciousActivity: true,
        blockAppsWithKnownVulnerabilities: true,
        blockAppsSendingUnencryptedUserCredentials: true,
        blockAppsSendingLocationInfo: false,
        blockAppsSendingPersonallyIdentifiableInfo: false,
        blockAppsSendingDeviceIdentifier: false,
        blockAppsCommunicatingWithAdWebsites: false,
        blockAppsCommunicatingWithRemoteUnknownServers: false,
    });
    
    import zscaler_pulumi_zia as zia
    
    example = zia.MobileMalwareProtectionPolicy("example",
        block_apps_with_malicious_activity=True,
        block_apps_with_known_vulnerabilities=True,
        block_apps_sending_unencrypted_user_credentials=True,
        block_apps_sending_location_info=False,
        block_apps_sending_personally_identifiable_info=False,
        block_apps_sending_device_identifier=False,
        block_apps_communicating_with_ad_websites=False,
        block_apps_communicating_with_remote_unknown_servers=False,
    )
    
    resources:
      example:
        type: zia:MobileMalwareProtectionPolicy
        properties:
          blockAppsWithMaliciousActivity: true
          blockAppsWithKnownVulnerabilities: true
          blockAppsSendingUnencryptedUserCredentials: true
          blockAppsSendingLocationInfo: false
          blockAppsSendingPersonallyIdentifiableInfo: false
          blockAppsSendingDeviceIdentifier: false
          blockAppsCommunicatingWithAdWebsites: false
          blockAppsCommunicatingWithRemoteUnknownServers: false
    

    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
    Block apps communicating with ad websites.
    BlockAppsCommunicatingWithRemoteUnknownServers bool
    Block apps communicating with remote unknown servers.
    BlockAppsSendingDeviceIdentifier bool
    Block apps sending device identifiers.
    BlockAppsSendingLocationInfo bool
    Block apps sending location information.
    BlockAppsSendingPersonallyIdentifiableInfo bool
    Block apps sending personally identifiable information.
    BlockAppsSendingUnencryptedUserCredentials bool
    Block apps sending unencrypted user credentials.
    BlockAppsWithKnownVulnerabilities bool
    Block apps with known vulnerabilities.
    BlockAppsWithMaliciousActivity bool
    Block apps with malicious activity.
    BlockAppsCommunicatingWithAdWebsites bool
    Block apps communicating with ad websites.
    BlockAppsCommunicatingWithRemoteUnknownServers bool
    Block apps communicating with remote unknown servers.
    BlockAppsSendingDeviceIdentifier bool
    Block apps sending device identifiers.
    BlockAppsSendingLocationInfo bool
    Block apps sending location information.
    BlockAppsSendingPersonallyIdentifiableInfo bool
    Block apps sending personally identifiable information.
    BlockAppsSendingUnencryptedUserCredentials bool
    Block apps sending unencrypted user credentials.
    BlockAppsWithKnownVulnerabilities bool
    Block apps with known vulnerabilities.
    BlockAppsWithMaliciousActivity bool
    Block apps with malicious activity.
    blockAppsCommunicatingWithAdWebsites Boolean
    Block apps communicating with ad websites.
    blockAppsCommunicatingWithRemoteUnknownServers Boolean
    Block apps communicating with remote unknown servers.
    blockAppsSendingDeviceIdentifier Boolean
    Block apps sending device identifiers.
    blockAppsSendingLocationInfo Boolean
    Block apps sending location information.
    blockAppsSendingPersonallyIdentifiableInfo Boolean
    Block apps sending personally identifiable information.
    blockAppsSendingUnencryptedUserCredentials Boolean
    Block apps sending unencrypted user credentials.
    blockAppsWithKnownVulnerabilities Boolean
    Block apps with known vulnerabilities.
    blockAppsWithMaliciousActivity Boolean
    Block apps with malicious activity.
    blockAppsCommunicatingWithAdWebsites boolean
    Block apps communicating with ad websites.
    blockAppsCommunicatingWithRemoteUnknownServers boolean
    Block apps communicating with remote unknown servers.
    blockAppsSendingDeviceIdentifier boolean
    Block apps sending device identifiers.
    blockAppsSendingLocationInfo boolean
    Block apps sending location information.
    blockAppsSendingPersonallyIdentifiableInfo boolean
    Block apps sending personally identifiable information.
    blockAppsSendingUnencryptedUserCredentials boolean
    Block apps sending unencrypted user credentials.
    blockAppsWithKnownVulnerabilities boolean
    Block apps with known vulnerabilities.
    blockAppsWithMaliciousActivity boolean
    Block apps with malicious activity.
    block_apps_communicating_with_ad_websites bool
    Block apps communicating with ad websites.
    block_apps_communicating_with_remote_unknown_servers bool
    Block apps communicating with remote unknown servers.
    block_apps_sending_device_identifier bool
    Block apps sending device identifiers.
    block_apps_sending_location_info bool
    Block apps sending location information.
    block_apps_sending_personally_identifiable_info bool
    Block apps sending personally identifiable information.
    block_apps_sending_unencrypted_user_credentials bool
    Block apps sending unencrypted user credentials.
    block_apps_with_known_vulnerabilities bool
    Block apps with known vulnerabilities.
    block_apps_with_malicious_activity bool
    Block apps with malicious activity.
    blockAppsCommunicatingWithAdWebsites Boolean
    Block apps communicating with ad websites.
    blockAppsCommunicatingWithRemoteUnknownServers Boolean
    Block apps communicating with remote unknown servers.
    blockAppsSendingDeviceIdentifier Boolean
    Block apps sending device identifiers.
    blockAppsSendingLocationInfo Boolean
    Block apps sending location information.
    blockAppsSendingPersonallyIdentifiableInfo Boolean
    Block apps sending personally identifiable information.
    blockAppsSendingUnencryptedUserCredentials Boolean
    Block apps sending unencrypted user credentials.
    blockAppsWithKnownVulnerabilities Boolean
    Block apps with known vulnerabilities.
    blockAppsWithMaliciousActivity Boolean
    Block apps with malicious activity.

    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.

    Import

    This is a singleton resource and import is not supported. The resource is managed by creating it in your Pulumi program.

    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.