class DynamicDnsUpdateService (View source)

Methods

__construct(DynamicDnsValidationService $validationService, DynamicDnsAuthenticationService $authService, DynamicDnsRepositoryInterface $repository, LegacyLogger|null $auditLogger = null, IpAddressRetriever|null $ipRetriever = null)

No description

string
processUpdate(DynamicDnsRequest $request)

No description

array
applyForUser(User $user, string $username, HostnameValue $hostname, IpAddressList $ipList, bool $dualstackUpdate, array|null $allowedZoneIds = null)

Apply an update for a user that was already authenticated by the caller (e.g. via API key).

Details

__construct(DynamicDnsValidationService $validationService, DynamicDnsAuthenticationService $authService, DynamicDnsRepositoryInterface $repository, LegacyLogger|null $auditLogger = null, IpAddressRetriever|null $ipRetriever = null)

No description

Parameters

DynamicDnsValidationService $validationService
DynamicDnsAuthenticationService $authService
DynamicDnsRepositoryInterface $repository
LegacyLogger|null $auditLogger
IpAddressRetriever|null $ipRetriever

string processUpdate(DynamicDnsRequest $request)

No description

Parameters

DynamicDnsRequest $request

Return Value

string

array applyForUser(User $user, string $username, HostnameValue $hostname, IpAddressList $ipList, bool $dualstackUpdate, array|null $allowedZoneIds = null)

Apply an update for a user that was already authenticated by the caller (e.g. via API key).

The shared zone-matching and audit-logging logic lives here so any front end can reuse it.

Parameters

User $user
string $username
HostnameValue $hostname
IpAddressList $ipList
bool $dualstackUpdate
array|null $allowedZoneIds

When provided, the resolved zone must be in this list (used to honor an API key's zone scope); null means no additional restriction.

Return Value

array