VmPodConfigForPlacement

VmPodConfigForPlacement
VmPodConfigForPlacement

Initial VM configuration for the specified pod.

This configuration will be saved to the pod config StorageDrsConfigInfo when the placement recommendations are applied.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "storagePod": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "disk": [
        {
            "_typeName": "string",
            "diskId": 0,
            "diskMoveType": "string",
            "diskBackingInfo": {
                "_typeName": "string"
            },
            "profile": [
                {
                    "_typeName": "string"
                }
            ]
        }
    ],
    "vmConfig": {
        "_typeName": "string",
        "vm": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "enabled": false,
        "behavior": "string",
        "intraVmAffinity": false,
        "intraVmAntiAffinity": {
            "_typeName": "string",
            "key": 0,
            "status": "string",
            "enabled": false,
            "name": "string",
            "mandatory": false,
            "userCreated": false,
            "inCompliance": false,
            "ruleUuid": "string",
            "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
                ]
            }
        ]
    },
    "interVmRule": [
        {
            "_typeName": "string",
            "key": 0,
            "status": "string",
            "enabled": false,
            "name": "string",
            "mandatory": false,
            "userCreated": false,
            "inCompliance": false,
            "ruleUuid": "string"
        }
    ]
}
storagePod
Required

The pod that this initial configuration applies to.

Since there could be multiple pods in a single placement request, we may need to specify multiple initial VM configurations, one per pod.

disk
Optional

Array of PodDiskLocator objects.

vmConfig
Optional

The VM configuration for the VM that is being placed.

interVmRule
Optional

The initial interVmRules that should during placement of this virtual machine.

It may not always be possible to specify that the virtual machine being placed is part of the rule because the virtual machine may not have been created yet. So for simplicity, we assume the virtual machine being placed is always implicitly part of any rule specified. It will be explicitly added to the rule before it is saved to the pod config.