Contents
Adding an Existing Virtual Machine ........................................................................................ 72
Cloning a Virtual Machine ...................................................................................................... 74
Deleting a Virtual Machine ..................................................................................................... 76
Modifying Virtual Machine Configuration ................................................................................ 78
Managing User Access Rights ............................................................................................... 90
Working with Virtual Machine Templates ............................................................................... 93
Events ........................................................................................................................ 101
Receiving and Handling Events ........................................................................................... 101
Responding to Parallels Service Questions .......................................................................... 103
Performance Statistics ................................................................................................ 111
Obtaining Performance Statistics ......................................................................................... 111
Performance Monitoring ...................................................................................................... 115
Encryption Plug-in ....................................................................................................... 120
Encryption Plug-in Basics .................................................................................................... 120
The Encryption API Reference ............................................................................................. 120
Implementing a Plug-in ........................................................................................................ 123
Building the Dynamic Library ............................................................................................... 123
Plug-in Installation and Usage ............................................................................................. 124
Parallels Python API Concepts ............................................................................. 125
Package and Modules ................................................................................................. 125
Classes ....................................................................................................................... 126
Class Methods ............................................................................................................ 126
Synchronous Methods ........................................................................................................ 127
Asynchronous Methods ....................................................................................................... 127
Error Handling ............................................................................................................. 130
Parallels Python API by Example .......................................................................... 131
Creating a Basic Application ........................................................................................ 131
Connecting to Parallels Service and Logging In ............................................................ 133
Host Operations .......................................................................................................... 135
Retrieving Host Configuration Info ....................................................................................... 135
Managing Parallels Service Preferences .............................................................................. 137
Virtual Machine Operations .......................................................................................... 138
Obtaining the Virtual Machine List ........................................................................................ 139
Searching for a Virtual Machine ........................................................................................... 140