ProfilesForCustomers Collection
Iterate over IsolationProfile resources in Zscaler Private Access V1.
Returned items are IsolationProfile resources — access their fields via dot notation.
Iterate all items
import zssdk
session = zssdk.Session(profile_name="beta")
# Yield each item; pagination (if any) is handled automatically
for item in session.zpa.profiles_for_customers.all():
print(item.id)
# Materialize the full list
all_items = list(session.zpa.profiles_for_customers.all())
print(f"Total items: {len(all_items)}")
Iterate by page
# Paginated collections yield each server page; simple collections yield one page
for page in session.zpa.profiles_for_customers().pages():
print(f"Got a page with {len(page)} items")
for item in page:
print(item.id)