Hello everyone, this is my python code to find a specific server:
import openstack
openstack.enable_logging(debug=False)
servers = []
for region in ['region1', 'region2', 'region3']:
openstack_connection = openstack.connect(cloud=region) # clouds.yaml
for server in openstack_connection.compute.servers(details=True, hostname='my_specific_hostname'):
servers.append(server.to_dict())
servers = servers[0]['id']
Now I'm going to create a snapshot from this ID only.
How can I do that? I read the documents but was unable to find proper way in Python.
Regards,
Saeed