05.08.2013 Views

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Package prlsdkapi Class Server<br />

register vm(self, vm path, non interactive mode=False)<br />

Register an existing virtual machine with the <strong>Parallels</strong> Service. This is an<br />

asynchronous method.<br />

Parameters<br />

vm path: Name and path of the virtual machine<br />

directory.<br />

non interactive mode: Set to True to use interactive mode. Set<br />

to False to use non-interactive mode.<br />

Return Value<br />

An instance of the Vm class containing information about the virtual<br />

machine that was registered.<br />

get vm list(self )<br />

Obtain and return a list of virtual machines from the host.<br />

Return Value<br />

A prlsdk.Result object containing a list of Vm instances. Individual<br />

Vm objects can be extracted using the prlsdk.Result.get param<br />

method.<br />

subscribe to host statistics(self )<br />

Subscribe to receive host statistics on a periodic basis. This is an<br />

asynchronous method.<br />

Return Value<br />

A Job object.<br />

unsubscribe from host statistics(self )<br />

Cancel the host statistics subscription that was started using the<br />

subscribe from host statistics method. This is an asynchronous method.<br />

Return Value<br />

A Job object.<br />

subscribe to perf stats(self )<br />

Subscribe to receive host perfomance statistics on a periodic basis. This is an<br />

asynchronous method.<br />

Return Value<br />

A Job object.<br />

17

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

Saved successfully!

Ooh no, something went wrong!