]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - python/list_servers.py
Fetch node informations from LDAP
[perso/Immae/Projets/Puppet.git] / python / list_servers.py
1 try:
2 from ovh import ovh
3 except ImportError:
4 # In case it's installed globally
5 import ovh
6
7 client = ovh.Client()
8
9 vps_list = client.get('/vps/')
10
11 for vps in vps_list:
12 print(vps)