trusted_networks#

The following methods allow for interaction with the ZPA Trusted Networks API endpoints.

Methods are accessible via zpa.trusted_networks

class TrustedNetworksAPI#
__init__(api)#
get_network(network_id)#

Returns information on the specified trusted network.

Parameters:

network_id (str) – The unique identifier for the trusted network.

Returns:

The resource record for the trusted network.

Return type:

Box

Examples

>>> pprint(zpa.trusted_networks.get_network('99999'))
list_networks(**kwargs)#

Returns a list of all configured trusted networks.

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 trusted networks.

Return type:

BoxList

Examples

>>> for trusted_network in zpa.trusted_networks.list_networks():
...    pprint(trusted_network)