VMware PBM service client and PBM related utility methods
PBM is used for policy based placement in VMware datastores. Refer http://goo.gl/GR2o6U for more details.
Bases: oslo_vmware.service.Service
Service class that provides access to the Storage Policy API.
Set the specified vCenter session cookie in the SOAP header
Parameters: | cookie – cookie to set |
---|
Convert given datastore morefs to PbmPlacementHub morefs.
Parameters: |
|
---|---|
Returns: | list of PbmPlacementHub morefs |
Get filtered subset of datastores corresponding to the given hub list.
Parameters: |
|
---|---|
Returns: | subset of datastores corresponding to the given hub list |
Filter and return hubs that match the given profile.
Parameters: |
|
---|---|
Returns: | subset of hubs that match the given profile |
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException |
Get all the profiles defined in VC server.
Returns: | PbmProfile data objects |
---|---|
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException |
Return PBM WSDL file location corresponding to VC version.
Parameters: | vc_version – a dot-separated version string. For example, “1.2”. |
---|---|
Returns: | the pbm wsdl file location. |
Get the profile UUID corresponding to the given profile name.
Parameters: | profile_name – profile name whose UUID needs to be retrieved |
---|---|
Returns: | profile UUID string or None if profile not found |
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException |
Query storage profiles associated with the given vm.
Parameters: |
|
---|---|
Returns: | profile IDs |
Get storage profiles by IDs.
Parameters: |
|
---|---|
Returns: | profile objects |