Snap shots on the command-line interface
Use the command-line interface to administer snap shots of classic virtual system instances.
Snapshots object
>>> myvs = deployer.virtualsystems['my virtualsystem'][0]
>>> myvs.snapshots
Objects of this type are used to create,
delete, iterate over, list and search for snapshots on the system.VirtualSystem.createSnapshot()
The following example accesses
snapshots:VirtualSystem.snapshots
To get help on the command-line interface for the snapshots object,
pass the name of the object as an argument to the help() function. See the
following example: >>> help(deployer.snapshots)
Snapshot object
A Snapshot object represents a particular snapshot defined on the system. Use the Snapshot object to query and manipulate the snapshot definition on the system. Attributes of the Snapshot object are represented as Jython attributes on the Snapshot object. Relationships between the Snapshot object and other resources on the system are also represented as Jython attributes on the Snapshot object. Manipulate these Jython attributes using standard Jython mechanisms to change the corresponding data on the system.
>>> help(deployer.snapshot)
- restore()
- Restores this snapshot.
- virtualsystem
- A VirtualSystem object that
references the classic virtual system instance to
which this Snapshot object belongs.
For more information about the properties and methods supported by VirtualSystem objects, enter the following
command:
>>> help(deployer.virtualsystem)
You can control user and user group access to classic virtual system instances using the ACL object. For more information, see the Related reference section.