Lue dans les fichiers PHP du paquet au commit f35aa1b48045 : ses espaces de noms, classes, interfaces et énumérations, leurs constantes, propriétés et méthodes publiques avec leur PHPDoc, et les options que prennent ses fabriques. Rien n’en est exécuté.
GandiFactoryclassGandi, from its options:
4 options · 1 method
GandiProviderclassGandi's API v5: /domain for availability, orders, the domains and their name servers; /livedns for the records. LiveDNS keeps a name and a type's values together (an rrset) under one TTL: a record here is one value of it, known by its name, type and content (Gandi gives no id); adding one extends its rrset, deleting the last one removes it.
15 methods · 1 constant
Omnidns\Gandi
GandiFactory class
final class GandiFactory extends ProviderFactory GandiFactory.php:20
Gandi, from its options:
token a personal access token (required), made in Gandi's admin with the rights it needs: "See and renew domain names", "Manage domain name technical configurations" (LiveDNS), "Register domain names" for a registration sharing_id the organization billed and owning, when it is not the token's own endpoint https://api.gandi.net/v5 (Gandi's sandbox: https://api.sandbox.gandi.net/v5) dry_run true: a registration or a renewal is checked by Gandi and not made (Dry-Run: 1)
Options
| Option | Default | |
|---|---|---|
sharing_id | '' | |
endpoint | GandiProvider::ENDPOINT | |
dry_run | false | |
token | required |
GandiFactory::__construct()
public function __construct(readonly HttpClientInterface $http)GandiProvider class
final class GandiProvider implements AvailabilityInterface, RegistrarInterface, DomainsInterface, NameserversInterface, DnsInterface GandiProvider.php:30
Gandi's API v5: /domain for availability, orders, the domains and their name servers; /livedns for the records. LiveDNS keeps a name and a type's values together (an rrset) under one TTL: a record here is one value of it, known by its name, type and content (Gandi gives no id); adding one extends its rrset, deleting the last one removes it.
const ENDPOINT = 'https://api.gandi.net/v5'
GandiProvider::__construct()
public function __construct(readonly HttpClientInterface $http, readonly string $token, readonly ?string $sharingId = null, readonly string $endpoint = self::ENDPOINT, readonly bool $dryRun = false)GandiProvider::getName()
public function getName(): stringGandiProvider::getTitle()
public function getTitle(): stringGandiProvider::capabilities()
public function capabilities(): CapabilitiesGandiProvider::check()
public function check(string $domain): AvailabilityGandiProvider::register()
public function register(string $domain, int $years = 1, ?Contact $owner = null): OrderGandiProvider::renew()
public function renew(string $domain, int $years = 1): OrderGandiProvider::domains()
public function domains(): arrayGandiProvider::domain()
public function domain(string $domain): DomainInfoGandiProvider::nameservers()
public function nameservers(string $domain): arrayGandiProvider::setNameservers()
public function setNameservers(string $domain, array $nameservers): voidGandiProvider::records()
public function records(string $zone, ?string $type = null, ?string $name = null): arrayGandiProvider::add()
public function add(string $zone, Record $record): RecordGandiProvider::update()
public function update(string $zone, Record $current, Record $new): RecordGandiProvider::delete()
public function delete(string $zone, Record $record): void