1 | <?php |
||
23 | class NodeApi extends BaseLinodeApi |
||
24 | { |
||
25 | /** |
||
26 | * @param int $ConfigID [required] The parent ConfigID to attach this Node to |
||
27 | * @param string $Label [required] This backend Node's label |
||
28 | * @param string $Address [required] The address:port combination used to communicate with this Node |
||
29 | * @param int $Weight [optional] Load balancing weight, 1-255. Higher means more connections. |
||
30 | * @param string $Mode [optional] The connections mode for this node. One of 'accept', 'reject', or 'drain' |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | 1 | public function create($ConfigID, $Label, $Address, $Weight = null, $Mode = null) |
|
44 | |||
45 | /** |
||
46 | * Deletes a Node from a NodeBalancer Config. |
||
47 | * |
||
48 | * @param int $NodeID [required] The NodeID to delete |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | 1 | public function delete($NodeID) |
|
58 | |||
59 | /** |
||
60 | * Returns a list of Nodes associated with a NodeBalancer Config. |
||
61 | * |
||
62 | * @param int $ConfigID [required] |
||
63 | * @param int $NodeID [optional] Limits the list to the specified NodeID |
||
64 | * |
||
65 | * @return array |
||
66 | */ |
||
67 | 1 | public function getList($ConfigID, $NodeID = null) |
|
74 | |||
75 | /** |
||
76 | * Updates a Node's properties. |
||
77 | * |
||
78 | * @param int $NodeID [required] |
||
79 | * @param string $Label [optional] This backend Node's label |
||
80 | * @param string $Address [optional] The address:port combination used to communicate with this Node |
||
81 | * @param int $Weight [optional] Load balancing weight, 1-255. Higher means more connections. |
||
82 | * @param string $Mode [optional] The connections mode for this node. One of 'accept', 'reject', or 'drain' |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | 1 | public function update($NodeID, $Label = null, $Address = null, $Weight = null, $Mode = null) |
|
96 | } |
||
97 |