m y goal is to create simple script which will take a list of TAG IDs and assign them to specific hosts (IPs).
My problem is that I can use IP to get information from api/2.0/fo/asset/host/ (VM module) which will give me a ID, IP, Owner and list of assigned tags for that host. To assign TAG I use qps/rest/1.0/update/am/hostasset/ID (AM module) and here come troubles it require a "Asset ID" which is not same as a ID from Host info from VM module.
I tried to search for host in AM module using qps/rest/1.0/search/am/hostasset with:
No luck there, it works OK on hostname, but I do not have hostnames for all the host I need to maintain, so this no solution for me.
If there is no direct "simple" function for adding static tag to IP, it would helped me if I could read all hosts info from AM module at once same as in VM module or somehow pair the Asset ID from AM and so called "qwebHostId" from VM.
I would appreciate anysuggestion
Message was edited by: Jiri Holoska