3 Replies Latest reply on May 23, 2017 10:28 AM by qc4vmware

    Refresh Orchestrator's view of a vRA Catalog Resource?

    filosmith Hot Shot

      I have an event subscription that fires upon CHANGE_LEASE completion, that currently just displays some information about the parent deployment. It always shows the old lease end time, not the new one that I set it to. I've tried getting the entity again, invalidating the entity, and even sleeping for 5 seconds (gross), but it never displays the new lease end time. Is there a way to refresh Orchestrator's  information about this catalog resource?

       

      This doesn't work:

       

      if (actualDeploymentId != null && actualDeploymentId != undefined && actualDeploymentId != "") {
          System.debug("actualDeploymentId: " + actualDeploymentId);
          parentResource = vCACCAFEEntitiesFinder.getCatalogResource(host, actualDeploymentId);
          vCACCAFEEntitiesFinder.invalidateEntity(parentResource);
          System.sleep(5000);
          parentResource = vCACCAFEEntitiesFinder.getCatalogResource(host, actualDeploymentId);
          System.debug("Lease end: " + parentResource.lease.getEnd());
      }