published on Friday, Mar 13, 2026 by Zscaler
published on Friday, Mar 13, 2026 by Zscaler
The zia_security_policy_settings resource manages the whitelist and blacklist URL configuration for the ZIA security policy. This is a singleton resource that controls which URLs are always allowed (whitelisted) or always blocked (blacklisted) across the organization.
For more information, see the ZIA Security Policy Settings documentation.
This is a singleton resource. Import is not applicable.
Example Usage
Basic Security Policy Settings
Example coming soon!
Example coming soon!
Example coming soon!
import * as zia from "@bdzscaler/pulumi-zia";
const example = new zia.SecurityPolicySettings("example", {
whitelistUrls: [
"example.com",
"trusted-site.org",
],
blacklistUrls: [
"malicious-site.com",
"phishing-site.net",
],
});
import zscaler_pulumi_zia as zia
example = zia.SecurityPolicySettings("example",
whitelist_urls=[
"example.com",
"trusted-site.org",
],
blacklist_urls=[
"malicious-site.com",
"phishing-site.net",
],
)
resources:
example:
type: zia:SecurityPolicySettings
properties:
whitelistUrls:
- example.com
- trusted-site.org
blacklistUrls:
- malicious-site.com
- phishing-site.net
Create SecurityPolicySettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityPolicySettings(name: string, args?: SecurityPolicySettingsArgs, opts?: CustomResourceOptions);@overload
def SecurityPolicySettings(resource_name: str,
args: Optional[SecurityPolicySettingsArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityPolicySettings(resource_name: str,
opts: Optional[ResourceOptions] = None,
blacklist_urls: Optional[Sequence[str]] = None,
whitelist_urls: Optional[Sequence[str]] = None)func NewSecurityPolicySettings(ctx *Context, name string, args *SecurityPolicySettingsArgs, opts ...ResourceOption) (*SecurityPolicySettings, error)public SecurityPolicySettings(string name, SecurityPolicySettingsArgs? args = null, CustomResourceOptions? opts = null)
public SecurityPolicySettings(String name, SecurityPolicySettingsArgs args)
public SecurityPolicySettings(String name, SecurityPolicySettingsArgs args, CustomResourceOptions options)
type: zia:SecurityPolicySettings
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 SecurityPolicySettingsArgs
- 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 SecurityPolicySettingsArgs
- 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 SecurityPolicySettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityPolicySettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityPolicySettingsArgs
- 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 securityPolicySettingsResource = new Zia.SecurityPolicySettings("securityPolicySettingsResource", new()
{
BlacklistUrls = new[]
{
"string",
},
WhitelistUrls = new[]
{
"string",
},
});
example, err := zia.NewSecurityPolicySettings(ctx, "securityPolicySettingsResource", &zia.SecurityPolicySettingsArgs{
BlacklistUrls: pulumi.StringArray{
pulumi.String("string"),
},
WhitelistUrls: pulumi.StringArray{
pulumi.String("string"),
},
})
var securityPolicySettingsResource = new SecurityPolicySettings("securityPolicySettingsResource", SecurityPolicySettingsArgs.builder()
.blacklistUrls("string")
.whitelistUrls("string")
.build());
security_policy_settings_resource = zia.SecurityPolicySettings("securityPolicySettingsResource",
blacklist_urls=["string"],
whitelist_urls=["string"])
const securityPolicySettingsResource = new zia.SecurityPolicySettings("securityPolicySettingsResource", {
blacklistUrls: ["string"],
whitelistUrls: ["string"],
});
type: zia:SecurityPolicySettings
properties:
blacklistUrls:
- string
whitelistUrls:
- string
SecurityPolicySettings 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 SecurityPolicySettings resource accepts the following input properties:
- Blacklist
Urls List<string> - List of URLs that are always blocked (blacklisted) by the security policy.
- Whitelist
Urls List<string> - List of URLs that are always allowed (whitelisted) by the security policy.
- Blacklist
Urls []string - List of URLs that are always blocked (blacklisted) by the security policy.
- Whitelist
Urls []string - List of URLs that are always allowed (whitelisted) by the security policy.
- blacklist
Urls List<String> - List of URLs that are always blocked (blacklisted) by the security policy.
- whitelist
Urls List<String> - List of URLs that are always allowed (whitelisted) by the security policy.
- blacklist
Urls string[] - List of URLs that are always blocked (blacklisted) by the security policy.
- whitelist
Urls string[] - List of URLs that are always allowed (whitelisted) by the security policy.
- blacklist_
urls Sequence[str] - List of URLs that are always blocked (blacklisted) by the security policy.
- whitelist_
urls Sequence[str] - List of URLs that are always allowed (whitelisted) by the security policy.
- blacklist
Urls List<String> - List of URLs that are always blocked (blacklisted) by the security policy.
- whitelist
Urls List<String> - List of URLs that are always allowed (whitelisted) by the security policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityPolicySettings resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - The internal resource identifier for the security policy settings.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - The internal resource identifier for the security policy settings.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - The internal resource identifier for the security policy settings.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Id string - The internal resource identifier for the security policy settings.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
id str - The internal resource identifier for the security policy settings.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - The internal resource identifier for the security policy settings.
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
published on Friday, Mar 13, 2026 by Zscaler
