gandi.cli
gandi.cli copied to clipboard
Migrating `gandi domain` to v5
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
@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).
I bet the right way then is to drop the record command and module.