How to access openstack metadata

Hello, does anyone (willing to share) has a way how to access (read/write) openstack key/value metadata on openstack VM instance from MIQ?

Thank you