VMware Aria Automation Orchestrator

 View Only
  • 1.  Orchestrator VRA Plugin REST Request

    Posted Nov 22, 2023 03:43 PM

    Hi

    I am trying to figure out how to use the VRO VRA Plugin to execute a rest request. This VMware blog seems to indicate that this is possible. New vRealize Orchestrator Plug-In for vRealize Automation - VMware Cloud Management

    What I have so far is

    var urlPath = "deployment/api/deployments"
    
    // vraHost is a workflow input linked to the VRA host inventory item
    var restHost = vraHost.createRestClient()
    var result = restHost.createRequest("GET", urlPath)

      Below is the error I get:

    Scriptable task (item1) : ch.dunes.model.type.ConvertorException: Unable to serialize object of class : com.vmware.o11n.plugin.vra_gen.RestRequest_Wrapper

     



  • 2.  RE: Orchestrator VRA Plugin REST Request

    Broadcom Employee
    Posted Nov 23, 2023 12:23 PM

    Hi there,

    What type of data or action are you trying to get from Aria Automation via an Orchestrator workflow?

    Since the article was published, the 'Aria Automation Orchestrator Plug-in' has added more built in Infrastructure objects -  it contains many objects and in-built methods you can used to get information from Aria Automation or execute updates. The below screen shot is from my Home Lab:

    gregd90_0-1700741284078.png

    If this doesn't give you what you need, as the article states, you can also use the generic REST operation Workflows in the Library to 'Get' 'Patch' 'Post' 'Put' against your Aria Automation Plug-In endpoint, or you can wrap the Workflows in your own Workflow. I would recommend doing this first to get going rather than unpacking the workflow code and writing your own REST API code as these are pre-built and ready to go to perform REST operations.

    gregd90_1-1700741932970.png

    Here is an example of a quick execution that for the Uri path you mentioned to get Deployments:

    gregd90_2-1700742002750.png

    An excerpt of the result n the Workflow execution log:

    gregd90_3-1700742054022.png

     

    I hope that helps.

    Regards,

    Greg D, VMware

     

     



  • 3.  RE: Orchestrator VRA Plugin REST Request

    Posted Nov 23, 2023 01:37 PM

    Please try again but make sure that urlPath starts with /

    var urlPath = "/deployment/api/deployments";


  • 4.  RE: Orchestrator VRA Plugin REST Request

    Posted Nov 23, 2023 02:55 PM

    Found the issue. I missed that I had a output called result and it was of the wrong type. I guess this is what happens when one does not clean put your scratch area and just re-use old workflows. I wasted so much time on this.