1 | <?php |
||
23 | class ResourceApi extends BaseLinodeApi |
||
24 | { |
||
25 | /** |
||
26 | * Create a domain record. |
||
27 | * |
||
28 | * @param int $DomainID [required] |
||
29 | * @param string $Type [required] One of: NS, MX, A, AAAA, CNAME, TXT, or SRV |
||
30 | * @param string $Name [optional] The hostname or FQDN. When Type=MX the subdomain to delegate to the Target MX server. |
||
31 | * @param string $Target [optional] When Type=MX the hostname. When Type=CNAME the target of the alias. When Type=TXT the value of the record. When Type=A or AAAA the token of '[remote_addr]' will be substituted with the IP address of the request. |
||
32 | * @param int $Priority [optional] Priority for MX and SRV records, 0-255 |
||
33 | * @param int $Weight [optional] |
||
34 | * @param int $Port [optional] |
||
35 | * @param string $Protocol [optional] The protocol to append to an SRV record. Ignored on other record types. |
||
36 | * @param int $TTL_sec [optional] TTL. Leave as 0 to accept our default. |
||
37 | * |
||
38 | * @return array |
||
39 | */ |
||
40 | 1 | public function create($DomainID, $Type, $Name = null, $Target = null, $Priority = null, $Weight = null, $Port = null, $Protocol = null, $TTL_sec = null) |
|
54 | |||
55 | /** |
||
56 | * @param int $DomainID [required] |
||
57 | * @param int $ResourceID [required] |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | 1 | public function delete($DomainID, $ResourceID) |
|
68 | |||
69 | /** |
||
70 | * @param int $DomainID [required] |
||
71 | * @param int $ResourceID [optional] |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | 1 | public function getList($DomainID, $ResourceID = null) |
|
82 | |||
83 | /** |
||
84 | * Update a domain record. |
||
85 | * |
||
86 | * @param int $DomainID [optional] |
||
87 | * @param int $ResourceID [required] |
||
88 | * @param string $Name [optional] The hostname or FQDN. When Type=MX the subdomain to delegate to the Target MX server. |
||
89 | * @param string $Target [optional] When Type=MX the hostname. When Type=CNAME the target of the alias. When Type=TXT the value of the record. When Type=A or AAAA the token of '[remote_addr]' will be substituted with the IP address of the request. |
||
90 | * @param int $Priority [optional] Priority for MX and SRV records, 0-255 |
||
91 | * @param int $Weight [optional] |
||
92 | * @param int $Port [optional] |
||
93 | * @param string $Protocol [optional] The protocol to append to an SRV record. Ignored on other record types. |
||
94 | * @param int $TTL_sec [optional] TTL. Leave as 0 to accept our default. |
||
95 | * |
||
96 | * @return array |
||
97 | */ |
||
98 | 1 | public function update($DomainID = null, $ResourceID, $Name = null, $Target = null, $Priority = null, $Weight = null, $Port = null, $Protocol = null, $TTL_sec = null) |
|
112 | } |
||
113 |