gandi.cli icon indicating copy to clipboard operation
gandi.cli copied to clipboard

Migrating `gandi domain` to v5

Open JulienPalard opened this issue 5 years ago • 2 comments

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 avatar Feb 11 '21 18:02 JulienPalard

@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).

grigouze avatar Feb 12 '21 08:02 grigouze

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

JulienPalard avatar Feb 12 '21 16:02 JulienPalard