/** * Get a secondary dns domain. * @param integer $id The id of the secondary dns domain. * @return \DNSMadeEasy\Result */ public function get($id) { return $this->_driver->get("/dns/secondary/{$id}"); }
/** * Get a record for a secondary dns domain. * @param integer $domainId The id of the secondary dns domain. * @param integer $recordId The id of the record. * @return \DNSMadeEasy\Result */ public function get($domainId, $recordId) { return $this->_driver->get("/dns/secondary/{$domainId}/records/{$recordId}"); }
/** * Get a failover monitor. * @param integer $id The id of the failover monitor. * @return \DNSMadeEasy\Result */ public function get($id) { return $this->_driver->get("/monitor/{$id}"); }
/** * Get a record for a domain by record name. * @param integer $domainId The id of the domain. * @param string $recordName The name of the record. * @param string $type The type of record. * @return \DNSMadeEasy\Result */ public function getRecord($domainId, $recordName, $type = null) { return $this->_driver->get("/dns/managed/{$domainId}/records{?recordName,type}", array('recordName' => $recordName, 'type' => $type)); }
/** * Get one domain by its domainname. * @param string $domainname * @return \DNSMadeEasy\Result */ public function getByName($domainname) { return $this->_driver->get("/dns/managed/name?domainname={$domainname}"); }
/** * Get one domain by its id. * @param integer $id * @return \DNSMadeEasy\Result */ public function get($id) { return $this->_driver->get("/dns/managed/{$id}"); }
/** * Get usage for a secondary domain. * @param integer $year The year. * @param integer $month The month. * @param unknown $secondaryId The id of the secondary domain. * @return \DNSMadeEasy\Result */ public function getByMonthForSecondary($year, $month, $secondaryId) { return $this->_driver->get("/usageApi/queriesApi/{$year}/{$month}/secondary/{$secondaryId}"); }
/** * Get records for a template by record type. * @param integer $templateId The id of the template. * @param string $type The record type. * @param integer $amount An optional parameter restricting the result to be x amount per page. * @param integer $page An optional parameter to return the results on page y. * @return \DNSMadeEasy\Result */ public function getByType($templateId, $type, $amount = null, $page = null) { return $this->_driver->get("/dns/template/{$templateId}/records{?type,rows,page}", array('type' => $type, 'amount' => $amount, 'page' => $page)); }
/** * Get a template by its id. * @param integer $id The id of the template. * @return \DNSMadeEasy\Result */ public function get($id) { return $this->_driver->get("/dns/template/{$id}"); }
/** * Get a folder by its id. * @param integer $id The id of the folder. * @return \DNSMadeEasy\Result */ public function get($id) { return $this->_driver->get("/security/folder/{$id}"); }
/** * Get a transfer ACL by its id. * @param integer $id The id of the transfer acl. * @return \DNSMadeEasy\Result */ public function get($id) { return $this->_driver->get("/dns/transferAcl/{$id}"); }
/** * Get a vanity DNS configuration by its id. * @param integer $id The id of the vanity DNS configuration. * @return \DNSMadeEasy\Result */ public function get($id) { return $this->_driver->get("/dns/vanity/{$id}"); }
/** * @covers DNSMadeEasy\driver\REST::get */ public function testGet() { $result = $this->rest->get('/dns/managed'); $this->assertInstanceOf('DNSMadeEasy\\Result', $result, 'The result should be of the type DNSMadeEasy\\Result'); }