ipv6_config¶
The following methods allow for interaction with the ZIA Traffic IPV6 Configuration API endpoints.
Methods are accessible via zia.ipv6_config
Copyright (c) 2023, Zscaler Inc.
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- class TrafficIPV6ConfigAPI¶
Bases:
APIClientA Client object for the Traffic IPV6 Configuration resources.
- get_ipv6_config()¶
Gets the IPv6 configuration details for the organization.
- Returns:
A tuple containing (IPV6 Configuration instance, Response, error)
- Return type:
Examples
List IPV6 Configuration:
>>> ipv6_config, _, err = client.zia.ipv6_config.get_ipv6_config() ... if err: ... print(f"Error fetching ipv6 config: {err}") ... return ipv6_config
- list_dns64_prefix(query_params=None)¶
Fetches the list of NAT64 prefixes configured as the DNS64 prefix for the organization
- Parameters:
{dict} (query_params) –
Map of query parameters for the request.
[query_params.search]{str}: String used to match against a DNS64 prefix’s name,description, or prefixMask attributes.
- Returns:
A tuple containing (IPV6Config instance, Response, error).
- Return type:
Examples
List IPV6 Configuration:
>>> ipv6_list, _, err = client.zia.gre_tunnel.get_ipv6_config() ... if err: ... print(f"Error listing ipv6 config: {err}") ... return ... for ipv6 in ipv6_list: ... print(ipv6.as_dict())
- list_nat64_prefix(query_params=None)¶
Fetches the list of NAT64 prefixes configured for the organization
- Parameters:
{dict} (query_params) –
Map of query parameters for the request.
[query_params.page]{int}: Specifies the page offset.[query_params.page_size]{int}: Specifies the page size.The default size is 100 and the maximum size is 1000.
[query_params.search]{str}: String used to match against a DNS64 prefix’s name,description, or prefixMask attributes.
- Returns:
A tuple containing (IPV6Config instance, Response, error).
- Return type:
Examples
List IPV6 Configuration:
>>> ipv6_list, _, err = client.zia.gre_tunnel.get_nat64_prefix() ... if err: ... print(f"Error listing ipv6 config: {err}") ... return ... for ipv6 in ipv6_list: ... print(ipv6.as_dict())