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
Retrieve all CNames from WAPI
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2019 07:34 AM
4413     0
I have seen several older posts about how to pull all records, but none of those seem to work.
I would like to pull all CName records from the WAPI. I'm using v2.5 of the API and Python v2.7.
Re: Retrieve all CNames from WAPI
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2019 12:33 AM
4413     0
Hi,
Here is a sample code that you can use to query cname records:
import requests requests.packages.urllib3.disable_warnings() # Disable SSL warnings in requests # url = "https://127.0.0.1/wapi/v2.5/record:cname?_return_as_object=1" response = requests.request("GET", url, auth=('admin', 'infoblox'), verify=False) print(response.text)
Hope this helps,
Krishna
Re: Retrieve all CNames from WAPI
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2019 06:37 AM
4414     0
Yes, this worked after I added &_max_results=xxxxxx to the end of the payload.
Thank you !!!