Lue dans les fichiers PHP du paquet au commit c5a5665373db : 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é.
OvhFactoryclassOVHcloud, from its options:
6 options · 1 method
OvhProviderclassOVHcloud's API through ovh/ovh: a domain's offers read in an order cart, a registration as a cart checked out, a renewal through the services API, the account's domains (/domain), their name servers and their zones' records (/domain/zone), each change of a zone followed by its refresh.
15 methods
Omnidns\Ovh
OvhFactory class
final class OvhFactory extends ProviderFactory OvhFactory.php:26
OVHcloud, from its options:
application_key, application_secret, consumer_key the API's credentials (required): an application created at https://eu.api.ovh.com/createToken/ with the rights it needs - GET/POST on /order/cart*, GET/PUT/POST on /domain*, DELETE on /domain/zone/* (delete(), an update() that changes a record's type), GET/POST on /service/* endpoint ovh-eu (also ovh-ca, ovh-us, kimsufi-eu... or a URL) subsidiary the OVHcloud company carts are opened with: FR, DE, GB, CA... auto_pay true: an order is paid at once with the account's preferred means of payment; false (the default): the order waits for its payment at Order::$paymentUrl
ovh/ovh signs every call; it sends them with Guzzle - the client given to this factory, or its own.
Options
| Option | Default | |
|---|---|---|
endpoint | 'ovh-eu' | |
subsidiary | 'FR' | |
auto_pay | false | |
application_key | required | |
application_secret | required | |
consumer_key | required |
OvhFactory::__construct()
public function __construct(readonly ?Client $http = null)OvhProvider class
final class OvhProvider implements AvailabilityInterface, RegistrarInterface, DomainsInterface, NameserversInterface, DnsInterface OvhProvider.php:34
OVHcloud's API through ovh/ovh: a domain's offers read in an order cart, a registration as a cart checked out, a renewal through the services API, the account's domains (/domain), their name servers and their zones' records (/domain/zone), each change of a zone followed by its refresh.
OvhProvider::__construct()
public function __construct(readonly Api $api, readonly string $subsidiary = 'FR', readonly bool $autoPay = false)OvhProvider::getName()
public function getName(): stringOvhProvider::getTitle()
public function getTitle(): stringOvhProvider::capabilities()
public function capabilities(): CapabilitiesOvhProvider::check()
public function check(string $domain): AvailabilityOvhProvider::register()
public function register(string $domain, int $years = 1, ?Contact $owner = null): OrderOvhProvider::renew()
public function renew(string $domain, int $years = 1): OrderOvhProvider::domains()
public function domains(): arrayOvhProvider::domain()
public function domain(string $domain): DomainInfoOvhProvider::nameservers()
public function nameservers(string $domain): arrayOvhProvider::setNameservers()
public function setNameservers(string $domain, array $nameservers): voidOvhProvider::records()
public function records(string $zone, ?string $type = null, ?string $name = null): arrayOvhProvider::add()
public function add(string $zone, Record $record): RecordOvhProvider::update()
public function update(string $zone, Record $current, Record $new): RecordOvhProvider::delete()
public function delete(string $zone, Record $record): void