Skip to main content

ExportPolicy

Export Policy resource for Internet Access.

Resource operations

This resource does not support standard CRUDL methods. Each action listed below is a custom action that takes explicit keyword arguments and returns a value.

Quick Start​

import zssdk
import logging

# Enable debug logging for ExportPolicy
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 export_policies on ExportPolicy
resource = session.zia.ExportPolicy()
result = resource.export_policies(body=["value"], stream=False)
print(result)

# Debug output shows HTTP request/response details

Actions​

export_policies()​

Parameters:

NameTypeRequiredDescription
bodyRuleTypeCollectionYes-
streambooleanNoPass False to buffer the streamed response in memory and return it as bytes; defaults to True, which returns a StreamingBody for chunked reads.

Example:

resource = session.zia.ExportPolicy()
result = resource.export_policies(body=["value"], stream=False)
print(result)
  • Logging guide - enable verbose logs while debugging this resource