2 Replies Latest reply on Jun 1, 2020 6:16 PM by someone007

    How can I find entityRefId?

    someone007 Lurker
         vhs1 = vcMos['vsan-performance-manager']

       

         spec = vim.cluster.VsanPerfQuerySpec()

         #spec.entityRefId = "cluster-domclient:68dd9a1a-909f-4df9-b1b5-eab5dc5f0a9c"

         spec.entityRefId = "cluster-domcompmgr:68dd9a1a-909f-4df9-b1b5-eab5dc5f0a9c"


         endTime = datetime.datetime.utcnow()

         startTime = endTime - datetime.timedelta(hours=1)

         spec.startTime = startTime

         spec.endTime = endTime

         result = vhs1.VsanPerfQueryPerf(querySpecs=[spec], cluster=cluster)

       

      how can I find then entityRefId