VMware Cloud Community
seplus
Enthusiast
Enthusiast
Jump to solution

vra 8.11 ABX type REST Request

Anybody have any documents for ABX action type Rest Request.

seplus_0-1675380845521.png

Thanks,

Labels (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
Ankush11s
VMware Employee
VMware Employee
Jump to solution

Also to add more info 
Currently we can pass the Outputs of REST request to Polyglot language , Not to Next REST Type

Example:
You create Rest Action like below

Ankush11s_0-1675938792595.png

then  would want to use the Output of this to python or powershell or any language 
your next action would be like

Ankush11s_1-1675938847042.png


Here we are printing the Inputs , because here it will be getting output of previous action 
Next we create ABX Flow

Ankush11s_2-1675938903968.png

 

Once done , check the output of python .

Ankush11s_3-1675938953815.png




Mark this thread as resolved , If it helped and answered the query.

View solution in original post

Reply
0 Kudos
5 Replies
Ankush11s
VMware Employee
VMware Employee
Jump to solution

Can you provide more details about your doubt/ query on this feature 
I can provide steps or assistance if you are stuck or need clarification 

Reply
0 Kudos
seplus
Enthusiast
Enthusiast
Jump to solution

Just want to see, how can I get the output of the rest request in the code or to another action.

Thanks,

 

Reply
0 Kudos
Ankush11s
VMware Employee
VMware Employee
Jump to solution

It may not be possible for REST TYPE .
You may want to use Python or other language for this used case 
Example:
Create an Python ABX action which would make get call to some api 
Store the result in Dictionary and return that variable to Output 
then create another Action and you can access the return value of First action to input variable of 2nd action.

 

Here is the example:
https://vmwarecode.com/2022/09/27/aria-automation-cloudaka-vra-how-to-add-custom-attributes-to-vsphe...

Python ABX action Line number 59 I am storing and 61 returning 
PowerCLi action : Line number 15 I am accessing that value

If this solves , Please mark the thread as resolved 

Reply
0 Kudos
Ankush11s
VMware Employee
VMware Employee
Jump to solution

Also to add more info 
Currently we can pass the Outputs of REST request to Polyglot language , Not to Next REST Type

Example:
You create Rest Action like below

Ankush11s_0-1675938792595.png

then  would want to use the Output of this to python or powershell or any language 
your next action would be like

Ankush11s_1-1675938847042.png


Here we are printing the Inputs , because here it will be getting output of previous action 
Next we create ABX Flow

Ankush11s_2-1675938903968.png

 

Once done , check the output of python .

Ankush11s_3-1675938953815.png




Mark this thread as resolved , If it helped and answered the query.

Reply
0 Kudos
seplus
Enthusiast
Enthusiast
Jump to solution

Thank you very much Ankush11s. So we can't give dynamic input to rest action, but we can use the output of the rest action using another action(powershell/python).

Thank you very much once again.

Thanks,

Reply
0 Kudos