VMware Aria Automation Tools

 View Only
  • 1.  Get Deployment Requests (Day 2 Actions) between specified timeframe

    Posted Apr 04, 2024 03:29 AM

    Hi 

    I am trying to use the below api request to get any day 2 actions that have been triggered between or even after a specified date.

    /deployment/api/deployments/{deploymentID}/requests?search=createdAt%3D%5B2024-04-01T00%3A00%3A00.000Z%2C2024-04-02T23%3A59%3A00.000Z%5D

     

    Not even sure if this is possible, the swagger docs are not very clear on how to even construct the proper syntax for the search parameter. 

     

     



  • 2.  RE: Get Deployment Requests (Day 2 Actions) between specified timeframe

    Posted May 14, 2024 05:35 AM

    you can get very **** from 'Service broker' use filter option; as API output has limitation in results & didn't workout with me before.

    Or you can extract all this info. from postgresDB, from "catalog-db" from vRA databases list




  • 3.  RE: Get Deployment Requests (Day 2 Actions) between specified timeframe

    Posted May 17, 2024 02:02 AM

    how do you proceed to extract the info ?




  • 4.  RE: Get Deployment Requests (Day 2 Actions) between specified timeframe

    Posted May 29, 2024 10:50 AM

    You can head out to https://www.ultimaforsan.com/logs/2021/2/25/vrealize-automation-8x-delete-resource-from-deployment




  • 5.  RE: Get Deployment Requests (Day 2 Actions) between specified timeframe

    Posted Jun 12, 2024 11:18 AM

    @mayank_goyal
    https://www.ultimaforsan.com/logs/2021/2/25/vrealize-automation-8x-delete-resource-from-deployment

    @Thelemanu
    It's very complicated; as you have to extract output from vRA DB, then store output results in file, then search for this file in which vRA nodes [In case of using vRA HA cluster]; as usually exported DB output won't be on master /active node.

    Then connect to container, search for directory where DB output is stored, then copy to for example "/tmp" directory on vRA node.
    Finally copy to your computer from vRA node




  • 6.  RE: Get Deployment Requests (Day 2 Actions) between specified timeframe

    Posted 21 days ago

    You cannot use the API call to directly get exactly what you want. You can easily get all the requests that were executed on a deployment by doing

    GET /deployment/api/deployments/{deploymentID}/requests

    But without specifying the "search" option.

    Then you can just do a loop through all the returned results and manually check the "createdAt" date to see if request match what you're looking for.

    Furthermore, if you want to only have the Day2 actions on the deployment itself (and not on resources inside it), check the "resourceIds" array of the request, it should contains only the deploymentID.