trusted_networks#
The following methods allow for interaction with the ZPA Trusted Networks API endpoints.
Methods are accessible via zpa.trusted_networks
- class TrustedNetworksAPI#
Bases:
object
- get_by_network_id(network_id, **kwargs)#
Returns the trusted network based on the networkId.
- Parameters:
network_id (str) – The unique Network ID for the network ID.
- 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 100, but the maximum size is 500.
**search (str, optional) – The search string used to match against features and fields.
- Returns:
The resource record for the trusted networks.
- Return type:
Union[Box, None]
- 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'))
- get_network_by_name(name)#
- 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)