Classes and utility methods for datastore selection.
Bases: object
Class for selecting datastores which satisfy input requirements.
Get vCenter profile ID for the given profile name.
Parameters: | profile_name – profile name |
---|---|
Returns: | vCenter profile ID |
Raises: | ProfileNotFoundException |
Check if the datastore is compliant with given profile.
Parameters: |
|
---|---|
Returns: | True if the datastore is compliant; False otherwise |
Raises: | ProfileNotFoundException |
Selects a datastore satisfying the given requirements.
A datastore which is connected to maximum number of hosts is selected. Ties if any are broken based on space utilization– datastore with least space utilization is preferred. It returns the selected datastore’s summary along with a host and resource pool where the volume can be created.
Parameters: |
|
---|---|
Returns: | (host, resourcePool, summary) |