isolation_profile#
The following methods allow for interaction with the ZPA Cloud Browser Isolation Profile Controller API endpoints.
Methods are accessible via zpa.isolation_profile
- class IsolationProfileAPI#
Bases:
object
- get_profile_by_id(profile_id)#
Retrieves a specific isolation profile by its unique identifier (ID).
- Parameters:
profile_id (str) – The ID of the isolation profile to retrieve.
- Returns:
The isolation profile with the specified ID if found, otherwise None.
- Return type:
dict or None
Examples
>>> profile = zpa.isolation_profiles.get_profile_by_id('12345') >>> print(profile)
- get_profile_by_name(name)#
Retrieves a specific isolation profile by its name.
- Parameters:
name (str) – The name of the isolation profile to search for.
- Returns:
The isolation profile with the specified name if found, otherwise None.
- Return type:
dict or None
Examples
>>> profile = zpa.isolation_profiles.get_profile_by_name('DefaultProfile') >>> print(profile)
- list_profiles(**kwargs)#
Returns a list of all configured isolation profiles.
- Keyword Arguments:
max_items (int) – The maximum number of items to request before stopping iteration.
max_pages (int) – The maximum number of pages to request before stopping iteration.
pagesize (int) – Specifies the page size. The default size is 20, but the maximum size is 500.
search (str, optional) – The search string used to match against features and fields.
- Returns:
A list of all configured isolation profiles.
- Return type:
BoxList
Examples
>>> for isolation_profile in zpa.isolation_profiles.list_profiles(): ... pprint(isolation_profile)