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

Migrating `gandi domain` to v5 #309

Open JulienPalard opened 3 years ago

JulienPalard commented 3 years ago

I'm trying to port gandi domain list to use the v5 REST API, but I hit something:

The REST API for /v5/domain/domains/{domain} does not give a zone_id.

The commands/record.py file use gandi.domain.info to get a zone_id.

Any Gandi insider having a hint for me?

If of any interest, my branch is here: https://github.com/JulienPalard/gandi.cli/tree/mdk/domain-v5

grigouze commented 3 years ago

@JulienPalard There is no zone_id exported in v5 API. Because LiveDNS don't use it, and v5 API only handle LiveDNS nameservers, not A/B/C (previous default nameservers).

JulienPalard commented 3 years ago

I bet the right way then is to drop the record command and module.