vmware.vsphere.datastore.cluster¶
- vmware.vsphere.datastore.cluster.get(attr_name, attr_value, obj, **kwargs):
Get a specific datastore-clusters identified by an attribute. Will only return the first object that matches
- Parameters:
attr_name – Name of the attribute that shall be used for selecting the object. Using “rel_path” will fail and generate an error
attr_value – Value which attr_name must contain
obj (object) – The object within we shall search for the datastore-cluster
- Returns:
First object that matched the selection. Returns bool:False if no match was found
- Return type:
object
- Keyword Arguments:
vc_obj (
object) vCenter-object that was created by vmware.vsphere.get_content(). This will overwrite the object that was registered as default by vmware.vsphere.default()
- vmware.vsphere.datastore.cluster.get_datastores(obj, **kwargs):
Get a list of all datastore within the datastore-cluster
- Parameters:
obj (object) – The datastore-cluster-object
- Returns:
List of objects
- Return type:
list
- vmware.vsphere.datastore.cluster.get_dict(obj, **kwargs):
This function is not yet implemented
- vmware.vsphere.datastore.cluster.get_list(obj, **kwargs):
Get all datastore-clusters beneath the object and return a list. This function requires the vCenter-object to be present (passed within kwargs or present as default)
- Parameters:
obj (object) – The object within we shall search for datastore-clusters
- Returns:
List of objects
- Return type:
list
- Keyword Arguments:
vc_obj (
object) vCenter-object that was created by vmware.vsphere.get_content(). This will overwrite the object that was registered as default by vmware.vsphere.default()
- vmware.vsphere.datastore.cluster.get_vms(obj, **kwargs):
Get a list of all VMs using the datastore-cluster
- Parameters:
obj (object) – The datastore-cluster-object
- Returns:
List of objects
- Return type:
list
- vmware.vsphere.datastore.cluster.is_datastore_cluster(obj):
Check if passed object is a datastore-cluster
- Parameters:
obj (object) – The object
- Returns:
True if it is a datastore-cluster, false if not
- Return type:
bool
- vmware.vsphere.datastore.cluster.is_type(obj):
Check if passed object is a datastore-cluster
- Parameters:
obj (object) – The object
- Returns:
True if it is a datastore-cluster, false if not
- Return type:
bool