Open Izhaki opened 7 years ago
A few things have change in OVH lately.
One of them being I no longer work for OVH^^
There are new regions name and new flavour names
Oh joy ! This actually depends on the project. Newer projects will get the new regions. Maybe we can abstract this by accepting "SBG" instead of "SBG1" or "SBG3" and return the corresponding real region if there is a single exact match. Will be some work though.
Would you consider a PR ?
I wouldn't mind to change the docs, but code changes might be a bit over my head/schedule at the moment (never written anything in GO - but I know who does).
I'm going to contact OVH later on today. I couldn't find any documentation of the actual values one can use... it's a lot of trail-and-error... like S1-4
doesn't work, but s1-4
does.
Do you know of any official documentation?
Also, how are you suppose to know what project version one is using? I guess there will just be a flag with old/new the user provides? How does the user know weather they use the old or new project?
https://api.ovh.com/console/#/cloud/project/%7BserviceName%7D/region#GET Will give you the list of valid regions for a given project. You do not have to bother with the project "version". The API handles it.
The same applies for the flavors with https://api.ovh.com/console/#/cloud/project/%7BserviceName%7D/flavor#GET
Documentation is not really OVH stronger point. Ahem...
A few things have change in OVH lately.
The example command:
fails with (for example):
A few notes:
There are new regions name and new flavour names
This is as far as I manage to get it to work: