Skip to main content

WebForwardingProfile

Web Forwarding Profile resource for Zscaler Client Connector.

Resource operations

This resource supports the following standard methods: create(), delete(). They operate on the instance state — set properties with dot notation, then call the method with no arguments.

Quick Start​

import zssdk
import logging

# Enable debug logging for WebForwardingProfile
logging.getLogger('zssdk.zcc').setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)

session = zssdk.Session(
vanity_domain="your-vanity-domain",
client_id="your-client-id",
client_secret="your-client-secret",
)

# Get a specific WebForwardingProfile
resource = session.zcc.WebForwardingProfile(id="your-resource-id")
resource.load()
print(resource)

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

create()​

Creates a new WebForwardingProfile. Set properties on the resource instance, then call create() — this method takes no arguments.

Properties for creation:

NameTypeRequiredDescription
activestringNo-
condition_typeintegerNo-
dns_search_domainsstringNo-
dns_serversstringNo-
enable_LWF_driverstringNo-
enable_split_vpn_TNstringNo-
evaluate_trusted_networkstringNo-
forwarding_profile_actionsForwardingProfileActionContractv2WrapperCollectionNo-
forwarding_profile_zpa_actionsForwardingProfileActionContractZpaV2WrapperCollectionNo-
hostnamestringNo-
idstringYes-
namestringNo-
predefined_tn_allbooleanNo-
predefined_trusted_networksbooleanNo-
resolved_ips_for_hostnamestringNo-
skip_trusted_criteria_matchstringNo-
trusted_dhcp_serversstringNo-
trusted_egress_ipsstringNo-
trusted_gatewaysstringNo-
trusted_network_idsint64CollectionNo-
trusted_networksstringCollectionNo-
trusted_subnetsstringNo-

Returns: StringRecord

Example:

resource = session.zcc.WebForwardingProfile()
resource.active = "value"
resource.condition_type = 3600
resource.dns_search_domains = "value"
resource.create()
print(f"Created with ID: {resource.id}")

delete()​

Deletes a WebForwardingProfile by id. Only the id identifier is required; delete() takes no other arguments.

Example:

resource = session.zcc.WebForwardingProfile(id="your-resource-id")
resource.delete()

Attributes​

NameTypeRequiredDescription
activestringNo-
condition_typeintegerNo-
dns_search_domainsstringNo-
dns_serversstringNo-
enable_LWF_driverstringNo-
enable_split_vpn_TNstringNo-
evaluate_trusted_networkstringNo-
forwarding_profile_actionsForwardingProfileActionContractv2WrapperCollectionNo-
forwarding_profile_zpa_actionsForwardingProfileActionContractZpaV2WrapperCollectionNo-
hostnamestringNo-
idstringYes-
namestringNo-
predefined_tn_allbooleanNo-
predefined_trusted_networksbooleanNo-
resolved_ips_for_hostnamestringNo-
skip_trusted_criteria_matchstringNo-
trusted_dhcp_serversstringNo-
trusted_egress_ipsstringNo-
trusted_gatewaysstringNo-
trusted_network_idsint64CollectionNo-
trusted_networksstringCollectionNo-
trusted_subnetsstringNo-