Storage Resource Manager Validate Storage Pod Config

Storage Resource Manager Validate Storage Pod Config

Validate the new storage DRS configuration for a pod StoragePod.

If validation fails, it will return with InvalidArgument fault.

Required privileges: System.View

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/StorageResourceManager/{moId}/ValidateStoragePodConfig
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
ValidateStoragePodConfigRequestType of type(s) application/json
Required
{
    "pod": {
        "type": "string",
        "value": "string"
    },
    "spec": {
        "podConfigSpec": {
            "enabled": false,
            "ioLoadBalanceEnabled": false,
            "defaultVmBehavior": "string",
            "loadBalanceInterval": 0,
            "defaultIntraVmAffinity": false,
            "spaceLoadBalanceConfig": {
                "spaceThresholdMode": "string",
                "spaceUtilizationThreshold": 0,
                "freeSpaceThresholdGB": 0,
                "minSpaceUtilizationDifference": 0
            },
            "ioLoadBalanceConfig": {
                "reservablePercentThreshold": 0,
                "reservableIopsThreshold": 0,
                "reservableThresholdMode": "string",
                "ioLatencyThreshold": 0,
                "ioLoadImbalanceThreshold": 0
            },
            "automationOverrides": {
                "spaceLoadBalanceAutomationMode": "string",
                "ioLoadBalanceAutomationMode": "string",
                "ruleEnforcementAutomationMode": "string",
                "policyEnforcementAutomationMode": "string",
                "vmEvacuationAutomationMode": "string"
            },
            "rule": [
                {
                    "_typeName": "string",
                    "operation": "string",
                    "removeKey": {
                        "_typeName": "string"
                    },
                    "info": {
                        "key": 0,
                        "status": "string",
                        "enabled": false,
                        "name": "string",
                        "mandatory": false,
                        "userCreated": false,
                        "inCompliance": false,
                        "ruleUuid": "string"
                    }
                }
            ],
            "option": [
                {
                    "_typeName": "string",
                    "operation": "string",
                    "removeKey": {
                        "_typeName": "string"
                    },
                    "option": {
                        "key": "string",
                        "value": {
                            "_typeName": "string"
                        }
                    }
                }
            ]
        },
        "vmConfigSpec": [
            {
                "_typeName": "string",
                "operation": "string",
                "removeKey": {
                    "_typeName": "string"
                },
                "info": {
                    "vm": {
                        "type": "string",
                        "value": "string"
                    },
                    "enabled": false,
                    "behavior": "string",
                    "intraVmAffinity": false,
                    "intraVmAntiAffinity": {
                        "diskId": [
                            0
                        ]
                    },
                    "virtualDiskRules": [
                        {
                            "_typeName": "string",
                            "key": 0,
                            "status": "string",
                            "enabled": false,
                            "name": "string",
                            "mandatory": false,
                            "userCreated": false,
                            "inCompliance": false,
                            "ruleUuid": "string",
                            "diskRuleType": "string",
                            "diskId": [
                                0
                            ]
                        }
                    ]
                }
            }
        ]
    }
}
pod
Required

Reference to an instance of the StoragePod managed object.

spec
Required

The StorageDrsConfigSpec data object provides a set of update specifications for storage DRS configuration.

To support incremental changes, these properties are all optional.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns MethodFault of type(s) application/json
This response body class contains all of the following: Any
{
    "_typeName": "string",
    "faultCause": "MethodFault Object",
    "faultMessage": [
        {
            "_typeName": "string",
            "key": "string",
            "arg": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "message": "string"
        }
    ]
}
faultCause
Optional

The base data object type for all the object model faults that an application might handle.

faultMessage
Optional

Message which has details about the error Message can also contain a key to message catalog which can be used to generate better localized messages.