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.

Module prlsdkapi.prlsdk Class BaseServer<br />

login(Server, host, user, password, port=0, secur level=LOW, session uuid=,<br />

timeout=0)<br />

secur level – see prlsdk.consts.PSL xxx Login operation should be performed<br />

before to allow further server operations. Through Result object you could<br />

check that operation is finished. All method that checks for connection will<br />

wait until login finished.<br />

Return Value<br />

Result object<br />

login local(Server, port=0, secur level=LOW, session uuid=)<br />

secur level – see prlsdk.consts.PSL xxx Login operation should be performed<br />

before to allow further server operations. Through Result object you could<br />

check that operation is finished. All method that checks for connection will<br />

wait until login finished.<br />

Return Value<br />

Result object<br />

logoff(Server)<br />

Logoff operation will finish interactive connection session.<br />

Return Value<br />

Job object<br />

reg event handler(Server, handler, user data=None)<br />

Register server event handler. handler should take 2 arguments: Event object,<br />

user data.<br />

shutdown(srv, Srv, force=False)<br />

Let to shutdown server connection established with<br />

Return Value<br />

Job<br />

unreg event handler(Server, handler)<br />

Unregister server event handler.<br />

Inherited from prlsdkapi.prlsdk.Base(Section 2.4)<br />

cmp (), repr ()<br />

Inherited from object<br />

110

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

Saved successfully!

Ooh no, something went wrong!