# Managed Object - StorageResourceManager(vim.StorageResourceManager)

Property of
  ServiceContent
See also
  ApplyStorageRecommendationResult, Datastore, HostSystem, MethodFault, StorageDrsConfigSpec, StorageIORMConfigOption, StorageIORMConfigSpec, StoragePerformanceSummary, StoragePlacementResult, StoragePlacementSpec, StoragePod
Since
  vSphere API 4.1

## Managed Object Description

This managed object type provides a way to configure resource usage for storage resources.

Properties

Name | Type | Description
--- | --- | ---
None

Methods

Methods defined in this Managed Object
ApplyStorageDrsRecommendation_Task, ApplyStorageDrsRecommendationToPod_Task, CancelStorageDrsRecommendation, ConfigureDatastoreIORM_Task, ConfigureStorageDrsForPod_Task, QueryDatastorePerformanceSummary, QueryIORMConfigOption, RecommendDatastores, RefreshStorageDrsRecommendation, RefreshStorageDrsRecommendationsForPod_Task, ValidateStoragePodConfig

# ApplyStorageDrsRecommendation_Task(applyRecommendation)

Applies a recommendation from the recommendation list that is generated by SDRS initial placement invoked by RecommendDatastore method. In the case of CreateVm and CloneVm a VirtualMachine is returned. Other workflows don't have a return value.

Requires Resource. ApplyRecommendation privilege on the storage pod. Additionally, depending on the workflow where this API is called from, it may require the privileges of invoking one of following APIs:

- CreateVm CreateVM_Task
- AddDisk ReconfigVM_Task
- RelocateVm RelocateVM_Task
- CloneVm CloneVM_Task

Required Privileges
  System.View
Since
  vSphere API 5.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
key P | xsd:string[] | The key fields of the Recommendations that are applied. Since vSphere API 5.0

P Required privilege: key

Return Value

Type | Description
--- | ---
ManagedObjectReference to a VslmTask |

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

# ApplyStorageDrsRecommendationToPod_Task(applyRecommendationToPod)

Applies a recommendation from the recommendation list that is generated by SDRS load balancing activity. Each recommendation can be applied only once.

Requires Resource.ApplyRecommendation privilege on the storage pod. And requires Resource.ColdMigrate privilege on the virtual machine(s) that are relocated. Additionally requires Resource.HotMigrate privilege if the virtual machine is powered on (for Storage VMotion). Also requires Datastore.AllocateSpace on any datastore the virtual machine or its disks are relocated to.

Required Privileges
  System.View
Since
  vSphere API 5.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
pod P | ManagedObjectReference to a StoragePod | The storage pod. Since vSphere API 5.0
key P | xsd:string | The key field of the Recommendation. Since vSphere API 5.0

PRequired privilege - see tooltip for details

Return Value

Type | Description
--- | ---
ManagedObjectReference to a VslmTask |

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

# CancelStorageDrsRecommendation(cancelRecommendation)

Cancels a recommendation. Currently only initial placement recommendations can be cancelled. Migration recommendations cannot.

Required Privileges
  System.View
Since
  vSphere API 5.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
key P | xsd:string[] | The key field of the Recommendation. Since vSphere API 5.0

P Required privilege: key

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="CancelStorageDrsRecommendation" type="vslm:CancelStorageDrsRecommendationRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="CancelStorageDrsRecommendationResponse"> <complexType/> </element>

# ConfigureDatastoreIORM_Task

Changes configuration of storage I/O resource management for a given datastore. The changes are applied to all the backing storage devices for the datastore. Currently we only support storage I/O resource management on VMFS volumes. In order to enable storage I/O resource management on a datstore, we require that all the hosts that are attached to the datastore support this feature. The privilege Datastore.ConfigIOManagement is required on the target datastore.

This method is only supported by vCenter server.

Required Privileges
  None

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
datastore P | ManagedObjectReference to a Datastore | The datastore to be configured. Since vSphere API 4.1
spec P | StorageIORMConfigSpec | The configuration spec. Since vSphere API 4.1

PRequired privilege - see tooltip for details

Return Value

Type | Description
--- | ---
ManagedObjectReference to a VslmTask | This method returns a Task object with which to monitor the operation.

Faults

Type | Description
--- | ---
InaccessibleDatastore | Thrown if cannot access the datastore from any of the hosts.
IORMNotSupportedHostOnDatastore | Thrown if called on a datastore that is connected to a host that does not support storage I/O resource management.
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

# ConfigureStorageDrsForPod_Task(configureStorageDrsForPod)

Change the storage DRS configuration for a pod StoragePod.

Required Privileges
  None
Since
  vSphere API 5.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
pod P | ManagedObjectReference to a StoragePod | The storage pod. Since vSphere API 5.0
spec P | StorageDrsConfigSpec | A set of storage Drs configuration changes to apply to the storage pod. The specification can be a complete set of changes or a partial set of changes, applied incrementally. Since vSphere API 5.0
modify P | xsd:boolean | Flag to specify whether the specification ("spec") should be applied incrementally. If "modify" is false and the operation succeeds, then the configuration of the storage pod matches the specification exactly; in this case any unset portions of the specification will result in unset or default portions of the configuration. Since vSphere API 5.0

PRequired privilege - see tooltip for details

Return Value

Type | Description
--- | ---
ManagedObjectReference to a VslmTask | This method returns a Task object with which to monitor the operation.

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

# QueryDatastorePerformanceSummary(queryDatastorePerformanceSummary)

Returns datastore summary performance statistics.

This is an experimental interface that is not intended for use in production code.

Required Privileges
  System.View
Since
  vSphere API 5.1

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
datastore P | ManagedObjectReference to a Datastore | Datastore for which summary statistics is requested. Since vSphere API 5.1

P Required privilege: datastore

Return Value

Type | Description
--- | ---
StoragePerformanceSummary[] | Summary performance statistics for the datastore. The summary contains latency, throughput, and SIOC activity.

Faults

Type | Description
--- | ---
NotFound | Thrown if input datastore cannot be found
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="QueryDatastorePerformanceSummary" type="vslm:QueryDatastorePerformanceSummaryRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="QueryDatastorePerformanceSummaryResponse"> <complexType> <sequence> <element name="returnval" type="vslm:StoragePerformanceSummary" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> </element>

# QueryIORMConfigOption

Query configuration options for storage I/O resource management.

Required Privileges
  Datastore.Config

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
host P | ManagedObjectReference to a HostSystem | [in] - The host VC will forward the query to. This parameter is ignored by host if this method is called on a host directly. Since vSphere API 4.1

P Required privilege: host

Return Value

Type | Description
--- | ---
StorageIORMConfigOption | configuration option object.

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="QueryIORMConfigOption" type="vslm:QueryIORMConfigOptionRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="QueryIORMConfigOptionResponse"> <complexType> <sequence> <element name="returnval" type="vslm:StorageIORMConfigOption"/> </sequence> </complexType> </element>

# RecommendDatastores(recommendDatastores)

This method returns a StoragePlacementResult object. This API is intended to replace the following existing APIs for SDRS-enabled pods: CreateVm: StoragePlacementSpec::type == create = CreateVM_Task AddDisk: StoragePlacementSpec::type == reconfigure = ReconfigVM_Task RelocateVm: StoragePlacementSpec::type == relocate = RelocateVM_Task CloneVm: StoragePlacementSpec::type == clone = CloneVM_Task The PodSelectionSpec parameter in StoragePlacementSpec is required for all workflows. It specifies which SDRS-enabled pod the user has selected for the VM and/or for each disk. For CreateVm, RelocateVm and CloneVm, PodSelectionSpec.storagePod is the user selected SDRS pod for the VM, i.e., its system files. For all workflows, PodSelectionSpec.disk.storagePod is the user selected SDRS pod for the given disk. Note that a DiskLocator must be specified for each disk that the user requests to create, migrate or clone into an SDRS pod, even if it's the same pod as the VM or the user has manually selected a datastore within the pod. If the user has manually selected a datastore, the datastore must be specified in the workflow specific fields as described below. For CreateVm, AddDisk, the manually selected datastore must be specified in ConfigSpec.files or ConfigSpec.deviceChange.device.backing.datastore, the fields should will be unset if the user wants SDRS to recommend the datastore. For RelocateVm, the manually selected datastore must be specified in RelocateSpec.datastore or RelocateSpec.disk.datastore; the fields should be unset iff the user wants SDRS recommendations. For CloneVm, the manually selected datastore must be specified in CloneSpec.location.datastore or CloneSpec.location.disk[].datastore; the fields should be unset iff the user wants SDRS recommendations. The remaining expected input parameters in StoragePlacementSpec will be the same as those for the existing API as determined by StoragePlacementSpec::type. If a parameter is optional in the existing API, it will also be optional in the new API.

- For CreateVm, the Folder, ConfigSpec, ResourcePool and HostSystem parameters will be expected in StoragePlacementSpec. The disks to be created can be determined by ConfigSpec -> VirtualDeviceSpec[] (deviceChange) -> VirtualDevice (device) -> VirtualDisk (subclass).
- For AddDisk, the VirtualMachine and ConfigSpec parameters will be expected. The use of the ConfigSpec for determining the disks to add will be the same as that in CreateVm.
- For ExpandDisk, the VirtualMachine and ConfigSpec parameters will be expected. The use of the ConfigSpec for determining the disks to be expanded will be the same as the disks IDs of existing VM disks.
- For RelocateVm, the VirtualMachine, RelocateSpec and MovePriority parameters will be expected.
- For CloneVm, the VirtualMachine, CloneSpec, Folder and cloneName parameters will be expected.

SDRS takes into account constraints such as space usages, (anti-) affinity rules, datastore maintenance mode, etc. when making placement recommendations. Given that the constraints are satisfied, SDRS tries to balance space usages and I/O loads in the placement.

Required Privileges
  System.View
Since
  vSphere API 5.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
storageSpec P | StoragePlacementSpec | Since vSphere API 5.0

P Required privilege: storageSpec

Return Value

Type | Description
--- | ---
StoragePlacementResult |

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="RecommendDatastores" type="vslm:RecommendDatastoresRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="RecommendDatastoresResponse"> <complexType> <sequence> <element name="returnval" type="vslm:StoragePlacementResult"/> </sequence> </complexType> </element>

# RefreshStorageDrsRecommendation(refreshRecommendation)

Make Storage DRS invoke again on the specified pod StoragePod and return a new list of recommendations. Concurrent "refresh" requests may be combined together and trigger only one Storage DRS invocation.

Required Privileges
  System.View
Since
  vSphere API 5.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
pod P | ManagedObjectReference to a StoragePod | The storage pod. The recommendations generated is stored at PodStorageDrsEntry#recommendation. Since vSphere API 5.0

P Required privilege: pod

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="RefreshStorageDrsRecommendation" type="vslm:RefreshStorageDrsRecommendationRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="RefreshStorageDrsRecommendationResponse"> <complexType/> </element>

# RefreshStorageDrsRecommendationsForPod_Task(refreshRecommendationsForPod)

Invoke Storage DRS on a specific pod StoragePod and return a new list of recommendations.

Required Privileges
  System.View
Since
  vSphere API 6.7

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
pod P | ManagedObjectReference to a StoragePod | The storage pod. The recommendations generated is stored at PodStorageDrsEntry#recommendation. Since vSphere API 6.7

P Required privilege: pod

Return Value

Type | Description
--- | ---
ManagedObjectReference to a VslmTask |

Faults

Type | Description
--- | ---
InvalidArgument |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

# ValidateStoragePodConfig(validateStoragePodConfig)

Validate the new storage DRS configuration for a pod StoragePod. If validation fails, it will return with InvalidArgument fault.

Required Privileges
  System.View
Since
  vSphere API 6.7

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageResourceManager used to make the method call.
pod P | ManagedObjectReference to a StoragePod | The storage pod. Since vSphere API 6.7
spec P | StorageDrsConfigSpec | A set of storage Drs configuration changes to apply to the storage pod. Since vSphere API 6.7

PRequired privilege - see tooltip for details

Return Value

Type | Description
--- | ---
MethodFault |

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="ValidateStoragePodConfig" type="vslm:ValidateStoragePodConfigRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="ValidateStoragePodConfigResponse"> <complexType> <sequence> <element name="returnval" type="vslm:LocalizedMethodFault" minOccurs="0"/> </sequence> </complexType> </element>