1 | <?php |
||
23 | class IpApi extends BaseLinodeApi |
||
24 | { |
||
25 | /** |
||
26 | * Assigns a Private IP to a Linode. Returns the IPAddressID that was added. |
||
27 | * |
||
28 | * @param int $LinodeID [required] |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | 1 | public function addPrivate($LinodeID) |
|
38 | |||
39 | /** |
||
40 | * Assigns a Public IP to a Linode. Returns the IPAddressID and IPAddress that was added. |
||
41 | * |
||
42 | * @param int $LinodeID [required] The LinodeID of the Linode that will be assigned an additional public IP address |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | 1 | public function addPublic($LinodeID) |
|
52 | |||
53 | /** |
||
54 | * Returns the IP addresses of all Linodes you have access to. |
||
55 | * |
||
56 | * @param int $LinodeID [optional] If specified, limits the result to this LinodeID |
||
57 | * @param int $IPAddressID [optional] If specified, limits the result to this IPAddressID |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | 1 | public function getList($LinodeID = null, $IPAddressID = null) |
|
68 | |||
69 | /** |
||
70 | * Sets the rDNS name of a Public IP. Returns the IPAddressID and IPAddress that were updated. |
||
71 | * |
||
72 | * @param int $IPAddressID [required] The IPAddressID of the address to update |
||
73 | * @param string $Hostname [required] The hostname to set the reverse DNS to |
||
74 | * |
||
75 | * @return array |
||
76 | */ |
||
77 | 1 | public function setReverseDNS($IPAddressID, $Hostname) |
|
84 | |||
85 | /** |
||
86 | * Exchanges Public IP addresses between two Linodes within a Datacenter. The destination of the IP |
||
87 | * Address can be designated by either the toLinodeID or withIPAddressID parameter. Returns the |
||
88 | * resulting relationship of the Linode and IP Address parameters. When performing a one directional |
||
89 | * swap, the source is represented by the first of the two resultant array members. |
||
90 | * |
||
91 | * @param int $IPAddressID [required] The IPAddressID of an IP Address to transfer or swap |
||
92 | * @param int $withIPAddressID [optional] The IP Address ID to swap |
||
93 | * @param int $toLinodeID [optional] The LinodeID of the Linode where IPAddressID will be transfered |
||
94 | * |
||
95 | * @return array |
||
96 | */ |
||
97 | 1 | public function swap($IPAddressID, $withIPAddressID = null, $toLinodeID = null) |
|
105 | } |
||
106 |