StoragePlacementAction

StoragePlacementAction
StoragePlacementAction

Describes a single storage initial placement action for placing a virtual machine or a set of virtual disks on a datastore.

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"
    },
    "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"
        }
    },
    "destination": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "spaceUtilBefore": "number",
    "spaceDemandBefore": "number",
    "spaceUtilAfter": "number",
    "spaceDemandAfter": "number",
    "ioLatencyBefore": "number"
}
vm
Optional

Reference to an instance of the VirtualMachine managed object.

relocateSpec
Required

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

destination
Required

Reference to an instance of the Datastore managed object.

number As float As float
spaceUtilBefore
Optional

Current space utilization on the target datastore.

Unit: percentage. For example, if set to 70.0, space utilization is 70%. If not set, the value is not available.

number As float As float
spaceDemandBefore
Optional

Current space demand on the target datastore.

Unit: percentage. For example, if set to 70.0, space demand is 70%. This value include the space demanded by thin provisioned VMs. Hence, it may be higher than 100%. If not set, the value is not available.

number As float As float
spaceUtilAfter
Optional

Space utilization on the target datastore after placing the virtual disk.

Unit: percentage. For example, if set to 70.0, space utilization is 70%. If not set, the value is not available.

number As float As float
spaceDemandAfter
Optional

Space demand on the target datastore after placing the virtual disk.

Unit: percentage. For example, if set to 70.0, space demand is 70%. This value include the space demanded by thin provisioned VMs. Hence, it may be higher than 100%. If not set, the value is not available.

number As float As float
ioLatencyBefore
Optional

Deprecated as of vSphere8.0 U3, and there is no replacement for it.

Current I/O latency on the target datastore.

Unit: millisecond. If not set, the value is not available.