DomainManagerInterface
interface DomainManagerInterface (View source)
Zone creation, update and deletion.
Methods
Add a domain to the database
Change Zone Type
Ask the backend to retrieve a slave zone from its master now
Ask the backend to send NOTIFY for a primary zone now
Change Slave Zone's Master IP Address
Add a user as an owner of a zone; an existing owner counts as success
Give a zone of a user being deleted to another user; where the user's row carries the zone (API backend) it changes owner, otherwise the new owner is added
Apply a zone template to a zone, or unlink it with template id 0.
Details
ZoneWriteResult
addDomain(string $domain, int|null $owner, string $type, string $slave_master, int|string $zone_template, array $groupIds = [], string|null $soaEditApi = null)
Add a domain to the database
ZoneWriteResult
changeZoneType(string $type, int $id)
Change Zone Type
bool
retrieveZone(int $id)
Ask the backend to retrieve a slave zone from its master now
bool
notifyZone(int $id)
Ask the backend to send NOTIFY for a primary zone now
ZoneWriteResult
changeZoneSlaveMaster(int $zone_id, string $ip_slave_master)
Change Slave Zone's Master IP Address
ZoneWriteResult
addOwnerToZone(int $zone_id, int $user_id)
Add a user as an owner of a zone; an existing owner counts as success
ZoneWriteResult
handOverZone(int $zone_id, int $from_user_id, int $to_user_id)
Give a zone of a user being deleted to another user; where the user's row carries the zone (API backend) it changes owner, otherwise the new owner is added
ZoneWriteResult
updateZoneRecords(int $dns_ttl, int $zone_id, int $zone_template_id)
Apply a zone template to a zone, or unlink it with template id 0.