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
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier |
Actions
create()
Creates a new WebForwardingProfile. Set properties on the resource instance, then call create() — this method takes no arguments.
Properties for creation:
| Name | Type | Required | Description |
|---|---|---|---|
active | string | No | - |
condition_type | integer | No | - |
dns_search_domains | string | No | - |
dns_servers | string | No | - |
enable_LWF_driver | string | No | - |
enable_split_vpn_TN | string | No | - |
evaluate_trusted_network | string | No | - |
forwarding_profile_actions | ForwardingProfileActionContractv2WrapperCollection | No | - |
forwarding_profile_zpa_actions | ForwardingProfileActionContractZpaV2WrapperCollection | No | - |
hostname | string | No | - |
id | string | Yes | - |
name | string | No | - |
predefined_tn_all | boolean | No | - |
predefined_trusted_networks | boolean | No | - |
resolved_ips_for_hostname | string | No | - |
skip_trusted_criteria_match | string | No | - |
trusted_dhcp_servers | string | No | - |
trusted_egress_ips | string | No | - |
trusted_gateways | string | No | - |
trusted_network_ids | int64Collection | No | - |
trusted_networks | stringCollection | No | - |
trusted_subnets | string | No | - |
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
| Name | Type | Required | Description |
|---|---|---|---|
active | string | No | - |
condition_type | integer | No | - |
dns_search_domains | string | No | - |
dns_servers | string | No | - |
enable_LWF_driver | string | No | - |
enable_split_vpn_TN | string | No | - |
evaluate_trusted_network | string | No | - |
forwarding_profile_actions | ForwardingProfileActionContractv2WrapperCollection | No | - |
forwarding_profile_zpa_actions | ForwardingProfileActionContractZpaV2WrapperCollection | No | - |
hostname | string | No | - |
id | string | Yes | - |
name | string | No | - |
predefined_tn_all | boolean | No | - |
predefined_trusted_networks | boolean | No | - |
resolved_ips_for_hostname | string | No | - |
skip_trusted_criteria_match | string | No | - |
trusted_dhcp_servers | string | No | - |
trusted_egress_ips | string | No | - |
trusted_gateways | string | No | - |
trusted_network_ids | int64Collection | No | - |
trusted_networks | stringCollection | No | - |
trusted_subnets | string | No | - |
Related
- WebForwardingProfile - Data structure definition
- Logging guide - enable verbose logs while debugging this resource