Storage Resource Manager Apply Storage Drs Recommendation Task

Storage Resource Manager Apply Storage Drs Recommendation Task

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:

Required privileges: System.View

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/StorageResourceManager/{moId}/ApplyStorageDrsRecommendation_Task
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case StorageResourceManager/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Request Body
ApplyStorageDrsRecommendationRequestType of type(s) application/json
Required
{
    "key": [
        "string"
    ]
}
array of string
key
Required

The key fields of the Recommendations that are applied.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns MoRefTask of type(s) application/json
This response body class contains all of the following: MoRefExtensibleManagedObject
{
    "_typeName": "string",
    "type": "string",
    "value": "string"
}