zia.URLFilteringRules
Explore with Pulumi AI
The zia_url_filtering_rules resource creates and manages a URL filtering rules within the Zscaler Internet Access cloud.
Example Usage
ALLOW ACTION
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@bdzscaler/pulumi-zia";
const _this = new zia.URLFilteringRules("this", {
action: "ALLOW",
description: "Example",
deviceTrustLevels: [
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
],
enforceTimeValidity: true,
order: 1,
protocols: ["ANY_RULE"],
requestMethods: [
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
],
sizeQuota: 10,
state: "ENABLED",
timeQuota: 15,
urlCategories: ["ANY"],
userAgentTypes: [
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
],
validityEndTime: "Tue, 17 Jun 2025 23:00:00 UTC",
validityStartTime: "Mon, 17 Jun 2024 23:30:00 UTC",
validityTimeZoneId: "US/Pacific",
});
import pulumi
import zscaler_pulumi_zia as zia
this = zia.URLFilteringRules("this",
action="ALLOW",
description="Example",
device_trust_levels=[
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
],
enforce_time_validity=True,
order=1,
protocols=["ANY_RULE"],
request_methods=[
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
],
size_quota=10,
state="ENABLED",
time_quota=15,
url_categories=["ANY"],
user_agent_types=[
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
],
validity_end_time="Tue, 17 Jun 2025 23:00:00 UTC",
validity_start_time="Mon, 17 Jun 2024 23:30:00 UTC",
validity_time_zone_id="US/Pacific")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zia/sdk/go/zia"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zia.NewURLFilteringRules(ctx, "this", &zia.URLFilteringRulesArgs{
Action: pulumi.String("ALLOW"),
Description: pulumi.String("Example"),
DeviceTrustLevels: pulumi.StringArray{
pulumi.String("UNKNOWN_DEVICETRUSTLEVEL"),
pulumi.String("LOW_TRUST"),
pulumi.String("MEDIUM_TRUST"),
pulumi.String("HIGH_TRUST"),
},
EnforceTimeValidity: pulumi.Bool(true),
Order: pulumi.Int(1),
Protocols: pulumi.StringArray{
pulumi.String("ANY_RULE"),
},
RequestMethods: pulumi.StringArray{
pulumi.String("CONNECT"),
pulumi.String("DELETE"),
pulumi.String("GET"),
pulumi.String("HEAD"),
pulumi.String("OPTIONS"),
pulumi.String("OTHER"),
pulumi.String("POST"),
pulumi.String("PUT"),
pulumi.String("TRACE"),
},
SizeQuota: pulumi.Int(10),
State: pulumi.String("ENABLED"),
TimeQuota: pulumi.Int(15),
UrlCategories: pulumi.StringArray{
pulumi.String("ANY"),
},
UserAgentTypes: pulumi.StringArray{
pulumi.String("OPERA"),
pulumi.String("FIREFOX"),
pulumi.String("MSIE"),
pulumi.String("MSEDGE"),
pulumi.String("CHROME"),
pulumi.String("SAFARI"),
pulumi.String("MSCHREDGE"),
},
ValidityEndTime: pulumi.String("Tue, 17 Jun 2025 23:00:00 UTC"),
ValidityStartTime: pulumi.String("Mon, 17 Jun 2024 23:30:00 UTC"),
ValidityTimeZoneId: pulumi.String("US/Pacific"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zia = zscaler.PulumiPackage.Zia;
return await Deployment.RunAsync(() =>
{
var @this = new Zia.URLFilteringRules("this", new()
{
Action = "ALLOW",
Description = "Example",
DeviceTrustLevels = new[]
{
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
},
EnforceTimeValidity = true,
Order = 1,
Protocols = new[]
{
"ANY_RULE",
},
RequestMethods = new[]
{
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
},
SizeQuota = 10,
State = "ENABLED",
TimeQuota = 15,
UrlCategories = new[]
{
"ANY",
},
UserAgentTypes = new[]
{
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
},
ValidityEndTime = "Tue, 17 Jun 2025 23:00:00 UTC",
ValidityStartTime = "Mon, 17 Jun 2024 23:30:00 UTC",
ValidityTimeZoneId = "US/Pacific",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.URLFilteringRules;
import com.pulumi.zia.URLFilteringRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var this_ = new URLFilteringRules("this", URLFilteringRulesArgs.builder()
.action("ALLOW")
.description("Example")
.deviceTrustLevels(
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST")
.enforceTimeValidity(true)
.order(1)
.protocols("ANY_RULE")
.requestMethods(
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE")
.sizeQuota(10)
.state("ENABLED")
.timeQuota(15)
.urlCategories("ANY")
.userAgentTypes(
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE")
.validityEndTime("Tue, 17 Jun 2025 23:00:00 UTC")
.validityStartTime("Mon, 17 Jun 2024 23:30:00 UTC")
.validityTimeZoneId("US/Pacific")
.build());
}
}
resources:
this:
type: zia:URLFilteringRules
properties:
action: ALLOW
description: Example
deviceTrustLevels:
- UNKNOWN_DEVICETRUSTLEVEL
- LOW_TRUST
- MEDIUM_TRUST
- HIGH_TRUST
enforceTimeValidity: true
order: 1
protocols:
- ANY_RULE
requestMethods:
- CONNECT
- DELETE
- GET
- HEAD
- OPTIONS
- OTHER
- POST
- PUT
- TRACE
sizeQuota: 10
state: ENABLED
timeQuota: 15
urlCategories:
- ANY
userAgentTypes:
- OPERA
- FIREFOX
- MSIE
- MSEDGE
- CHROME
- SAFARI
- MSCHREDGE
validityEndTime: Tue, 17 Jun 2025 23:00:00 UTC
validityStartTime: Mon, 17 Jun 2024 23:30:00 UTC
validityTimeZoneId: US/Pacific
BLOCK ACTION
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@bdzscaler/pulumi-zia";
const _this = new zia.URLFilteringRules("this", {
action: "BLOCK",
blockOverride: true,
description: "Example",
deviceTrustLevels: [
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
],
enforceTimeValidity: true,
order: 1,
overrideGroups: {
ids: [76662385],
},
overrideUsers: {
ids: [45513075],
},
protocols: ["ANY_RULE"],
requestMethods: [
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
],
sizeQuota: 10,
state: "ENABLED",
timeQuota: 15,
urlCategories: ["ANY"],
userAgentTypes: [
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
],
validityEndTime: "Tue, 17 Jun 2025 23:00:00 UTC",
validityStartTime: "Mon, 17 Jun 2024 23:30:00 UTC",
validityTimeZoneId: "US/Pacific",
});
import pulumi
import zscaler_pulumi_zia as zia
this = zia.URLFilteringRules("this",
action="BLOCK",
block_override=True,
description="Example",
device_trust_levels=[
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
],
enforce_time_validity=True,
order=1,
override_groups=zia.URLFilteringRulesOverrideGroupsArgs(
ids=[76662385],
),
override_users=zia.URLFilteringRulesOverrideUsersArgs(
ids=[45513075],
),
protocols=["ANY_RULE"],
request_methods=[
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
],
size_quota=10,
state="ENABLED",
time_quota=15,
url_categories=["ANY"],
user_agent_types=[
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
],
validity_end_time="Tue, 17 Jun 2025 23:00:00 UTC",
validity_start_time="Mon, 17 Jun 2024 23:30:00 UTC",
validity_time_zone_id="US/Pacific")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zia/sdk/go/zia"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zia.NewURLFilteringRules(ctx, "this", &zia.URLFilteringRulesArgs{
Action: pulumi.String("BLOCK"),
BlockOverride: pulumi.Bool(true),
Description: pulumi.String("Example"),
DeviceTrustLevels: pulumi.StringArray{
pulumi.String("UNKNOWN_DEVICETRUSTLEVEL"),
pulumi.String("LOW_TRUST"),
pulumi.String("MEDIUM_TRUST"),
pulumi.String("HIGH_TRUST"),
},
EnforceTimeValidity: pulumi.Bool(true),
Order: pulumi.Int(1),
OverrideGroups: &zia.URLFilteringRulesOverrideGroupsArgs{
Ids: pulumi.IntArray{
pulumi.Int(76662385),
},
},
OverrideUsers: &zia.URLFilteringRulesOverrideUsersArgs{
Ids: pulumi.IntArray{
pulumi.Int(45513075),
},
},
Protocols: pulumi.StringArray{
pulumi.String("ANY_RULE"),
},
RequestMethods: pulumi.StringArray{
pulumi.String("CONNECT"),
pulumi.String("DELETE"),
pulumi.String("GET"),
pulumi.String("HEAD"),
pulumi.String("OPTIONS"),
pulumi.String("OTHER"),
pulumi.String("POST"),
pulumi.String("PUT"),
pulumi.String("TRACE"),
},
SizeQuota: pulumi.Int(10),
State: pulumi.String("ENABLED"),
TimeQuota: pulumi.Int(15),
UrlCategories: pulumi.StringArray{
pulumi.String("ANY"),
},
UserAgentTypes: pulumi.StringArray{
pulumi.String("OPERA"),
pulumi.String("FIREFOX"),
pulumi.String("MSIE"),
pulumi.String("MSEDGE"),
pulumi.String("CHROME"),
pulumi.String("SAFARI"),
pulumi.String("MSCHREDGE"),
},
ValidityEndTime: pulumi.String("Tue, 17 Jun 2025 23:00:00 UTC"),
ValidityStartTime: pulumi.String("Mon, 17 Jun 2024 23:30:00 UTC"),
ValidityTimeZoneId: pulumi.String("US/Pacific"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zia = zscaler.PulumiPackage.Zia;
return await Deployment.RunAsync(() =>
{
var @this = new Zia.URLFilteringRules("this", new()
{
Action = "BLOCK",
BlockOverride = true,
Description = "Example",
DeviceTrustLevels = new[]
{
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
},
EnforceTimeValidity = true,
Order = 1,
OverrideGroups = new Zia.Inputs.URLFilteringRulesOverrideGroupsArgs
{
Ids = new[]
{
76662385,
},
},
OverrideUsers = new Zia.Inputs.URLFilteringRulesOverrideUsersArgs
{
Ids = new[]
{
45513075,
},
},
Protocols = new[]
{
"ANY_RULE",
},
RequestMethods = new[]
{
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
},
SizeQuota = 10,
State = "ENABLED",
TimeQuota = 15,
UrlCategories = new[]
{
"ANY",
},
UserAgentTypes = new[]
{
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
},
ValidityEndTime = "Tue, 17 Jun 2025 23:00:00 UTC",
ValidityStartTime = "Mon, 17 Jun 2024 23:30:00 UTC",
ValidityTimeZoneId = "US/Pacific",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.URLFilteringRules;
import com.pulumi.zia.URLFilteringRulesArgs;
import com.pulumi.zia.inputs.URLFilteringRulesOverrideGroupsArgs;
import com.pulumi.zia.inputs.URLFilteringRulesOverrideUsersArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var this_ = new URLFilteringRules("this", URLFilteringRulesArgs.builder()
.action("BLOCK")
.blockOverride(true)
.description("Example")
.deviceTrustLevels(
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST")
.enforceTimeValidity(true)
.order(1)
.overrideGroups(URLFilteringRulesOverrideGroupsArgs.builder()
.ids(76662385)
.build())
.overrideUsers(URLFilteringRulesOverrideUsersArgs.builder()
.ids(45513075)
.build())
.protocols("ANY_RULE")
.requestMethods(
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE")
.sizeQuota(10)
.state("ENABLED")
.timeQuota(15)
.urlCategories("ANY")
.userAgentTypes(
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE")
.validityEndTime("Tue, 17 Jun 2025 23:00:00 UTC")
.validityStartTime("Mon, 17 Jun 2024 23:30:00 UTC")
.validityTimeZoneId("US/Pacific")
.build());
}
}
resources:
this:
type: zia:URLFilteringRules
properties:
action: BLOCK
blockOverride: true
description: Example
deviceTrustLevels:
- UNKNOWN_DEVICETRUSTLEVEL
- LOW_TRUST
- MEDIUM_TRUST
- HIGH_TRUST
enforceTimeValidity: true
order: 1
overrideGroups:
ids:
- 7.6662385e+07
overrideUsers:
ids:
- 4.5513075e+07
protocols:
- ANY_RULE
requestMethods:
- CONNECT
- DELETE
- GET
- HEAD
- OPTIONS
- OTHER
- POST
- PUT
- TRACE
sizeQuota: 10
state: ENABLED
timeQuota: 15
urlCategories:
- ANY
userAgentTypes:
- OPERA
- FIREFOX
- MSIE
- MSEDGE
- CHROME
- SAFARI
- MSCHREDGE
validityEndTime: Tue, 17 Jun 2025 23:00:00 UTC
validityStartTime: Mon, 17 Jun 2024 23:30:00 UTC
validityTimeZoneId: US/Pacific
CAUTION ACTION
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@bdzscaler/pulumi-zia";
const _this = new zia.URLFilteringRules("this", {
action: "CAUTION",
description: "Example",
deviceTrustLevels: [
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
],
endUserNotificationUrl: "https://caution.acme.com",
enforceTimeValidity: true,
order: 1,
protocols: ["ANY_RULE"],
requestMethods: [
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
],
sizeQuota: 10,
state: "ENABLED",
timeQuota: 15,
urlCategories: ["ANY"],
userAgentTypes: [
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
],
validityEndTime: "Tue, 17 Jun 2025 23:00:00 UTC",
validityStartTime: "Mon, 17 Jun 2024 23:30:00 UTC",
validityTimeZoneId: "US/Pacific",
});
import pulumi
import zscaler_pulumi_zia as zia
this = zia.URLFilteringRules("this",
action="CAUTION",
description="Example",
device_trust_levels=[
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
],
end_user_notification_url="https://caution.acme.com",
enforce_time_validity=True,
order=1,
protocols=["ANY_RULE"],
request_methods=[
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
],
size_quota=10,
state="ENABLED",
time_quota=15,
url_categories=["ANY"],
user_agent_types=[
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
],
validity_end_time="Tue, 17 Jun 2025 23:00:00 UTC",
validity_start_time="Mon, 17 Jun 2024 23:30:00 UTC",
validity_time_zone_id="US/Pacific")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zia/sdk/go/zia"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zia.NewURLFilteringRules(ctx, "this", &zia.URLFilteringRulesArgs{
Action: pulumi.String("CAUTION"),
Description: pulumi.String("Example"),
DeviceTrustLevels: pulumi.StringArray{
pulumi.String("UNKNOWN_DEVICETRUSTLEVEL"),
pulumi.String("LOW_TRUST"),
pulumi.String("MEDIUM_TRUST"),
pulumi.String("HIGH_TRUST"),
},
EndUserNotificationUrl: pulumi.String("https://caution.acme.com"),
EnforceTimeValidity: pulumi.Bool(true),
Order: pulumi.Int(1),
Protocols: pulumi.StringArray{
pulumi.String("ANY_RULE"),
},
RequestMethods: pulumi.StringArray{
pulumi.String("CONNECT"),
pulumi.String("DELETE"),
pulumi.String("GET"),
pulumi.String("HEAD"),
pulumi.String("OPTIONS"),
pulumi.String("OTHER"),
pulumi.String("POST"),
pulumi.String("PUT"),
pulumi.String("TRACE"),
},
SizeQuota: pulumi.Int(10),
State: pulumi.String("ENABLED"),
TimeQuota: pulumi.Int(15),
UrlCategories: pulumi.StringArray{
pulumi.String("ANY"),
},
UserAgentTypes: pulumi.StringArray{
pulumi.String("OPERA"),
pulumi.String("FIREFOX"),
pulumi.String("MSIE"),
pulumi.String("MSEDGE"),
pulumi.String("CHROME"),
pulumi.String("SAFARI"),
pulumi.String("MSCHREDGE"),
},
ValidityEndTime: pulumi.String("Tue, 17 Jun 2025 23:00:00 UTC"),
ValidityStartTime: pulumi.String("Mon, 17 Jun 2024 23:30:00 UTC"),
ValidityTimeZoneId: pulumi.String("US/Pacific"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zia = zscaler.PulumiPackage.Zia;
return await Deployment.RunAsync(() =>
{
var @this = new Zia.URLFilteringRules("this", new()
{
Action = "CAUTION",
Description = "Example",
DeviceTrustLevels = new[]
{
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
},
EndUserNotificationUrl = "https://caution.acme.com",
EnforceTimeValidity = true,
Order = 1,
Protocols = new[]
{
"ANY_RULE",
},
RequestMethods = new[]
{
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
},
SizeQuota = 10,
State = "ENABLED",
TimeQuota = 15,
UrlCategories = new[]
{
"ANY",
},
UserAgentTypes = new[]
{
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
},
ValidityEndTime = "Tue, 17 Jun 2025 23:00:00 UTC",
ValidityStartTime = "Mon, 17 Jun 2024 23:30:00 UTC",
ValidityTimeZoneId = "US/Pacific",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.URLFilteringRules;
import com.pulumi.zia.URLFilteringRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var this_ = new URLFilteringRules("this", URLFilteringRulesArgs.builder()
.action("CAUTION")
.description("Example")
.deviceTrustLevels(
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST")
.endUserNotificationUrl("https://caution.acme.com")
.enforceTimeValidity(true)
.order(1)
.protocols("ANY_RULE")
.requestMethods(
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE")
.sizeQuota(10)
.state("ENABLED")
.timeQuota(15)
.urlCategories("ANY")
.userAgentTypes(
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE")
.validityEndTime("Tue, 17 Jun 2025 23:00:00 UTC")
.validityStartTime("Mon, 17 Jun 2024 23:30:00 UTC")
.validityTimeZoneId("US/Pacific")
.build());
}
}
resources:
this:
type: zia:URLFilteringRules
properties:
action: CAUTION
description: Example
deviceTrustLevels:
- UNKNOWN_DEVICETRUSTLEVEL
- LOW_TRUST
- MEDIUM_TRUST
- HIGH_TRUST
endUserNotificationUrl: https://caution.acme.com
enforceTimeValidity: true
order: 1
protocols:
- ANY_RULE
requestMethods:
- CONNECT
- DELETE
- GET
- HEAD
- OPTIONS
- OTHER
- POST
- PUT
- TRACE
sizeQuota: 10
state: ENABLED
timeQuota: 15
urlCategories:
- ANY
userAgentTypes:
- OPERA
- FIREFOX
- MSIE
- MSEDGE
- CHROME
- SAFARI
- MSCHREDGE
validityEndTime: Tue, 17 Jun 2025 23:00:00 UTC
validityStartTime: Mon, 17 Jun 2024 23:30:00 UTC
validityTimeZoneId: US/Pacific
ISOLATE ACTION
⚠️ WARNING 1:: Creating a URL Filtering rule with the action of ISOLATE
requires the Cloud Browser Isolation subscription. To learn more, contact Zscaler Support or your local account team.
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@bdzscaler/pulumi-zia";
import * as zia from "@pulumi/zia";
const thisCbiProfile = zia.getCbiProfile({
name: "BD_SA_Profile1_ZIA",
});
const thisURLFilteringRules = new zia.URLFilteringRules("thisURLFilteringRules", {
description: "Example",
state: "ENABLED",
action: "ISOLATE",
order: 1,
enforceTimeValidity: true,
validityStartTime: "Mon, 17 Jun 2024 23:30:00 UTC",
validityEndTime: "Tue, 17 Jun 2025 23:00:00 UTC",
validityTimeZoneId: "US/Pacific",
timeQuota: 15,
sizeQuota: 10,
urlCategories: ["ANY"],
deviceTrustLevels: [
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
],
protocols: [
"HTTPS_RULE",
"HTTP_RULE",
],
requestMethods: [
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
],
cbiProfiles: [{
id: thisCbiProfile.then(thisCbiProfile => thisCbiProfile.id),
name: thisCbiProfile.then(thisCbiProfile => thisCbiProfile.name),
url: thisCbiProfile.then(thisCbiProfile => thisCbiProfile.url),
}],
userAgentTypes: [
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
],
});
import pulumi
import pulumi_zia as zia
import zscaler_pulumi_zia as zia
this_cbi_profile = zia.get_cbi_profile(name="BD_SA_Profile1_ZIA")
this_url_filtering_rules = zia.URLFilteringRules("thisURLFilteringRules",
description="Example",
state="ENABLED",
action="ISOLATE",
order=1,
enforce_time_validity=True,
validity_start_time="Mon, 17 Jun 2024 23:30:00 UTC",
validity_end_time="Tue, 17 Jun 2025 23:00:00 UTC",
validity_time_zone_id="US/Pacific",
time_quota=15,
size_quota=10,
url_categories=["ANY"],
device_trust_levels=[
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
],
protocols=[
"HTTPS_RULE",
"HTTP_RULE",
],
request_methods=[
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
],
cbi_profiles=[zia.URLFilteringRulesCbiProfileArgs(
id=this_cbi_profile.id,
name=this_cbi_profile.name,
url=this_cbi_profile.url,
)],
user_agent_types=[
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zia/sdk/go/zia"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
thisCbiProfile, err := zia.GetCbiProfile(ctx, &zia.GetCbiProfileArgs{
Name: pulumi.StringRef("BD_SA_Profile1_ZIA"),
}, nil)
if err != nil {
return err
}
_, err = zia.NewURLFilteringRules(ctx, "thisURLFilteringRules", &zia.URLFilteringRulesArgs{
Description: pulumi.String("Example"),
State: pulumi.String("ENABLED"),
Action: pulumi.String("ISOLATE"),
Order: pulumi.Int(1),
EnforceTimeValidity: pulumi.Bool(true),
ValidityStartTime: pulumi.String("Mon, 17 Jun 2024 23:30:00 UTC"),
ValidityEndTime: pulumi.String("Tue, 17 Jun 2025 23:00:00 UTC"),
ValidityTimeZoneId: pulumi.String("US/Pacific"),
TimeQuota: pulumi.Int(15),
SizeQuota: pulumi.Int(10),
UrlCategories: pulumi.StringArray{
pulumi.String("ANY"),
},
DeviceTrustLevels: pulumi.StringArray{
pulumi.String("UNKNOWN_DEVICETRUSTLEVEL"),
pulumi.String("LOW_TRUST"),
pulumi.String("MEDIUM_TRUST"),
pulumi.String("HIGH_TRUST"),
},
Protocols: pulumi.StringArray{
pulumi.String("HTTPS_RULE"),
pulumi.String("HTTP_RULE"),
},
RequestMethods: pulumi.StringArray{
pulumi.String("CONNECT"),
pulumi.String("DELETE"),
pulumi.String("GET"),
pulumi.String("HEAD"),
pulumi.String("OPTIONS"),
pulumi.String("OTHER"),
pulumi.String("POST"),
pulumi.String("PUT"),
pulumi.String("TRACE"),
},
CbiProfiles: zia.URLFilteringRulesCbiProfileArray{
&zia.URLFilteringRulesCbiProfileArgs{
Id: pulumi.String(thisCbiProfile.Id),
Name: pulumi.String(thisCbiProfile.Name),
Url: pulumi.String(thisCbiProfile.Url),
},
},
UserAgentTypes: pulumi.StringArray{
pulumi.String("OPERA"),
pulumi.String("FIREFOX"),
pulumi.String("MSIE"),
pulumi.String("MSEDGE"),
pulumi.String("CHROME"),
pulumi.String("SAFARI"),
pulumi.String("MSCHREDGE"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zia = Pulumi.Zia;
using Zia = zscaler.PulumiPackage.Zia;
return await Deployment.RunAsync(() =>
{
var thisCbiProfile = Zia.GetCbiProfile.Invoke(new()
{
Name = "BD_SA_Profile1_ZIA",
});
var thisURLFilteringRules = new Zia.URLFilteringRules("thisURLFilteringRules", new()
{
Description = "Example",
State = "ENABLED",
Action = "ISOLATE",
Order = 1,
EnforceTimeValidity = true,
ValidityStartTime = "Mon, 17 Jun 2024 23:30:00 UTC",
ValidityEndTime = "Tue, 17 Jun 2025 23:00:00 UTC",
ValidityTimeZoneId = "US/Pacific",
TimeQuota = 15,
SizeQuota = 10,
UrlCategories = new[]
{
"ANY",
},
DeviceTrustLevels = new[]
{
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST",
},
Protocols = new[]
{
"HTTPS_RULE",
"HTTP_RULE",
},
RequestMethods = new[]
{
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE",
},
CbiProfiles = new[]
{
new Zia.Inputs.URLFilteringRulesCbiProfileArgs
{
Id = thisCbiProfile.Apply(getCbiProfileResult => getCbiProfileResult.Id),
Name = thisCbiProfile.Apply(getCbiProfileResult => getCbiProfileResult.Name),
Url = thisCbiProfile.Apply(getCbiProfileResult => getCbiProfileResult.Url),
},
},
UserAgentTypes = new[]
{
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.ZiaFunctions;
import com.pulumi.zia.inputs.GetCbiProfileArgs;
import com.pulumi.zia.URLFilteringRules;
import com.pulumi.zia.URLFilteringRulesArgs;
import com.pulumi.zia.inputs.URLFilteringRulesCbiProfileArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var thisCbiProfile = ZiaFunctions.getCbiProfile(GetCbiProfileArgs.builder()
.name("BD_SA_Profile1_ZIA")
.build());
var thisURLFilteringRules = new URLFilteringRules("thisURLFilteringRules", URLFilteringRulesArgs.builder()
.description("Example")
.state("ENABLED")
.action("ISOLATE")
.order(1)
.enforceTimeValidity(true)
.validityStartTime("Mon, 17 Jun 2024 23:30:00 UTC")
.validityEndTime("Tue, 17 Jun 2025 23:00:00 UTC")
.validityTimeZoneId("US/Pacific")
.timeQuota(15)
.sizeQuota(10)
.urlCategories("ANY")
.deviceTrustLevels(
"UNKNOWN_DEVICETRUSTLEVEL",
"LOW_TRUST",
"MEDIUM_TRUST",
"HIGH_TRUST")
.protocols(
"HTTPS_RULE",
"HTTP_RULE")
.requestMethods(
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"OTHER",
"POST",
"PUT",
"TRACE")
.cbiProfiles(URLFilteringRulesCbiProfileArgs.builder()
.id(thisCbiProfile.applyValue(getCbiProfileResult -> getCbiProfileResult.id()))
.name(thisCbiProfile.applyValue(getCbiProfileResult -> getCbiProfileResult.name()))
.url(thisCbiProfile.applyValue(getCbiProfileResult -> getCbiProfileResult.url()))
.build())
.userAgentTypes(
"OPERA",
"FIREFOX",
"MSIE",
"MSEDGE",
"CHROME",
"SAFARI",
"MSCHREDGE")
.build());
}
}
resources:
thisURLFilteringRules:
type: zia:URLFilteringRules
properties:
description: Example
state: ENABLED
action: ISOLATE
order: 1
enforceTimeValidity: true
validityStartTime: Mon, 17 Jun 2024 23:30:00 UTC
validityEndTime: Tue, 17 Jun 2025 23:00:00 UTC
validityTimeZoneId: US/Pacific
timeQuota: 15
sizeQuota: 10
urlCategories:
- ANY
deviceTrustLevels:
- UNKNOWN_DEVICETRUSTLEVEL
- LOW_TRUST
- MEDIUM_TRUST
- HIGH_TRUST
protocols:
- HTTPS_RULE
- HTTP_RULE
requestMethods:
- CONNECT
- DELETE
- GET
- HEAD
- OPTIONS
- OTHER
- POST
- PUT
- TRACE
cbiProfiles:
- id: ${thisCbiProfile.id}
name: ${thisCbiProfile.name}
url: ${thisCbiProfile.url}
userAgentTypes:
- OPERA
- FIREFOX
- MSIE
- MSEDGE
- CHROME
- SAFARI
- MSCHREDGE
variables:
thisCbiProfile:
fn::invoke:
Function: zia:getCbiProfile
Arguments:
name: BD_SA_Profile1_ZIA
Create URLFilteringRules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new URLFilteringRules(name: string, args: URLFilteringRulesArgs, opts?: CustomResourceOptions);
@overload
def URLFilteringRules(resource_name: str,
args: URLFilteringRulesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def URLFilteringRules(resource_name: str,
opts: Optional[ResourceOptions] = None,
protocols: Optional[Sequence[str]] = None,
order: Optional[int] = None,
devices: Optional[URLFilteringRulesDevicesArgs] = None,
ciparule: Optional[bool] = None,
departments: Optional[URLFilteringRulesDepartmentsArgs] = None,
override_groups: Optional[URLFilteringRulesOverrideGroupsArgs] = None,
device_groups: Optional[URLFilteringRulesDeviceGroupsArgs] = None,
device_trust_levels: Optional[Sequence[str]] = None,
override_users: Optional[URLFilteringRulesOverrideUsersArgs] = None,
end_user_notification_url: Optional[str] = None,
block_override: Optional[bool] = None,
groups: Optional[URLFilteringRulesGroupsArgs] = None,
labels: Optional[URLFilteringRulesLabelsArgs] = None,
location_groups: Optional[URLFilteringRulesLocationGroupsArgs] = None,
locations: Optional[URLFilteringRulesLocationsArgs] = None,
name: Optional[str] = None,
action: Optional[str] = None,
description: Optional[str] = None,
cbi_profiles: Optional[Sequence[URLFilteringRulesCbiProfileArgs]] = None,
enforce_time_validity: Optional[bool] = None,
rank: Optional[int] = None,
request_methods: Optional[Sequence[str]] = None,
size_quota: Optional[int] = None,
source_ip_groups: Optional[URLFilteringRulesSourceIpGroupsArgs] = None,
state: Optional[str] = None,
time_quota: Optional[int] = None,
time_windows: Optional[URLFilteringRulesTimeWindowsArgs] = None,
url_categories: Optional[Sequence[str]] = None,
user_agent_types: Optional[Sequence[str]] = None,
user_risk_score_levels: Optional[Sequence[str]] = None,
users: Optional[URLFilteringRulesUsersArgs] = None,
validity_end_time: Optional[str] = None,
validity_start_time: Optional[str] = None,
validity_time_zone_id: Optional[str] = None,
workload_groups: Optional[Sequence[URLFilteringRulesWorkloadGroupArgs]] = None)
func NewURLFilteringRules(ctx *Context, name string, args URLFilteringRulesArgs, opts ...ResourceOption) (*URLFilteringRules, error)
public URLFilteringRules(string name, URLFilteringRulesArgs args, CustomResourceOptions? opts = null)
public URLFilteringRules(String name, URLFilteringRulesArgs args)
public URLFilteringRules(String name, URLFilteringRulesArgs args, CustomResourceOptions options)
type: zia:URLFilteringRules
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 URLFilteringRulesArgs
- 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 URLFilteringRulesArgs
- 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 URLFilteringRulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args URLFilteringRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args URLFilteringRulesArgs
- 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 urlfilteringRulesResource = new Zia.URLFilteringRules("urlfilteringRulesResource", new()
{
Protocols = new[]
{
"string",
},
Order = 0,
Devices = new Zia.Inputs.URLFilteringRulesDevicesArgs
{
Ids = new[]
{
0,
},
},
Ciparule = false,
Departments = new Zia.Inputs.URLFilteringRulesDepartmentsArgs
{
Ids = new[]
{
0,
},
},
OverrideGroups = new Zia.Inputs.URLFilteringRulesOverrideGroupsArgs
{
Ids = new[]
{
0,
},
},
DeviceGroups = new Zia.Inputs.URLFilteringRulesDeviceGroupsArgs
{
Ids = new[]
{
0,
},
},
DeviceTrustLevels = new[]
{
"string",
},
OverrideUsers = new Zia.Inputs.URLFilteringRulesOverrideUsersArgs
{
Ids = new[]
{
0,
},
},
EndUserNotificationUrl = "string",
BlockOverride = false,
Groups = new Zia.Inputs.URLFilteringRulesGroupsArgs
{
Ids = new[]
{
0,
},
},
Labels = new Zia.Inputs.URLFilteringRulesLabelsArgs
{
Ids = new[]
{
0,
},
},
LocationGroups = new Zia.Inputs.URLFilteringRulesLocationGroupsArgs
{
Ids = new[]
{
0,
},
},
Locations = new Zia.Inputs.URLFilteringRulesLocationsArgs
{
Ids = new[]
{
0,
},
},
Name = "string",
Action = "string",
Description = "string",
CbiProfiles = new[]
{
new Zia.Inputs.URLFilteringRulesCbiProfileArgs
{
Id = "string",
Name = "string",
Url = "string",
},
},
EnforceTimeValidity = false,
Rank = 0,
RequestMethods = new[]
{
"string",
},
SizeQuota = 0,
SourceIpGroups = new Zia.Inputs.URLFilteringRulesSourceIpGroupsArgs
{
Ids = new[]
{
0,
},
},
State = "string",
TimeQuota = 0,
TimeWindows = new Zia.Inputs.URLFilteringRulesTimeWindowsArgs
{
Ids = new[]
{
0,
},
},
UrlCategories = new[]
{
"string",
},
UserAgentTypes = new[]
{
"string",
},
UserRiskScoreLevels = new[]
{
"string",
},
Users = new Zia.Inputs.URLFilteringRulesUsersArgs
{
Ids = new[]
{
0,
},
},
ValidityEndTime = "string",
ValidityStartTime = "string",
ValidityTimeZoneId = "string",
WorkloadGroups = new[]
{
new Zia.Inputs.URLFilteringRulesWorkloadGroupArgs
{
Id = 0,
Name = "string",
},
},
});
example, err := zia.NewURLFilteringRules(ctx, "urlfilteringRulesResource", &zia.URLFilteringRulesArgs{
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
Order: pulumi.Int(0),
Devices: &zia.URLFilteringRulesDevicesArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
Ciparule: pulumi.Bool(false),
Departments: &zia.URLFilteringRulesDepartmentsArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
OverrideGroups: &zia.URLFilteringRulesOverrideGroupsArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
DeviceGroups: &zia.URLFilteringRulesDeviceGroupsArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
DeviceTrustLevels: pulumi.StringArray{
pulumi.String("string"),
},
OverrideUsers: &zia.URLFilteringRulesOverrideUsersArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
EndUserNotificationUrl: pulumi.String("string"),
BlockOverride: pulumi.Bool(false),
Groups: &zia.URLFilteringRulesGroupsArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
Labels: &zia.URLFilteringRulesLabelsArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
LocationGroups: &zia.URLFilteringRulesLocationGroupsArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
Locations: &zia.URLFilteringRulesLocationsArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
Name: pulumi.String("string"),
Action: pulumi.String("string"),
Description: pulumi.String("string"),
CbiProfiles: zia.URLFilteringRulesCbiProfileArray{
&zia.URLFilteringRulesCbiProfileArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Url: pulumi.String("string"),
},
},
EnforceTimeValidity: pulumi.Bool(false),
Rank: pulumi.Int(0),
RequestMethods: pulumi.StringArray{
pulumi.String("string"),
},
SizeQuota: pulumi.Int(0),
SourceIpGroups: &zia.URLFilteringRulesSourceIpGroupsArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
State: pulumi.String("string"),
TimeQuota: pulumi.Int(0),
TimeWindows: &zia.URLFilteringRulesTimeWindowsArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
UrlCategories: pulumi.StringArray{
pulumi.String("string"),
},
UserAgentTypes: pulumi.StringArray{
pulumi.String("string"),
},
UserRiskScoreLevels: pulumi.StringArray{
pulumi.String("string"),
},
Users: &zia.URLFilteringRulesUsersArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
ValidityEndTime: pulumi.String("string"),
ValidityStartTime: pulumi.String("string"),
ValidityTimeZoneId: pulumi.String("string"),
WorkloadGroups: zia.URLFilteringRulesWorkloadGroupArray{
&zia.URLFilteringRulesWorkloadGroupArgs{
Id: pulumi.Int(0),
Name: pulumi.String("string"),
},
},
})
var urlfilteringRulesResource = new URLFilteringRules("urlfilteringRulesResource", URLFilteringRulesArgs.builder()
.protocols("string")
.order(0)
.devices(URLFilteringRulesDevicesArgs.builder()
.ids(0)
.build())
.ciparule(false)
.departments(URLFilteringRulesDepartmentsArgs.builder()
.ids(0)
.build())
.overrideGroups(URLFilteringRulesOverrideGroupsArgs.builder()
.ids(0)
.build())
.deviceGroups(URLFilteringRulesDeviceGroupsArgs.builder()
.ids(0)
.build())
.deviceTrustLevels("string")
.overrideUsers(URLFilteringRulesOverrideUsersArgs.builder()
.ids(0)
.build())
.endUserNotificationUrl("string")
.blockOverride(false)
.groups(URLFilteringRulesGroupsArgs.builder()
.ids(0)
.build())
.labels(URLFilteringRulesLabelsArgs.builder()
.ids(0)
.build())
.locationGroups(URLFilteringRulesLocationGroupsArgs.builder()
.ids(0)
.build())
.locations(URLFilteringRulesLocationsArgs.builder()
.ids(0)
.build())
.name("string")
.action("string")
.description("string")
.cbiProfiles(URLFilteringRulesCbiProfileArgs.builder()
.id("string")
.name("string")
.url("string")
.build())
.enforceTimeValidity(false)
.rank(0)
.requestMethods("string")
.sizeQuota(0)
.sourceIpGroups(URLFilteringRulesSourceIpGroupsArgs.builder()
.ids(0)
.build())
.state("string")
.timeQuota(0)
.timeWindows(URLFilteringRulesTimeWindowsArgs.builder()
.ids(0)
.build())
.urlCategories("string")
.userAgentTypes("string")
.userRiskScoreLevels("string")
.users(URLFilteringRulesUsersArgs.builder()
.ids(0)
.build())
.validityEndTime("string")
.validityStartTime("string")
.validityTimeZoneId("string")
.workloadGroups(URLFilteringRulesWorkloadGroupArgs.builder()
.id(0)
.name("string")
.build())
.build());
urlfiltering_rules_resource = zia.URLFilteringRules("urlfilteringRulesResource",
protocols=["string"],
order=0,
devices={
"ids": [0],
},
ciparule=False,
departments={
"ids": [0],
},
override_groups={
"ids": [0],
},
device_groups={
"ids": [0],
},
device_trust_levels=["string"],
override_users={
"ids": [0],
},
end_user_notification_url="string",
block_override=False,
groups={
"ids": [0],
},
labels={
"ids": [0],
},
location_groups={
"ids": [0],
},
locations={
"ids": [0],
},
name="string",
action="string",
description="string",
cbi_profiles=[{
"id": "string",
"name": "string",
"url": "string",
}],
enforce_time_validity=False,
rank=0,
request_methods=["string"],
size_quota=0,
source_ip_groups={
"ids": [0],
},
state="string",
time_quota=0,
time_windows={
"ids": [0],
},
url_categories=["string"],
user_agent_types=["string"],
user_risk_score_levels=["string"],
users={
"ids": [0],
},
validity_end_time="string",
validity_start_time="string",
validity_time_zone_id="string",
workload_groups=[{
"id": 0,
"name": "string",
}])
const urlfilteringRulesResource = new zia.URLFilteringRules("urlfilteringRulesResource", {
protocols: ["string"],
order: 0,
devices: {
ids: [0],
},
ciparule: false,
departments: {
ids: [0],
},
overrideGroups: {
ids: [0],
},
deviceGroups: {
ids: [0],
},
deviceTrustLevels: ["string"],
overrideUsers: {
ids: [0],
},
endUserNotificationUrl: "string",
blockOverride: false,
groups: {
ids: [0],
},
labels: {
ids: [0],
},
locationGroups: {
ids: [0],
},
locations: {
ids: [0],
},
name: "string",
action: "string",
description: "string",
cbiProfiles: [{
id: "string",
name: "string",
url: "string",
}],
enforceTimeValidity: false,
rank: 0,
requestMethods: ["string"],
sizeQuota: 0,
sourceIpGroups: {
ids: [0],
},
state: "string",
timeQuota: 0,
timeWindows: {
ids: [0],
},
urlCategories: ["string"],
userAgentTypes: ["string"],
userRiskScoreLevels: ["string"],
users: {
ids: [0],
},
validityEndTime: "string",
validityStartTime: "string",
validityTimeZoneId: "string",
workloadGroups: [{
id: 0,
name: "string",
}],
});
type: zia:URLFilteringRules
properties:
action: string
blockOverride: false
cbiProfiles:
- id: string
name: string
url: string
ciparule: false
departments:
ids:
- 0
description: string
deviceGroups:
ids:
- 0
deviceTrustLevels:
- string
devices:
ids:
- 0
endUserNotificationUrl: string
enforceTimeValidity: false
groups:
ids:
- 0
labels:
ids:
- 0
locationGroups:
ids:
- 0
locations:
ids:
- 0
name: string
order: 0
overrideGroups:
ids:
- 0
overrideUsers:
ids:
- 0
protocols:
- string
rank: 0
requestMethods:
- string
sizeQuota: 0
sourceIpGroups:
ids:
- 0
state: string
timeQuota: 0
timeWindows:
ids:
- 0
urlCategories:
- string
userAgentTypes:
- string
userRiskScoreLevels:
- string
users:
ids:
- 0
validityEndTime: string
validityStartTime: string
validityTimeZoneId: string
workloadGroups:
- id: 0
name: string
URLFilteringRules 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 URLFilteringRules resource accepts the following input properties:
- Protocols List<string>
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - Action string
- Action taken when traffic matches rule criteria
- Block
Override bool - Cbi
Profiles List<zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Cbi Profile> - Ciparule bool
- If set to true, the CIPA Compliance rule is enabled
- Departments
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Departments - Name-ID pairs of departments for which rule must be applied
- Description string
- Additional information about the URL Filtering rule
- Device
Groups zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Device Groups - This field is applicable for devices that are managed using Zscaler Client Connector.
- Device
Trust List<string>Levels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- Devices
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Devices - Name-ID pairs of devices for which rule must be applied.
- End
User stringNotification Url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- Enforce
Time boolValidity - Enforce a set a validity time period for the URL Filtering rule.
- Groups
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Groups - Name-ID pairs of groups for which rule must be applied
- Labels
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Labels - The URL Filtering rule's label.
- Location
Groups zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Location Groups - Name-ID pairs of the location groups to which the rule must be applied.
- Locations
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Locations - Name-ID pairs of locations for which rule must be applied
- Name string
- Name of the Firewall Filtering policy rule
- Order int
- Order of execution of rule with respect to other URL Filtering rules
- Override
Groups zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Override Groups - Name-ID pairs of groups for which this rule can be overridden.
- Override
Users zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Override Users - Name-ID pairs of users for which this rule can be overridden.
- Rank int
- Admin rank of the Firewall Filtering policy rule
- Request
Methods List<string> - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- Size
Quota int - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- Source
Ip zscaler.Groups Pulumi Package. Zia. Inputs. URLFiltering Rules Source Ip Groups - list of source ip groups
- State string
- Time
Quota int - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- Time
Windows zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Time Windows - Name-ID pairs of time interval during which rule must be enforced.
- Url
Categories List<string> - List of URL categories for which rule must be applied
- User
Agent List<string>Types - Supported User Agent Types
- User
Risk List<string>Score Levels - Users
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Users - Name-ID pairs of users for which rule must be applied
- Validity
End stringTime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- Validity
Start stringTime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- Validity
Time stringZone Id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- Workload
Groups List<zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Workload Group> - The list of preconfigured workload groups to which the policy must be applied
- Protocols []string
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - Action string
- Action taken when traffic matches rule criteria
- Block
Override bool - Cbi
Profiles []URLFilteringRules Cbi Profile Args - Ciparule bool
- If set to true, the CIPA Compliance rule is enabled
- Departments
URLFiltering
Rules Departments Args - Name-ID pairs of departments for which rule must be applied
- Description string
- Additional information about the URL Filtering rule
- Device
Groups URLFilteringRules Device Groups Args - This field is applicable for devices that are managed using Zscaler Client Connector.
- Device
Trust []stringLevels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- Devices
URLFiltering
Rules Devices Args - Name-ID pairs of devices for which rule must be applied.
- End
User stringNotification Url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- Enforce
Time boolValidity - Enforce a set a validity time period for the URL Filtering rule.
- Groups
URLFiltering
Rules Groups Args - Name-ID pairs of groups for which rule must be applied
- Labels
URLFiltering
Rules Labels Args - The URL Filtering rule's label.
- Location
Groups URLFilteringRules Location Groups Args - Name-ID pairs of the location groups to which the rule must be applied.
- Locations
URLFiltering
Rules Locations Args - Name-ID pairs of locations for which rule must be applied
- Name string
- Name of the Firewall Filtering policy rule
- Order int
- Order of execution of rule with respect to other URL Filtering rules
- Override
Groups URLFilteringRules Override Groups Args - Name-ID pairs of groups for which this rule can be overridden.
- Override
Users URLFilteringRules Override Users Args - Name-ID pairs of users for which this rule can be overridden.
- Rank int
- Admin rank of the Firewall Filtering policy rule
- Request
Methods []string - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- Size
Quota int - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- Source
Ip URLFilteringGroups Rules Source Ip Groups Args - list of source ip groups
- State string
- Time
Quota int - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- Time
Windows URLFilteringRules Time Windows Args - Name-ID pairs of time interval during which rule must be enforced.
- Url
Categories []string - List of URL categories for which rule must be applied
- User
Agent []stringTypes - Supported User Agent Types
- User
Risk []stringScore Levels - Users
URLFiltering
Rules Users Args - Name-ID pairs of users for which rule must be applied
- Validity
End stringTime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- Validity
Start stringTime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- Validity
Time stringZone Id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- Workload
Groups []URLFilteringRules Workload Group Args - The list of preconfigured workload groups to which the policy must be applied
- protocols List<String>
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - action String
- Action taken when traffic matches rule criteria
- block
Override Boolean - cbi
Profiles List<URLFilteringRules Cbi Profile> - ciparule Boolean
- If set to true, the CIPA Compliance rule is enabled
- departments
URLFiltering
Rules Departments - Name-ID pairs of departments for which rule must be applied
- description String
- Additional information about the URL Filtering rule
- device
Groups URLFilteringRules Device Groups - This field is applicable for devices that are managed using Zscaler Client Connector.
- device
Trust List<String>Levels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- devices
URLFiltering
Rules Devices - Name-ID pairs of devices for which rule must be applied.
- end
User StringNotification Url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- enforce
Time BooleanValidity - Enforce a set a validity time period for the URL Filtering rule.
- groups
URLFiltering
Rules Groups - Name-ID pairs of groups for which rule must be applied
- labels
URLFiltering
Rules Labels - The URL Filtering rule's label.
- location
Groups URLFilteringRules Location Groups - Name-ID pairs of the location groups to which the rule must be applied.
- locations
URLFiltering
Rules Locations - Name-ID pairs of locations for which rule must be applied
- name String
- Name of the Firewall Filtering policy rule
- order Integer
- Order of execution of rule with respect to other URL Filtering rules
- override
Groups URLFilteringRules Override Groups - Name-ID pairs of groups for which this rule can be overridden.
- override
Users URLFilteringRules Override Users - Name-ID pairs of users for which this rule can be overridden.
- rank Integer
- Admin rank of the Firewall Filtering policy rule
- request
Methods List<String> - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- size
Quota Integer - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- source
Ip URLFilteringGroups Rules Source Ip Groups - list of source ip groups
- state String
- time
Quota Integer - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- time
Windows URLFilteringRules Time Windows - Name-ID pairs of time interval during which rule must be enforced.
- url
Categories List<String> - List of URL categories for which rule must be applied
- user
Agent List<String>Types - Supported User Agent Types
- user
Risk List<String>Score Levels - users
URLFiltering
Rules Users - Name-ID pairs of users for which rule must be applied
- validity
End StringTime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- validity
Start StringTime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- validity
Time StringZone Id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- workload
Groups List<URLFilteringRules Workload Group> - The list of preconfigured workload groups to which the policy must be applied
- protocols string[]
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - action string
- Action taken when traffic matches rule criteria
- block
Override boolean - cbi
Profiles URLFilteringRules Cbi Profile[] - ciparule boolean
- If set to true, the CIPA Compliance rule is enabled
- departments
URLFiltering
Rules Departments - Name-ID pairs of departments for which rule must be applied
- description string
- Additional information about the URL Filtering rule
- device
Groups URLFilteringRules Device Groups - This field is applicable for devices that are managed using Zscaler Client Connector.
- device
Trust string[]Levels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- devices
URLFiltering
Rules Devices - Name-ID pairs of devices for which rule must be applied.
- end
User stringNotification Url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- enforce
Time booleanValidity - Enforce a set a validity time period for the URL Filtering rule.
- groups
URLFiltering
Rules Groups - Name-ID pairs of groups for which rule must be applied
- labels
URLFiltering
Rules Labels - The URL Filtering rule's label.
- location
Groups URLFilteringRules Location Groups - Name-ID pairs of the location groups to which the rule must be applied.
- locations
URLFiltering
Rules Locations - Name-ID pairs of locations for which rule must be applied
- name string
- Name of the Firewall Filtering policy rule
- order number
- Order of execution of rule with respect to other URL Filtering rules
- override
Groups URLFilteringRules Override Groups - Name-ID pairs of groups for which this rule can be overridden.
- override
Users URLFilteringRules Override Users - Name-ID pairs of users for which this rule can be overridden.
- rank number
- Admin rank of the Firewall Filtering policy rule
- request
Methods string[] - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- size
Quota number - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- source
Ip URLFilteringGroups Rules Source Ip Groups - list of source ip groups
- state string
- time
Quota number - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- time
Windows URLFilteringRules Time Windows - Name-ID pairs of time interval during which rule must be enforced.
- url
Categories string[] - List of URL categories for which rule must be applied
- user
Agent string[]Types - Supported User Agent Types
- user
Risk string[]Score Levels - users
URLFiltering
Rules Users - Name-ID pairs of users for which rule must be applied
- validity
End stringTime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- validity
Start stringTime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- validity
Time stringZone Id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- workload
Groups URLFilteringRules Workload Group[] - The list of preconfigured workload groups to which the policy must be applied
- protocols Sequence[str]
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - action str
- Action taken when traffic matches rule criteria
- block_
override bool - cbi_
profiles Sequence[URLFilteringRules Cbi Profile Args] - ciparule bool
- If set to true, the CIPA Compliance rule is enabled
- departments
URLFiltering
Rules Departments Args - Name-ID pairs of departments for which rule must be applied
- description str
- Additional information about the URL Filtering rule
- device_
groups URLFilteringRules Device Groups Args - This field is applicable for devices that are managed using Zscaler Client Connector.
- device_
trust_ Sequence[str]levels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- devices
URLFiltering
Rules Devices Args - Name-ID pairs of devices for which rule must be applied.
- end_
user_ strnotification_ url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- enforce_
time_ boolvalidity - Enforce a set a validity time period for the URL Filtering rule.
- groups
URLFiltering
Rules Groups Args - Name-ID pairs of groups for which rule must be applied
- labels
URLFiltering
Rules Labels Args - The URL Filtering rule's label.
- location_
groups URLFilteringRules Location Groups Args - Name-ID pairs of the location groups to which the rule must be applied.
- locations
URLFiltering
Rules Locations Args - Name-ID pairs of locations for which rule must be applied
- name str
- Name of the Firewall Filtering policy rule
- order int
- Order of execution of rule with respect to other URL Filtering rules
- override_
groups URLFilteringRules Override Groups Args - Name-ID pairs of groups for which this rule can be overridden.
- override_
users URLFilteringRules Override Users Args - Name-ID pairs of users for which this rule can be overridden.
- rank int
- Admin rank of the Firewall Filtering policy rule
- request_
methods Sequence[str] - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- size_
quota int - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- source_
ip_ URLFilteringgroups Rules Source Ip Groups Args - list of source ip groups
- state str
- time_
quota int - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- time_
windows URLFilteringRules Time Windows Args - Name-ID pairs of time interval during which rule must be enforced.
- url_
categories Sequence[str] - List of URL categories for which rule must be applied
- user_
agent_ Sequence[str]types - Supported User Agent Types
- user_
risk_ Sequence[str]score_ levels - users
URLFiltering
Rules Users Args - Name-ID pairs of users for which rule must be applied
- validity_
end_ strtime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- validity_
start_ strtime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- validity_
time_ strzone_ id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- workload_
groups Sequence[URLFilteringRules Workload Group Args] - The list of preconfigured workload groups to which the policy must be applied
- protocols List<String>
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - action String
- Action taken when traffic matches rule criteria
- block
Override Boolean - cbi
Profiles List<Property Map> - ciparule Boolean
- If set to true, the CIPA Compliance rule is enabled
- departments Property Map
- Name-ID pairs of departments for which rule must be applied
- description String
- Additional information about the URL Filtering rule
- device
Groups Property Map - This field is applicable for devices that are managed using Zscaler Client Connector.
- device
Trust List<String>Levels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- devices Property Map
- Name-ID pairs of devices for which rule must be applied.
- end
User StringNotification Url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- enforce
Time BooleanValidity - Enforce a set a validity time period for the URL Filtering rule.
- groups Property Map
- Name-ID pairs of groups for which rule must be applied
- labels Property Map
- The URL Filtering rule's label.
- location
Groups Property Map - Name-ID pairs of the location groups to which the rule must be applied.
- locations Property Map
- Name-ID pairs of locations for which rule must be applied
- name String
- Name of the Firewall Filtering policy rule
- order Number
- Order of execution of rule with respect to other URL Filtering rules
- override
Groups Property Map - Name-ID pairs of groups for which this rule can be overridden.
- override
Users Property Map - Name-ID pairs of users for which this rule can be overridden.
- rank Number
- Admin rank of the Firewall Filtering policy rule
- request
Methods List<String> - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- size
Quota Number - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- source
Ip Property MapGroups - list of source ip groups
- state String
- time
Quota Number - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- time
Windows Property Map - Name-ID pairs of time interval during which rule must be enforced.
- url
Categories List<String> - List of URL categories for which rule must be applied
- user
Agent List<String>Types - Supported User Agent Types
- user
Risk List<String>Score Levels - users Property Map
- Name-ID pairs of users for which rule must be applied
- validity
End StringTime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- validity
Start StringTime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- validity
Time StringZone Id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- workload
Groups List<Property Map> - The list of preconfigured workload groups to which the policy must be applied
Outputs
All input properties are implicitly available as output properties. Additionally, the URLFilteringRules resource produces the following output properties:
Look up Existing URLFilteringRules Resource
Get an existing URLFilteringRules 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?: URLFilteringRulesState, opts?: CustomResourceOptions): URLFilteringRules
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
block_override: Optional[bool] = None,
cbi_profiles: Optional[Sequence[URLFilteringRulesCbiProfileArgs]] = None,
ciparule: Optional[bool] = None,
departments: Optional[URLFilteringRulesDepartmentsArgs] = None,
description: Optional[str] = None,
device_groups: Optional[URLFilteringRulesDeviceGroupsArgs] = None,
device_trust_levels: Optional[Sequence[str]] = None,
devices: Optional[URLFilteringRulesDevicesArgs] = None,
end_user_notification_url: Optional[str] = None,
enforce_time_validity: Optional[bool] = None,
groups: Optional[URLFilteringRulesGroupsArgs] = None,
labels: Optional[URLFilteringRulesLabelsArgs] = None,
location_groups: Optional[URLFilteringRulesLocationGroupsArgs] = None,
locations: Optional[URLFilteringRulesLocationsArgs] = None,
name: Optional[str] = None,
order: Optional[int] = None,
override_groups: Optional[URLFilteringRulesOverrideGroupsArgs] = None,
override_users: Optional[URLFilteringRulesOverrideUsersArgs] = None,
protocols: Optional[Sequence[str]] = None,
rank: Optional[int] = None,
request_methods: Optional[Sequence[str]] = None,
rule_id: Optional[int] = None,
size_quota: Optional[int] = None,
source_ip_groups: Optional[URLFilteringRulesSourceIpGroupsArgs] = None,
state: Optional[str] = None,
time_quota: Optional[int] = None,
time_windows: Optional[URLFilteringRulesTimeWindowsArgs] = None,
url_categories: Optional[Sequence[str]] = None,
user_agent_types: Optional[Sequence[str]] = None,
user_risk_score_levels: Optional[Sequence[str]] = None,
users: Optional[URLFilteringRulesUsersArgs] = None,
validity_end_time: Optional[str] = None,
validity_start_time: Optional[str] = None,
validity_time_zone_id: Optional[str] = None,
workload_groups: Optional[Sequence[URLFilteringRulesWorkloadGroupArgs]] = None) -> URLFilteringRules
func GetURLFilteringRules(ctx *Context, name string, id IDInput, state *URLFilteringRulesState, opts ...ResourceOption) (*URLFilteringRules, error)
public static URLFilteringRules Get(string name, Input<string> id, URLFilteringRulesState? state, CustomResourceOptions? opts = null)
public static URLFilteringRules get(String name, Output<String> id, URLFilteringRulesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
- Action taken when traffic matches rule criteria
- Block
Override bool - Cbi
Profiles List<zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Cbi Profile> - Ciparule bool
- If set to true, the CIPA Compliance rule is enabled
- Departments
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Departments - Name-ID pairs of departments for which rule must be applied
- Description string
- Additional information about the URL Filtering rule
- Device
Groups zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Device Groups - This field is applicable for devices that are managed using Zscaler Client Connector.
- Device
Trust List<string>Levels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- Devices
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Devices - Name-ID pairs of devices for which rule must be applied.
- End
User stringNotification Url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- Enforce
Time boolValidity - Enforce a set a validity time period for the URL Filtering rule.
- Groups
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Groups - Name-ID pairs of groups for which rule must be applied
- Labels
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Labels - The URL Filtering rule's label.
- Location
Groups zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Location Groups - Name-ID pairs of the location groups to which the rule must be applied.
- Locations
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Locations - Name-ID pairs of locations for which rule must be applied
- Name string
- Name of the Firewall Filtering policy rule
- Order int
- Order of execution of rule with respect to other URL Filtering rules
- Override
Groups zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Override Groups - Name-ID pairs of groups for which this rule can be overridden.
- Override
Users zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Override Users - Name-ID pairs of users for which this rule can be overridden.
- Protocols List<string>
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - Rank int
- Admin rank of the Firewall Filtering policy rule
- Request
Methods List<string> - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- Rule
Id int - URL Filtering Rule ID
- Size
Quota int - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- Source
Ip zscaler.Groups Pulumi Package. Zia. Inputs. URLFiltering Rules Source Ip Groups - list of source ip groups
- State string
- Time
Quota int - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- Time
Windows zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Time Windows - Name-ID pairs of time interval during which rule must be enforced.
- Url
Categories List<string> - List of URL categories for which rule must be applied
- User
Agent List<string>Types - Supported User Agent Types
- User
Risk List<string>Score Levels - Users
zscaler.
Pulumi Package. Zia. Inputs. URLFiltering Rules Users - Name-ID pairs of users for which rule must be applied
- Validity
End stringTime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- Validity
Start stringTime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- Validity
Time stringZone Id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- Workload
Groups List<zscaler.Pulumi Package. Zia. Inputs. URLFiltering Rules Workload Group> - The list of preconfigured workload groups to which the policy must be applied
- Action string
- Action taken when traffic matches rule criteria
- Block
Override bool - Cbi
Profiles []URLFilteringRules Cbi Profile Args - Ciparule bool
- If set to true, the CIPA Compliance rule is enabled
- Departments
URLFiltering
Rules Departments Args - Name-ID pairs of departments for which rule must be applied
- Description string
- Additional information about the URL Filtering rule
- Device
Groups URLFilteringRules Device Groups Args - This field is applicable for devices that are managed using Zscaler Client Connector.
- Device
Trust []stringLevels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- Devices
URLFiltering
Rules Devices Args - Name-ID pairs of devices for which rule must be applied.
- End
User stringNotification Url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- Enforce
Time boolValidity - Enforce a set a validity time period for the URL Filtering rule.
- Groups
URLFiltering
Rules Groups Args - Name-ID pairs of groups for which rule must be applied
- Labels
URLFiltering
Rules Labels Args - The URL Filtering rule's label.
- Location
Groups URLFilteringRules Location Groups Args - Name-ID pairs of the location groups to which the rule must be applied.
- Locations
URLFiltering
Rules Locations Args - Name-ID pairs of locations for which rule must be applied
- Name string
- Name of the Firewall Filtering policy rule
- Order int
- Order of execution of rule with respect to other URL Filtering rules
- Override
Groups URLFilteringRules Override Groups Args - Name-ID pairs of groups for which this rule can be overridden.
- Override
Users URLFilteringRules Override Users Args - Name-ID pairs of users for which this rule can be overridden.
- Protocols []string
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - Rank int
- Admin rank of the Firewall Filtering policy rule
- Request
Methods []string - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- Rule
Id int - URL Filtering Rule ID
- Size
Quota int - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- Source
Ip URLFilteringGroups Rules Source Ip Groups Args - list of source ip groups
- State string
- Time
Quota int - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- Time
Windows URLFilteringRules Time Windows Args - Name-ID pairs of time interval during which rule must be enforced.
- Url
Categories []string - List of URL categories for which rule must be applied
- User
Agent []stringTypes - Supported User Agent Types
- User
Risk []stringScore Levels - Users
URLFiltering
Rules Users Args - Name-ID pairs of users for which rule must be applied
- Validity
End stringTime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- Validity
Start stringTime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- Validity
Time stringZone Id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- Workload
Groups []URLFilteringRules Workload Group Args - The list of preconfigured workload groups to which the policy must be applied
- action String
- Action taken when traffic matches rule criteria
- block
Override Boolean - cbi
Profiles List<URLFilteringRules Cbi Profile> - ciparule Boolean
- If set to true, the CIPA Compliance rule is enabled
- departments
URLFiltering
Rules Departments - Name-ID pairs of departments for which rule must be applied
- description String
- Additional information about the URL Filtering rule
- device
Groups URLFilteringRules Device Groups - This field is applicable for devices that are managed using Zscaler Client Connector.
- device
Trust List<String>Levels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- devices
URLFiltering
Rules Devices - Name-ID pairs of devices for which rule must be applied.
- end
User StringNotification Url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- enforce
Time BooleanValidity - Enforce a set a validity time period for the URL Filtering rule.
- groups
URLFiltering
Rules Groups - Name-ID pairs of groups for which rule must be applied
- labels
URLFiltering
Rules Labels - The URL Filtering rule's label.
- location
Groups URLFilteringRules Location Groups - Name-ID pairs of the location groups to which the rule must be applied.
- locations
URLFiltering
Rules Locations - Name-ID pairs of locations for which rule must be applied
- name String
- Name of the Firewall Filtering policy rule
- order Integer
- Order of execution of rule with respect to other URL Filtering rules
- override
Groups URLFilteringRules Override Groups - Name-ID pairs of groups for which this rule can be overridden.
- override
Users URLFilteringRules Override Users - Name-ID pairs of users for which this rule can be overridden.
- protocols List<String>
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - rank Integer
- Admin rank of the Firewall Filtering policy rule
- request
Methods List<String> - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- rule
Id Integer - URL Filtering Rule ID
- size
Quota Integer - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- source
Ip URLFilteringGroups Rules Source Ip Groups - list of source ip groups
- state String
- time
Quota Integer - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- time
Windows URLFilteringRules Time Windows - Name-ID pairs of time interval during which rule must be enforced.
- url
Categories List<String> - List of URL categories for which rule must be applied
- user
Agent List<String>Types - Supported User Agent Types
- user
Risk List<String>Score Levels - users
URLFiltering
Rules Users - Name-ID pairs of users for which rule must be applied
- validity
End StringTime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- validity
Start StringTime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- validity
Time StringZone Id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- workload
Groups List<URLFilteringRules Workload Group> - The list of preconfigured workload groups to which the policy must be applied
- action string
- Action taken when traffic matches rule criteria
- block
Override boolean - cbi
Profiles URLFilteringRules Cbi Profile[] - ciparule boolean
- If set to true, the CIPA Compliance rule is enabled
- departments
URLFiltering
Rules Departments - Name-ID pairs of departments for which rule must be applied
- description string
- Additional information about the URL Filtering rule
- device
Groups URLFilteringRules Device Groups - This field is applicable for devices that are managed using Zscaler Client Connector.
- device
Trust string[]Levels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- devices
URLFiltering
Rules Devices - Name-ID pairs of devices for which rule must be applied.
- end
User stringNotification Url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- enforce
Time booleanValidity - Enforce a set a validity time period for the URL Filtering rule.
- groups
URLFiltering
Rules Groups - Name-ID pairs of groups for which rule must be applied
- labels
URLFiltering
Rules Labels - The URL Filtering rule's label.
- location
Groups URLFilteringRules Location Groups - Name-ID pairs of the location groups to which the rule must be applied.
- locations
URLFiltering
Rules Locations - Name-ID pairs of locations for which rule must be applied
- name string
- Name of the Firewall Filtering policy rule
- order number
- Order of execution of rule with respect to other URL Filtering rules
- override
Groups URLFilteringRules Override Groups - Name-ID pairs of groups for which this rule can be overridden.
- override
Users URLFilteringRules Override Users - Name-ID pairs of users for which this rule can be overridden.
- protocols string[]
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - rank number
- Admin rank of the Firewall Filtering policy rule
- request
Methods string[] - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- rule
Id number - URL Filtering Rule ID
- size
Quota number - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- source
Ip URLFilteringGroups Rules Source Ip Groups - list of source ip groups
- state string
- time
Quota number - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- time
Windows URLFilteringRules Time Windows - Name-ID pairs of time interval during which rule must be enforced.
- url
Categories string[] - List of URL categories for which rule must be applied
- user
Agent string[]Types - Supported User Agent Types
- user
Risk string[]Score Levels - users
URLFiltering
Rules Users - Name-ID pairs of users for which rule must be applied
- validity
End stringTime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- validity
Start stringTime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- validity
Time stringZone Id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- workload
Groups URLFilteringRules Workload Group[] - The list of preconfigured workload groups to which the policy must be applied
- action str
- Action taken when traffic matches rule criteria
- block_
override bool - cbi_
profiles Sequence[URLFilteringRules Cbi Profile Args] - ciparule bool
- If set to true, the CIPA Compliance rule is enabled
- departments
URLFiltering
Rules Departments Args - Name-ID pairs of departments for which rule must be applied
- description str
- Additional information about the URL Filtering rule
- device_
groups URLFilteringRules Device Groups Args - This field is applicable for devices that are managed using Zscaler Client Connector.
- device_
trust_ Sequence[str]levels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- devices
URLFiltering
Rules Devices Args - Name-ID pairs of devices for which rule must be applied.
- end_
user_ strnotification_ url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- enforce_
time_ boolvalidity - Enforce a set a validity time period for the URL Filtering rule.
- groups
URLFiltering
Rules Groups Args - Name-ID pairs of groups for which rule must be applied
- labels
URLFiltering
Rules Labels Args - The URL Filtering rule's label.
- location_
groups URLFilteringRules Location Groups Args - Name-ID pairs of the location groups to which the rule must be applied.
- locations
URLFiltering
Rules Locations Args - Name-ID pairs of locations for which rule must be applied
- name str
- Name of the Firewall Filtering policy rule
- order int
- Order of execution of rule with respect to other URL Filtering rules
- override_
groups URLFilteringRules Override Groups Args - Name-ID pairs of groups for which this rule can be overridden.
- override_
users URLFilteringRules Override Users Args - Name-ID pairs of users for which this rule can be overridden.
- protocols Sequence[str]
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - rank int
- Admin rank of the Firewall Filtering policy rule
- request_
methods Sequence[str] - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- rule_
id int - URL Filtering Rule ID
- size_
quota int - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- source_
ip_ URLFilteringgroups Rules Source Ip Groups Args - list of source ip groups
- state str
- time_
quota int - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- time_
windows URLFilteringRules Time Windows Args - Name-ID pairs of time interval during which rule must be enforced.
- url_
categories Sequence[str] - List of URL categories for which rule must be applied
- user_
agent_ Sequence[str]types - Supported User Agent Types
- user_
risk_ Sequence[str]score_ levels - users
URLFiltering
Rules Users Args - Name-ID pairs of users for which rule must be applied
- validity_
end_ strtime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- validity_
start_ strtime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- validity_
time_ strzone_ id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- workload_
groups Sequence[URLFilteringRules Workload Group Args] - The list of preconfigured workload groups to which the policy must be applied
- action String
- Action taken when traffic matches rule criteria
- block
Override Boolean - cbi
Profiles List<Property Map> - ciparule Boolean
- If set to true, the CIPA Compliance rule is enabled
- departments Property Map
- Name-ID pairs of departments for which rule must be applied
- description String
- Additional information about the URL Filtering rule
- device
Groups Property Map - This field is applicable for devices that are managed using Zscaler Client Connector.
- device
Trust List<String>Levels - List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
- devices Property Map
- Name-ID pairs of devices for which rule must be applied.
- end
User StringNotification Url - URL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
- enforce
Time BooleanValidity - Enforce a set a validity time period for the URL Filtering rule.
- groups Property Map
- Name-ID pairs of groups for which rule must be applied
- labels Property Map
- The URL Filtering rule's label.
- location
Groups Property Map - Name-ID pairs of the location groups to which the rule must be applied.
- locations Property Map
- Name-ID pairs of locations for which rule must be applied
- name String
- Name of the Firewall Filtering policy rule
- order Number
- Order of execution of rule with respect to other URL Filtering rules
- override
Groups Property Map - Name-ID pairs of groups for which this rule can be overridden.
- override
Users Property Map - Name-ID pairs of users for which this rule can be overridden.
- protocols List<String>
- Protocol criteria. Supported values:
SMRULEF_ZPA_BROKERS_RULE
,ANY_RULE
,TCP_RULE
,UDP_RULE
,DOHTTPS_RULE
,TUNNELSSL_RULE
,HTTP_PROXY
,FOHTTP_RULE
,FTP_RULE
,HTTPS_RULE
,HTTP_RULE
,SSL_RULE
,TUNNEL_RULE
,WEBSOCKETSSL_RULE
,WEBSOCKET_RULE
, - rank Number
- Admin rank of the Firewall Filtering policy rule
- request
Methods List<String> - Request method for which the rule must be applied. If not set, rule will be applied to all methods
- rule
Id Number - URL Filtering Rule ID
- size
Quota Number - Size quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- source
Ip Property MapGroups - list of source ip groups
- state String
- time
Quota Number - Time quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
- time
Windows Property Map - Name-ID pairs of time interval during which rule must be enforced.
- url
Categories List<String> - List of URL categories for which rule must be applied
- user
Agent List<String>Types - Supported User Agent Types
- user
Risk List<String>Score Levels - users Property Map
- Name-ID pairs of users for which rule must be applied
- validity
End StringTime - If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
- validity
Start StringTime - If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time.
- validity
Time StringZone Id - If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. Use IANA Format TimeZone.
- workload
Groups List<Property Map> - The list of preconfigured workload groups to which the policy must be applied
Supporting Types
URLFilteringRulesCbiProfile, URLFilteringRulesCbiProfileArgs
URLFilteringRulesDepartments, URLFilteringRulesDepartmentsArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesDeviceGroups, URLFilteringRulesDeviceGroupsArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesDevices, URLFilteringRulesDevicesArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesGroups, URLFilteringRulesGroupsArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesLabels, URLFilteringRulesLabelsArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesLocationGroups, URLFilteringRulesLocationGroupsArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesLocations, URLFilteringRulesLocationsArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesOverrideGroups, URLFilteringRulesOverrideGroupsArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesOverrideUsers, URLFilteringRulesOverrideUsersArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesSourceIpGroups, URLFilteringRulesSourceIpGroupsArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesTimeWindows, URLFilteringRulesTimeWindowsArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesUsers, URLFilteringRulesUsersArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<Number>
URLFilteringRulesWorkloadGroup, URLFilteringRulesWorkloadGroupArgs
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_url_filtering_rules can be imported by using <RULE_ID>
or <RULE_NAME>
as the import ID.
For example:
$ pulumi import zia:index/uRLFilteringRules:URLFilteringRules example <rule_id>
or
$ pulumi import zia:index/uRLFilteringRules:URLFilteringRules example <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.