Example #1
0
 /**
  * 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}");
 }
Example #2
0
 /**
  * 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}");
 }
Example #3
0
 /**
  * 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}");
 }
Example #4
0
 /**
  * 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));
 }
Example #5
0
 /**
  * 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}");
 }
Example #6
0
 /**
  * Get one domain by its id.
  * @param  integer             $id
  * @return \DNSMadeEasy\Result
  */
 public function get($id)
 {
     return $this->_driver->get("/dns/managed/{$id}");
 }
Example #7
0
 /**
  * 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}");
 }
Example #8
0
 /**
  * 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));
 }
Example #9
0
 /**
  * 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}");
 }
Example #10
0
 /**
  * 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}");
 }
Example #11
0
 /**
  * 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}");
 }
Example #12
0
 /**
  * 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}");
 }
Example #13
0
 /**
  * @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');
 }