Contents
Adding an Existing Virtual Machine ........................................................................................ 73
Cloning a Virtual Machine ...................................................................................................... 75
Deleting a Virtual Machine ..................................................................................................... 77
Modifying Virtual Machine Configuration ................................................................................ 79
Managing User Access Rights............................................................................................... 91
Working with Virtual Machine Templates ............................................................................... 94
Events........................................................................................................................... 102
Receiving and Handling Events ........................................................................................... 102
Responding to Parallels Service Questions.......................................................................... 104
Performance Statistics .................................................................................................. 112
Obtaining Performance Statistics......................................................................................... 112
Performance Monitoring ...................................................................................................... 115
Encryption Plug-in......................................................................................................... 121
Encryption Plug-in Basics.................................................................................................... 121
The Encryption API Reference ............................................................................................. 121
Implementing a Plug-in........................................................................................................ 124
Building the Dynamic Library ............................................................................................... 130
Plug-in Installation and Usage ............................................................................................. 130
Parallels Python API Concepts .............................................................................132
Package and Modules ..................................................................................................132
Classes ......................................................................................................................... 133
Class Methods.............................................................................................................. 133
Synchronous Methods ........................................................................................................ 134
Asynchronous Methods....................................................................................................... 134
Error Handling............................................................................................................... 137
Parallels Python API by Example..........................................................................138
Creating a Basic Application ......................................................................................... 138
Connecting to Parallels Service and Logging In ............................................................. 140
Host Operations............................................................................................................ 142
Retrieving Host Configuration Info ....................................................................................... 142
Managing Parallels Service Preferences .............................................................................. 144
Virtual Machine Operations............................................................................................ 145
Obtaining the Virtual Machine List........................................................................................ 146
Searching for a Virtual Machine ........................................................................................... 147