05-30-2023 01:48 AM - edited 05-30-2023 01:50 AM
When in GUI I can search the database and use the filter "DNS name" And the operator "contains" and I can use just a short hostname (no FQDN !) to find all objects matching that contains that short hostname.
Now I want to do the same using a WAPI call, but somehow the WAPI tells me that zone is a mandatory search parameter.
"Error": "AdmConProtoError: zone is a mandatory search parameter for allrecords searches",
I have a bulk list of short hostnames that I need to lookup what type of record it is, as these are all mixed up like A, host and even cname records.
2 weeks ago
I know it's been a while since you posted your question; but I just recently had to do something similar and ended up using the /search object. You can provide the fqdn=xxx field but unlike it's name, it doesn't appear it has to be fully qualified. It's possible to just provide hostname and it will return matches. Not sure this will be of any help to you (might be too late) but wanted to share back. Cheers!