Gandi / gandi.cli

⚠ ARCHIVED - Command line interface to Gandi.net products using the public API
http://cli.gandi.net/
GNU General Public License v3.0
347 stars 62 forks source link

gandi setup output #292

Open Marc-marc-marc opened 5 years ago

Marc-marc-marc commented 5 years ago

in README.md, the current output is

$ gandi setup

API Key: x134z5x4c5c # copy-paste your api key Environment [production] : # press enter for Production, the default SSH key [~/.ssh/id_rsa.pub] : # your SSH public key for hosting instances and servers

my output

$ uname -a Linux localhost.localdomain 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ gandi --version Gandi CLI 1.5 $ gandi setup Api key (xmlrpc) [...]: Environnment [production]/ote (production, ote): SSH keyfile [~/.ssh/id_rsa.pub]: Api key (REST) [...]:

I could also be a good idea to provide xmlrpc<>REST info : xmlrpc v4 only <> REST only with v5 ?

minusf commented 4 years ago

i have the same issue. perhaps this tool is not compatible with gandi v5?

grigouze commented 4 years ago

The command compatible with v5/REST is "dns domain.list". All others are v4/xmlrpc.

minusf commented 4 years ago

which API key is the one coming from the admin? xmlrpc or REST? the setup instructions show a different gandi setup than i get from the package...

grigouze commented 4 years ago

Can you please provide the url of the admin ?

Le lun. 2 déc. 2019 à 11:48, minusf notifications@github.com a écrit :

which API key is the one coming from the admin? xmlrpc or REST?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Gandi/gandi.cli/issues/292?email_source=notifications&email_token=AAC3WF2DRNVHX5VYO7HGET3QWTRXVA5CNFSM4ILNQ4Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFTCFUA#issuecomment-560341712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC3WF4C2VX66TJXBQNIODLQWTRXVANCNFSM4ILNQ4QQ .

minusf commented 4 years ago

"Account security" https://account.gandi.net/en/users/my_user_name/security

grigouze commented 4 years ago

This one is for the REST API

Le lun. 2 déc. 2019 à 12:03, minusf notifications@github.com a écrit :

"Account security" https://account.gandi.net/en/users/my_user_name/security

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Gandi/gandi.cli/issues/292?email_source=notifications&email_token=AAC3WF3JKVTT3SYYYKON26DQWTTQ7A5CNFSM4ILNQ4Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFTDSUI#issuecomment-560347473, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC3WF2VWGSRQ5HZ74E6X4DQWTTQ7ANCNFSM4ILNQ4QQ .

aegiap commented 4 years ago

You can find your key for the XML-RPC API in our https://v4.gandi.net site in https://v4.gandi.net/admin/api_key and the key for the REST API in https://account.gandi.net/en/users//security

eppfel commented 4 years ago

This is becoming ridiculous. You are phasing out the v4 interface but still require a v4 API key. Please put some manpower behind this tool, so it does not become worthless.

Screenshot 2020-02-05 at 11 39 43

romuald commented 4 years ago

(sorry about the noise, wrong issue)

axelsimon commented 3 years ago

This is becoming ridiculous. You are phasing out the v4 interface but still require a v4 API key. Please put some manpower behind this tool, so it does not become worthless.

Screenshot 2020-02-05 at 11 39 43

I'm sorry to say that i agree, and to add insult to injury, following the instructions in the README creates an unusable configuration. The Getting Started section of the README makes it look as easy as generating and copy/pasting an API key, but in reality gandi.cli (v 1.6) asks you for two different API key and the README doesn't even tell you which one it is.

Worse, trying to log in to v4.gandi.net is impossible, as it now redirects you to admin.gandi.net, making impossible to generate an XML-RPC API key at https://v4.gandi.net/admin/api_key as suggested by @aegiap.