MoveDatastoreFileRequestType

MoveDatastoreFileRequestType
MoveDatastoreFileRequestType

The parameters of MoveDatastoreFile_Task.

JSON Example
{
    "sourceName": "string",
    "sourceDatacenter": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "destinationName": "string",
    "destinationDatacenter": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "force": false
}
string
sourceName
Required

The name of the source, either a URL or a datastore path referring to the file or folder to be moved.

sourceDatacenter
Optional

If sourceName is a datastore path, the datacenter for that datastore path. Not needed when invoked directly on ESX. If not specified on a call to VirtualCenter, sourceName must be a URL.

Required privileges: System.View

string
destinationName
Required

The name of the destination, either a URL or a datastore path referring to the destination file or folder.

destinationDatacenter
Optional

If destinationName is a datastore path, the datacenter for that datastore path. Not needed when invoked directly on ESX. If not specified on a call to VirtualCenter, it is assumed that the destination path belongs to the source datacenter.

Required privileges: System.View

boolean
force
Optional

If true, overwrite any identically named file at the destination. If not specified, it is assumed to be false.