The nova.virt.vmwareapi.vim Module

Classes for making VMware VI SOAP calls.

class VIMMessagePlugin

Bases: suds.plugin.MessagePlugin

addAttributeForValue(node)
marshalled(context)

suds will send the specified soap envelope. Provides the plugin with the opportunity to prune empty nodes and fixup nodes before sending it to the server.

class Vim(protocol='https', host='localhost')

The VIM Object.

get_service_content()

Gets the service content object.

static get_soap_url(protocol, host_name)

Calculates the location of the SOAP services for a particular server. Created as a static method for testing.

Parameters:
  • protocol – https or http
  • host_name – localhost or other vSphere server name
Returns:

the url to the active vSphere WS Management API

static get_wsdl_url(protocol, host_name)

allows override of the wsdl location, making this static means we can test the logic outside of the constructor without forcing the test environment to have multiple valid wsdl locations to test against.

Parameters:
  • protocol – https or http
  • host_name – localhost or other server name
Returns:

string to WSDL location for vSphere WS Management API

Previous topic

The nova.virt.vmwareapi.vif Module

Next topic

The nova.virt.vmwareapi.vim_util Module

This Page