- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Getting the comment field from a IP record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 01:07 PM
I am looking for informaiton on how to retrieve with WAPI the commend field for a IP address .. The following example returns all the fields I am looking for with the exception of that comment field..
/wapi/v2.11/ipv4address?ip_address=1.1.1.1
I tried looking at the PTR recod and dont' see it in there either ..
/wapi/v2.11/recordtr?ipv4addr=1.1.1.1
Thank you in advance..
Solved! Go to Solution.
Re: Getting the comment field from a IP record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 05:44 AM
An IP address is not a record, and a comment cannot be added to an IP address.
Comments can be added to Host Records, DNS records, DHCP fixed addresses, and Reservations that are associated with the IP address.
When searching using the ipv4address search object, the reference for associated objects will be returned. Those individual objects then need to be queried, to return the comment field for each.
Re: Getting the comment field from a IP record
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 01:26 AM - edited 11-08-2023 01:28 AM
Based on the given information, it seems that the comment field for an IP address is not returned by default when using the WAPI to retrieve information about an IPv4 address. However, it is possible to include the comment field in the response by using the _return_fields parameter in the API call. us payserv
To retrieve the comment field for an IP address using the WAPI, you can modify the API call to include the _return_fields parameter with the value "comment". Here is an example API call that retrieves the IPv4 address information for the IP address 1.1.1.1 and includes the comment field in the response:
```
/wapi/v2.11/ipv4address?ip_address=1.1.1.1&_return_fields=comment
```
This API call should return the comment field for the IPv4 address, if it exists. If the comment field is not set for the IP address, the API call will return an empty value for the comment field.
It is also worth noting that the comment field may not be available for all IP addresses, depending on how the IP address was configured and managed in the Infoblox system. If the comment field is not available for a particular IP address, the API call will return an empty value for the comment field.
In summary, to retrieve the comment field for an IP address using the WAPI, you can modify the API call to include the _return_fields parameter with the value "comment". However, the comment field may not be available for all IP addresses, depending on how the IP address was configured and managed in the Infoblox system.
Re: Getting the comment field from a IP record
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 06:16 AM - edited 11-08-2023 06:38 AM
That worked, I was using v2.7 (even though I put v2.11 in my post) when I replaced it with v2.11 it worked .. thank you!