4 Replies Latest reply on Aug 1, 2020 12:26 PM by LucD

    Difference between Get-view -ID ((Get-view serviceinstance).content.Managerobject) and containview in MOB

    Ankushsethi Enthusiast

      Hello,

       

      I have been trying to understand this and spent few hours to find out the answer which could help but did not get much information.

      Basically we use get-view to use the API and same is available in MOB. but when i try to explore MOB .I see 4 different views for viewManager

       

      Also when i create container view and try to invoke the method of managed object  it says it does not exist.

       

      I am trying to do using pyVmomi to replicate  how we do in powercli

      vc=connect.Connect("vCenterName","443","UserName","Password")

      cm=vc.content.certificateManager

      recursive=True

      rootdirectory=vc.content.rootFlder

      certmgr=vc.content.viewManager.CreateContainerView(rootdirectory,cm,recursive)

      certmgr.CertMgrRefreshCertificates_Task(host'sMORef)

       

       

      But I am getting error method is not found .