05.08.2013 Views

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Package prlsdkapi Class Server<br />

fs rename dir(self, path, new path)<br />

Rename the specified directory. This is an asynchronous method.<br />

Parameters<br />

path: Name and path of the directory to rename.<br />

new path: The new directory name and path.<br />

Return Value<br />

A Job object.<br />

update licence(self, key, user, company)<br />

Update the <strong>Parallels</strong> license. This is an asynchronous method.<br />

Parameters<br />

key: A string containing the license key.<br />

user: License user name.<br />

company: License company name.<br />

Return Value<br />

A Job object.<br />

send answer(self, answer event)<br />

Send an answer to the <strong>Parallels</strong> Service in response to a question. This is an<br />

asynchronous method.<br />

Parameters<br />

answer event: An Event object containing the answer.<br />

Return Value<br />

A Job object.<br />

search vms(self, vm list=None)<br />

Search for unregistered virtual machines at the specified location(s) on the<br />

host and return their information. This is an asynchronous method.<br />

Parameters<br />

vm list: A list of pathnames to search. Default value searches all<br />

available drives and directories.<br />

Return Value<br />

A Result object containing a list of FoundVm objects, each<br />

containing information about an individual virtual machine.<br />

19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!