Skip to main content

LocationGroup

Location Group resource for Zscaler Internet Access.

Resource operations

This resource supports the following standard methods: load(). They operate on the instance state — set properties with dot notation, then call the method with no arguments. Any other 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 LocationGroup
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",
)

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

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

get_location_groups_count()​

Parameters:

NameTypeRequiredDescription
last_mod_userstringNo-
versionintegerNo-
namestringNo-
group_typestringNo-
commentsstringNo-
location_idintegerNo-

Example:

resource = session.zia.LocationGroup()
result = resource.get_location_groups_count()
print(result)

get_location_group_summary()​

Returns: LocationGroup

Example:

resource = session.zia.LocationGroup(id="your-resource-id")
result = resource.get_location_group_summary()
print(result)

load()​

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

Returns: LocationGroup

Example:

resource = session.zia.LocationGroup(id="your-resource-id")
resource.load()
print(resource.name)

Attributes​

NameTypeRequiredDescription
commentsstringNo-
default_extranet_groupbooleanNo-
deletedbooleanNo-
dynamic_location_group_criteriaDynamicLocationGroupCriteriaNo-
extranet_location_groupbooleanNo-
group_typestringNo-
idintegerNo-
last_mod_timeintegerNo-
last_mod_userEntityReferenceNo-
locationsEntityReferenceWrapperCollectionNo-
locations_countlongNo-
namestringNo-
predefinedbooleanNo-