Register command with CloudStack modules

Hello all!
Can somone explain to me how ‘register’ works? I can not seem to use it with cs_firewall module. I’m trying to understand how to register to a variable the details of a VM that has been instantiated by using the CloudStack module cs_firewall.

Should Register be used as part of the cs_instance module, or does it come separately?

Thanks in advance for any help or direction you may provide!
-dave

register is an Ansible keyword, independent of modules, it is just a
way for you to assign the 'return data' from a module to a variable
that you can use later on.

To have a variable contain the data for a vm you would normally use it
with the module that creates the vm or one that gathers facts about
vms.

I hope this helps,