@@ 53-67 (lines=15) @@ | ||
50 | * balancer. This only applies to gray-clouded (unproxied) load balancers. |
|
51 | * @param bool|null $proxied Whether the hostname should be gray clouded (false) or orange clouded (true). |
|
52 | */ |
|
53 | public function create($zone_identifier, $name, $fallback_pool, $default_pools, $description = null, $ttl = null, $region_pools = null, $pop_pools = null, $proxied = null) |
|
54 | { |
|
55 | $data = [ |
|
56 | 'name' => $name, |
|
57 | 'fallback_pool' => $fallback_pool, |
|
58 | 'default_pools' => $default_pools, |
|
59 | 'description' => $description, |
|
60 | 'ttl' => $ttl, |
|
61 | 'region_pools' => $region_pools, |
|
62 | 'pop_pools' => $pop_pools, |
|
63 | 'proxied' => $proxied, |
|
64 | ]; |
|
65 | ||
66 | return $this->post('/zones/'.$zone_identifier.'/load_balancers', $data); |
|
67 | } |
|
68 | ||
69 | /** |
|
70 | * Load balancer details |
|
@@ 105-119 (lines=15) @@ | ||
102 | * balancer. This only applies to gray-clouded (unproxied) load balancers. |
|
103 | * @param bool|null $proxied Whether the hostname should be gray clouded (false) or orange clouded (true). |
|
104 | */ |
|
105 | public function update($zone_identifier, $identifier, $name, $fallback_pool, $default_pools, $description = null, $ttl = null, $region_pools = null, $pop_pools = null, $proxied = null) |
|
106 | { |
|
107 | $data = [ |
|
108 | 'name' => $name, |
|
109 | 'fallback_pool' => $fallback_pool, |
|
110 | 'default_pools' => $default_pools, |
|
111 | 'description' => $description, |
|
112 | 'ttl' => $ttl, |
|
113 | 'region_pools' => $region_pools, |
|
114 | 'pop_pools' => $pop_pools, |
|
115 | 'proxied' => $proxied, |
|
116 | ]; |
|
117 | ||
118 | return $this->patch('/zones/'.$zone_identifier.'/load_balancers/'.$identifier, $data); |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * Delete a load balancer |