Aller au contenu

omnidns/scaleway Référence de l’API

Étage
Fournisseur · Omnidns
Version
1.x
Suite de conformité
non branchée
Vérifié en réel
Vérifié en partie
Licence
MIT
composer require omnidns/scaleway:1.x-dev

Lue dans les fichiers PHP du paquet au commit 570cf02f7af0 : 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é.

Omnidns\Scaleway

  • ScalewayFactory class

    Scaleway, from its options:

    3 options · 1 method

  • ScalewayProvider class

    Scaleway's Domains and DNS API (v2beta1): the registrar's search, purchase and renewal (/search-domains, /buy-domains, /renew-domains), the project's domains, a zone's name servers and records - a record changed through the zone's PATCH of changes (add, set by id, delete by id).

    15 methods · 1 constant

Omnidns\Scaleway

ScalewayFactory class

final class ScalewayFactory extends ProviderFactory ScalewayFactory.php:18

Scaleway, from its options:

secret_key an API key's secret (required), with DomainsDNSFullAccess (or DomainsDNSReadOnly to read) project_id the project domains are bought into and listed from (required to register; the key's default project otherwise) endpoint https://api.scaleway.com/domain/v2beta1

Options

OptionDefault
project_id''
endpointScalewayProvider::ENDPOINT
secret_keyrequired

ScalewayFactory::__construct()

public function __construct(readonly HttpClientInterface $http)

ScalewayProvider class

final class ScalewayProvider implements AvailabilityInterface, RegistrarInterface, DomainsInterface, NameserversInterface, DnsInterface ScalewayProvider.php:29

Scaleway's Domains and DNS API (v2beta1): the registrar's search, purchase and renewal (/search-domains, /buy-domains, /renew-domains), the project's domains, a zone's name servers and records - a record changed through the zone's PATCH of changes (add, set by id, delete by id).

const ENDPOINT = 'https://api.scaleway.com/domain/v2beta1'

ScalewayProvider::__construct()

public function __construct(readonly HttpClientInterface $http, readonly string $secretKey, readonly ?string $projectId = null, readonly string $endpoint = self::ENDPOINT)

ScalewayProvider::getName()

public function getName(): string

ScalewayProvider::getTitle()

public function getTitle(): string

ScalewayProvider::capabilities()

public function capabilities(): Capabilities

ScalewayProvider::check()

public function check(string $domain): Availability

ScalewayProvider::register()

public function register(string $domain, int $years = 1, ?Contact $owner = null): Order

ScalewayProvider::renew()

public function renew(string $domain, int $years = 1): Order

ScalewayProvider::domains()

public function domains(): array

ScalewayProvider::domain()

public function domain(string $domain): DomainInfo

ScalewayProvider::nameservers()

public function nameservers(string $domain): array

ScalewayProvider::setNameservers()

public function setNameservers(string $domain, array $nameservers): void

ScalewayProvider::records()

public function records(string $zone, ?string $type = null, ?string $name = null): array

ScalewayProvider::add()

public function add(string $zone, Record $record): Record

ScalewayProvider::update()

public function update(string $zone, Record $current, Record $new): Record

ScalewayProvider::delete()

public function delete(string $zone, Record $record): void