����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 3.22.42.249 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/networking/ |
Upload File : |
Security Groups =============== Create a security group ~~~~~~~~~~~~~~~~~~~~~~~ This operation takes one parameter, an associative array, with the following keys: +-------------------+--------------------------------------------------------------------------------+-------------+-------------+-----------------+-------------------------------------+ | Name | Description | Data type | Required? | Default value | Example value | +===================+================================================================================+=============+=============+=================+=====================================+ | ``name`` | A human-readable name for the security group. This name might not be unique. | String | Yes | - | ``new-webservers`` | +-------------------+--------------------------------------------------------------------------------+-------------+-------------+-----------------+-------------------------------------+ | ``description`` | Description of the security group. | String | No | ``null`` | ``security group for webservers`` | +-------------------+--------------------------------------------------------------------------------+-------------+-------------+-----------------+-------------------------------------+ You can create a security group as shown in the following example: .. code-block:: php /** @var $securityGroup OpenCloud\Networking\Resource\SecurityGroup **/ $securityGroup = $networkingService->createSecurityGroup(array( 'name' => 'new-webservers', 'description' => 'security group for webservers' )); `Get the executable PHP script for this example <https://raw.githubusercontent.com/rackspace/php-opencloud/working/samples/Networking/create-security-group.php>`_ List security groups ~~~~~~~~~~~~~~~~~~~~ You can list all the security groups to which you have access as shown in the following example: .. code-block:: php $securityGroups = $networkingService->listSecurityGroups(); foreach ($securityGroups as $securityGroup) { /** @var $securityGroup OpenCloud\Networking\Resource\SecurityGroup **/ } `Get the executable PHP script for this example <https://raw.githubusercontent.com/rackspace/php-opencloud/working/samples/Networking/list-security-groups.php>`_ Get a security group ~~~~~~~~~~~~~~~~~~~~ You can retrieve a specific security group by using that security group’s ID, as shown in the following example: .. code-block:: php /** @var $securityGroup OpenCloud\Networking\Resource\SecurityGroup **/ $securityGroup = $networkingService->getSecurityGroup('{secGroupId}'); `Get the executable PHP script for this example <https://raw.githubusercontent.com/rackspace/php-opencloud/working/samples/Networking/get-security-group.php>`_ Delete a security group ~~~~~~~~~~~~~~~~~~~~~~~ You can delete a security group as shown in the following example: .. code-block:: php $securityGroup->delete(); `Get the executable PHP script for this example <https://raw.githubusercontent.com/rackspace/php-opencloud/working/samples/Networking/delete-security-group.php>`_