����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 18.221.79.24
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/public_html/vendor/rackspace/php-opencloud/doc/services/compute/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/builderbox/public_html/vendor/rackspace/php-opencloud/doc/services/compute/flavors.rst
Flavors
=======

Get a flavor
------------

.. code-block:: php

  $flavor = $service->flavor('{flavorId}');


List flavors
------------

.. code-block:: php

  $flavors = $service->flavorList();

  foreach ($flavors as $flavor) {
      /** @param $flavor OpenCloud\Common\Resource\FlavorInterface */
  }

`Get the executable PHP script for this example <https://raw.githubusercontent.com/rackspace/php-opencloud/master/samples/Compute/list_flavors.php>`_


Detailed results
~~~~~~~~~~~~~~~~

By default, the ``flavorList`` method returns full details on all flavors.
However, because of the overhead involved in retrieving all the details, this
function can be slower than might be expected. To disable this feature and
keep bandwidth at a minimum, just pass ``false`` as the first argument:

.. code-block:: php

  // Name and ID only
  $compute->flavorList(false);


Filtering
~~~~~~~~~

You can also refine the list of images returned by providing specific filters:

+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Array key       | Description                                                                                                                                                                                    |
+=================+================================================================================================================================================================================================+
| minDisk         | Filters the list of flavors to those with the specified minimum number of gigabytes of disk storage.                                                                                           |
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| minRam          | Filters the list of flavors to those with the specified minimum amount of RAM in megabytes.                                                                                                    |
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| marker          | The ID of the last item in the previous list. See the `official docs <http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Paginated_Collections-d1e664.html>`__ for more information. |
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| limit           | Sets the page size. See the `official docs <http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Paginated_Collections-d1e664.html>`__ for more information.                           |
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

These are defined in an array and passed in as the second argument. For example,
to return all flavors over 4GB in RAM:

.. code-block:: php

  $flavors = $service->flavorList(true, array('minRam' => 4));

Youez - 2016 - github.com/yon3zu
LinuXploit