ovh / python-ovh

Thin wrapper around OVH's APIs. Handles all the hard work including credential creation and requests signing.
https://pypi.org/project/ovh/
Other
278 stars 76 forks source link

Retrieve rescue password from API #75

Closed gabstopper closed 5 years ago

gabstopper commented 5 years ago

I apologize for having to submit this directly here but I have tried OVH support and have not received any response two weeks later.

This is more of an feature / information request.

I am automating the deployment of dedicated servers via ansible and need to put a server into rescue mode to start an installation process.

The problem area is retrieving the rescue OTP. Currently rescue mode will send an OTP via email once the system is in a ready state.

Is there a way to obtain the OTP from the API directly rather than have to fish it out of an email? Could this be populated into the dedicated_servers output? For example, retrieving a server returns:

{u'linkSpeed': 10000, u'datacenter': u'gra2', u'monitoring': True, u'reverse': u'foo.domain.com', u'supportLevel': u'pro', u'ip': u'xx.xx.xx.xx', u'commercialRange': u'host', u'rootDevice': None, u'professionalUse': False, u'bootId': 1122, u'state': u'ok', u'rescueMail': u'someone@somewhere.com', u'serverId': xxxxxx, u'os': u'none_64', u'rack': u'G210A01', u'name': u'nsXXXXXXX.ip-x.x.x.eu'}

Currently having to retrieve the OTP "out of band" through email makes it difficult to keep the process fully automated.

Thank you,

David

rbeuque74 commented 5 years ago

Hello, This issue tracker is related to 'python-ovh' project, for support regarding API features, please use the community mailing-list documented here: https://github.com/ovh/python-ovh/blob/master/README.rst#ovh-europe

Romain