Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve rescue password from API #75

Closed
gabstopper opened this issue Feb 10, 2019 · 1 comment
Closed

Retrieve rescue password from API #75

gabstopper opened this issue Feb 10, 2019 · 1 comment

Comments

@gabstopper
Copy link

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants