0 Replies Latest reply on May 30, 2020 4:53 PM by aslk5

    delay in exposing new found items via API

    aslk5 Enthusiast

      Is there a delay in exposing newly discovered items in the API compared to what you see in the GUI?

       

      In my case I add a host to vcenter, do some configuration with a script and reboot it. I notice vROPS detects the host pretty quickly and I can see it in the inventory explorer. When I send the following API request to find the ID I get no results:

       

      https://myvrops/suite-api/api/adapterkinds/VMWARE/resourcekinds/HostSystem/resources?identifiers[VMEntityObjectID]=host-145&identifiers[VMEntityVCID]=d7616e94-0834-4214-b0cd-d0b4a14ac821

       

      It might take a few minutes before the API will return the id.

       

      My issue is I don't want vrops to alert when the host is rebooting. I can't put the host into maintenance mode in vrops because I can't find the ID of the newly added object even though i see it in the GUI. Right now it's dumb luck as to whether or not the host will trigger an alert or it comes back online in vcenter before vrops notices.

       

      Is there anything I can to find the host or ensure it gets detected and put into maintenance mode right away?