The VMware API utility module.
Bases: object
Context to retrieve results.
This context provides an iterator to retrieve results and cancel (when needed) retrieve operation on __exit__.
Example:
- with WithRetrieval(vim, retrieve_result) as objects:
- for obj in objects:
- # Use obj
Builds the object spec.
Parameters: |
|
---|---|
Returns: | object spec |
Builds the property filter spec.
Parameters: |
|
---|---|
Returns: | property filter spec |
Builds the property spec.
Parameters: |
|
---|---|
Returns: | property spec |
Builds recursive traversal spec to traverse managed object hierarchy.
Parameters: | client_factory – factory to get API input specs |
---|---|
Returns: | recursive traversal spec |
Builds the selection spec.
Parameters: |
|
---|---|
Returns: | selection spec |
Builds the traversal spec.
Parameters: |
|
---|---|
Returns: | traversal spec |
Cancels the retrieve operation if necessary.
Parameters: |
|
---|---|
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException |
Continue retrieving results, if available.
Parameters: |
|
---|---|
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException |
Looks for an existing extension.
Parameters: |
|
---|---|
Returns: | the data object Extension or None |
Build a HTTP service request spec.
Parameters: |
|
---|
Get the inventory path of a managed entity.
Parameters: |
|
---|---|
Returns: | inventory path of the entity_ref |
Get managed object reference.
Parameters: |
|
---|---|
Returns: | managed object reference with given value and type |
Get properties of the given managed object.
Parameters: |
|
---|---|
Returns: | properties of the given managed object |
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException |
Get properties of the given managed object as a dict.
Parameters: |
|
---|---|
Returns: | a dict of properties of the given managed object |
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException |
Get property of the given managed object.
Parameters: |
|
---|---|
Returns: | property of the given managed object |
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException |
Get all managed object references of the given type.
It is the caller’s responsibility to continue or cancel retrieval.
Parameters: |
|
---|---|
Returns: | all managed object references of the given type |
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException |
Return the dot-separated vCenter version string. For example, “1.2”.
Parameters: | session – vCenter soap session |
---|---|
Returns: | vCenter version |
Create a new extention.
Parameters: |
|
---|