Skip to main content

ExemptedUrls

Exempted Urls resource for Zscaler Internet Access.

Resource operations

This resource supports the following standard methods: create(), load(). 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 ExemptedUrls
logging.getLogger('zssdk.zia').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",
)

# Call create on ExemptedUrls
resource = session.zia.ExemptedUrls()
result = resource.create()
print(result)

# Debug output shows HTTP request/response details

Actions​

create()​

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

Properties for creation:

NameTypeRequiredDescription
actionstringNo-
urlsstringCollectionNo-

Returns: ExemptedUrls

Example:

resource = session.zia.ExemptedUrls()
resource.action = "value"
resource.urls = ["https://example.com"]
resource.create()
print(f"Created with ID: {resource.id}")

load()​

Fetches an existing ExemptedUrls by id. Only the id identifier is required; load() takes no other arguments.

Returns: ExemptedUrls

Example:

resource = session.zia.ExemptedUrls()
resource.load()
print(resource)

Attributes​

NameTypeRequiredDescription
urlsstringCollectionNo-
actionstringNo-