'Python OpenStack SDK to get specific instance metadata

I am looking for a way, in Python to use the OpenStack SDK to get specific metadata about an instance for a given region and project. I am looking to only get the id, name, ip address and key name. I was thinking of starting with "compute"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source