1 | <?php |
||
23 | class ConfigApi extends BaseLinodeApi |
||
24 | { |
||
25 | /** |
||
26 | * @param int $NodeBalancerID [required] The parent NodeBalancer's ID |
||
27 | * @param int $Port [optional] Port to bind to on the public interfaces. 1-65534 |
||
28 | * @param string $Protocol [optional] Either 'tcp', 'http', or 'https' |
||
29 | * @param string $Algorithm [optional] Balancing algorithm. One of 'roundrobin', 'leastconn', 'source' |
||
30 | * @param string $Stickiness [optional] Session persistence. One of 'none', 'table', 'http_cookie' |
||
31 | * @param string $check [optional] Perform active health checks on the backend nodes. One of 'connection', 'http', 'http_body' |
||
32 | * @param int $check_interval [optional] Seconds between health check probes. 2-3600 |
||
33 | * @param string $check_timeout [optional] Seconds to wait before considering the probe a failure. 1-30. Must be less than check_interval. |
||
34 | * @param string $check_attempts [optional] Number of failed probes before taking a node out of rotation. 1-30 |
||
35 | * @param string $check_path [optional] When check=http, the path to request |
||
36 | * @param string $check_body [optional] When check=http, a regex to match within the first 16,384 bytes of the response body |
||
37 | * @param bool $check_passive [optional] Enable passive checks based on observing communication with back-end nodes. |
||
38 | * @param string $ssl_cert [optional] SSL certificate served by the NodeBalancer when the protocol is 'https' |
||
39 | * @param string $ssl_key [optional] Unpassphrased private key for the SSL certificate when protocol is 'https' |
||
40 | * @param string $cipher_suite [optional] SSL cipher suite to enforce. One of 'recommended', 'legacy' |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | 1 | public function create($NodeBalancerID, $Port = null, $Protocol = null, $Algorithm = null, $Stickiness = null, $check = null, $check_interval = null, $check_timeout = null, $check_attempts = null, $check_path = null, $check_body = null, $check_passive = null, $ssl_cert = null, $ssl_key = null, $cipher_suite = null) |
|
64 | |||
65 | /** |
||
66 | * Deletes a NodeBalancer's Config. |
||
67 | * |
||
68 | * @param int $NodeBalancerID [required] |
||
69 | * @param int $ConfigID [required] The ConfigID to delete |
||
70 | * |
||
71 | * @return array |
||
72 | */ |
||
73 | 1 | public function delete($NodeBalancerID, $ConfigID) |
|
80 | |||
81 | /** |
||
82 | * Returns a list of NodeBalancers this user has access or delete to, including their properties. |
||
83 | * |
||
84 | * @param int $NodeBalancerID [required] |
||
85 | * @param int $ConfigID [optional] Limits the list to the specified ConfigID |
||
86 | * |
||
87 | * @return array |
||
88 | */ |
||
89 | 1 | public function getList($NodeBalancerID, $ConfigID = null) |
|
96 | |||
97 | /** |
||
98 | * Updates a Config's properties. |
||
99 | * |
||
100 | * @param int $ConfigID [required] |
||
101 | * @param int $Port [optional] Port to bind to on the public interfaces. 1-65534 |
||
102 | * @param string $Protocol [optional] Either 'tcp', 'http', or 'https' |
||
103 | * @param string $Algorithm [optional] Balancing algorithm. One of 'roundrobin', 'leastconn', 'source' |
||
104 | * @param string $Stickiness [optional] Session persistence. One of 'none', 'table', 'http_cookie' |
||
105 | * @param string $check [optional] Perform active health checks on the backend nodes. One of 'connection', 'http', 'http_body' |
||
106 | * @param int $check_interval [optional] Seconds between health check probes. 2-3600 |
||
107 | * @param string $check_timeout [optional] Seconds to wait before considering the probe a failure. 1-30. Must be less than check_interval. |
||
108 | * @param string $check_attempts [optional] Number of failed probes before taking a node out of rotation. 1-30 |
||
109 | * @param string $check_path [optional] When check=http, the path to request |
||
110 | * @param string $check_body [optional] When check=http, a regex to match within the first 16,384 bytes of the response body |
||
111 | * @param bool $check_passive [optional] Enable passive checks based on observing communication with back-end nodes. |
||
112 | * @param string $ssl_cert [optional] SSL certificate served by the NodeBalancer when the protocol is 'https' |
||
113 | * @param string $ssl_key [optional] Unpassphrased private key for the SSL certificate when protocol is 'https' |
||
114 | * @param string $cipher_suite [optional] SSL cipher suite to enforce. One of 'recommended', 'legacy' |
||
115 | * |
||
116 | * @return array |
||
117 | */ |
||
118 | 1 | public function update($ConfigID, $Port = null, $Protocol = null, $Algorithm = null, $Stickiness = null, $check = null, $check_interval = null, $check_timeout = null, $check_attempts = null, $check_path = null, $check_body = null, $check_passive = null, $ssl_cert = null, $ssl_key = null, $cipher_suite = null) |
|
138 | } |
||
139 |