Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
API call for IPv6 host
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2023 06:05 AM
1059     0
Hi am trying to import a file with a large set of IPv6 address. am tried to use the following
def create_ipv6_fixed_address(ipv6addr, comment, view, duid=None):
url = f"{infoblox_host}/wapi/v2.11/ipv6fixedaddress"
headers = {
"Content-Type": "application/json",
}
data = {
"ipv6addr": ipv6addr,
"comment": comment,
"view": view,
}
if duid is not None:
data["duid"] = duid
response = requests.post(url, headers=headers, auth=(username, password), data=json.dumps(data), verify=False)
return response
It seems the view field in not usable and unable to find in the documentation how to add a static ipv6 host address to a certain view. any ideas?
Re: API call for IPv6 host
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 04:46 AM
1059     0
Are you trying to assign the DNS view, or the Network view?
IPv6 Addresses won't get a DNS view as they' don't have a DNS function. However you can assign them to a Network view, using the "network_view" field.