PlacementAction

PlacementAction
PlacementAction

Describes a placement action of a single virtual machine.

One or more of such actions can be included in a placement recommendation, and such recommendations can be generated by the PlaceVm method.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "type": "string",
    "target": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "vm": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "targetHost": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "relocateSpec": {
        "_typeName": "string",
        "service": {
            "_typeName": "string",
            "instanceUuid": "string",
            "url": "string",
            "credential": {
                "_typeName": "string"
            },
            "sslThumbprint": "string"
        },
        "folder": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "datastore": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "diskMoveType": "string",
        "pool": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "host": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "disk": [
            {
                "_typeName": "string",
                "diskId": 0,
                "datastore": {
                    "_typeName": "string",
                    "type": "string",
                    "value": "string"
                },
                "diskMoveType": "string",
                "diskBackingInfo": {
                    "_typeName": "string"
                },
                "profile": [
                    {
                        "_typeName": "string"
                    }
                ],
                "backing": {
                    "_typeName": "string",
                    "parent": "VirtualMachineRelocateSpecDiskLocatorBackingSpec Object",
                    "crypto": {
                        "_typeName": "string"
                    }
                },
                "filterSpec": [
                    {
                        "_typeName": "string"
                    }
                ]
            }
        ],
        "transform": "string",
        "deviceChange": [
            {
                "_typeName": "string",
                "operation": "string",
                "fileOperation": "string",
                "device": {
                    "_typeName": "string",
                    "key": 0,
                    "deviceInfo": {
                        "_typeName": "string",
                        "label": "string",
                        "summary": "string"
                    },
                    "backing": {
                        "_typeName": "string"
                    },
                    "connectable": {
                        "_typeName": "string",
                        "migrateConnect": "string",
                        "startConnected": false,
                        "allowGuestControl": false,
                        "connected": false,
                        "status": "string"
                    },
                    "slotInfo": {
                        "_typeName": "string"
                    },
                    "controllerKey": 0,
                    "unitNumber": 0,
                    "numaNode": 0,
                    "deviceGroupInfo": {
                        "_typeName": "string",
                        "groupInstanceKey": 0,
                        "sequenceId": 0
                    }
                },
                "profile": [
                    {
                        "_typeName": "string"
                    }
                ],
                "backing": {
                    "_typeName": "string",
                    "parent": "VirtualDeviceConfigSpecBackingSpec Object",
                    "crypto": {
                        "_typeName": "string"
                    }
                },
                "filterSpec": [
                    {
                        "_typeName": "string"
                    }
                ],
                "changeMode": "string"
            }
        ],
        "profile": [
            {
                "_typeName": "string"
            }
        ],
        "cryptoSpec": {
            "_typeName": "string"
        }
    }
}
vm
Optional

Reference to an instance of the VirtualMachine managed object.

targetHost
Optional

Reference to an instance of the HostSystem managed object.

relocateSpec
Optional

Specification for moving or copying a virtual machine to a different datastore or host.