| Local Methods | ||
Managed Object Types | Data Object Types | All Properties | All Methods |
Properties
Name | Type | Description |
---|---|---|
None |
Methods
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data. See
GuestAuthentication.
|
guestFilePath | xsd:string |
The complete path to the file to be copied in
the guest. If the file points to an symbolic link, then the
attributes of the target file are changed.
|
fileAttributes | GuestFileAttributes |
Specifies the different file attributes of the
guest file to be changed.
See GuestFileAttributes.
If any property is not specified, then the specific attribute of
the file will be unchanged.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
FileFault | Thrown if there is a file error in the guest operating system. |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the operation fails because the guest authentication will not allow the operation. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Creates a new unique temporary directory for the user to use as needed. The user is responsible for removing it when it is no longer needed.
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data. See
GuestAuthentication.
|
prefix | xsd:string |
The prefix to be given to the new temporary directory.
|
suffix | xsd:string |
The suffix to be given to the new temporary directory.
|
directoryPath* | xsd:string |
The complete path to the directory in which to create the
new directory. If unset or an empty string, a guest-specific location
will be used.
|
Return Value
Type | Description |
---|---|
xsd:string | The absolute path of the temporary directory that is created. |
Faults
Type | Description |
---|---|
FileFault | Thrown if there is a file error in the guest operating system. |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the operation fails because the guest authentication will not allow the operation. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Creates a new unique temporary file for the user to use as needed. The user is responsible for removing it when it is no longer needed.
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data. See
GuestAuthentication.
|
prefix | xsd:string |
The prefix to be given to the new temporary file.
|
suffix | xsd:string |
The suffix to be given to the new temporary file.
|
directoryPath* | xsd:string |
The complete path to the directory in which to
create the file.
If unset, or an empty string, a guest-specific location will be used.
|
Return Value
Type | Description |
---|---|
xsd:string | The absolute path of the temporary file that is created. |
Faults
Type | Description |
---|---|
FileFault | Thrown if there is a file error in the guest operating system. |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the operation fails because the guest authentication will not allow the operation. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data. See
GuestAuthentication.
|
directoryPath | xsd:string |
The complete path to the directory to be deleted.
|
recursive | xsd:boolean |
If true, all subdirectories are also deleted.
If false, the directory must be empty for the operation to succeed.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
FileFault | Thrown if there is a file error in the guest operating system. |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the operation fails because the guest authentication will not allow the operation. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
NotADirectory | Thrown if the specified object is not a directory. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data. See
GuestAuthentication.
|
filePath | xsd:string |
The complete path to the file or symbolic link to be deleted.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
FileFault | Thrown if there is a file error in the guest operating system. |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the operation fails because the guest authentication will not allow the operation. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
NotAFile | Thrown if the specified object is not a file. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Obtains a reference to
FileTransferInformation object
for the file transfer operation. The information object contains a URL
to the file inside the guest to be transferred to the client.
See FileTransferInformation for
information on how to use the information object. If the power state
of the Virtual Machine is changed when the file transfer is in progress,
or the Virtual Machine is migrated,
then the transfer operation is aborted.
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data.
|
guestFilePath | xsd:string |
The complete path to the file inside the guest
that has to be transferred to the client. It cannot be a path to
a directory or a symbolic link.
|
Return Value
Type | Description |
---|---|
FileTransferInformation | A reference to FileTransferInformation. |
Faults
Type | Description |
---|---|
FileFault | Thrown if there is a file error in the guest operating system. |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the operation fails because the guest authentication will not allow the operation. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Obtains a URL to the file inside the guest to be transferred from the client. The user should send a HTTP PUT request specifying the file content in the body of the request. Multiple PUT request cannot be sent to the URL simultaneously. URL will be invalidated after a successful PUT request is sent. If the power state of the Virtual Machine is changed when the file transfer is in progress, or the Virtual Machine is migrated, then the transfer operation is aborted.
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data. See
GuestAuthentication.
|
guestFilePath | xsd:string |
The complete destination path in the guest to
transfer the file from the client. It cannot be a path to
a directory or a symbolic link.
|
fileAttributes | GuestFileAttributes |
File attributes of the file that has to be
created in the guest. See GuestFileAttributes.
If any file attribute is not specified, then the default value
of that property will be set for the file.
|
fileSize | xsd:long |
Size of the file to transfer to the guest in bytes.
|
overwrite | xsd:boolean |
If set, the destination file is clobbered.
|
Return Value
Type | Description |
---|---|
xsd:string | A URL to which the user has to send a PUT request. The host part of the URL is returned as '*' if the hostname to be used is the name of the server to which the call was made. For example, if the call is made to esx-svr-1.domain1.com, and the file can be uploaded to http://esx-svr-1.domain1.com/guestFile?id=1&token=1234, the URL returned may be http://*/guestFile?id=1&token=1234. The client replaces the asterisk with the server name on which it invoked the call. |
Faults
Type | Description |
---|---|
FileFault | Thrown if there is a file error in the guest operating system. |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the operation fails because the guest authentication will not allow the operation. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
The results could be extermely large, so to minimize the size of the return value for cases where a UI only needs to show the first N results, the answer is batched. Files are returned in OS-specific (inode) order. If the directory is modified between queries, missing or duplicate results can occur.
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data. See
GuestAuthentication.
|
filePath | xsd:string |
The complete path to the directory or file to query.
|
index* | xsd:int |
Which result to start the list with. The default is 0.
|
maxResults* | xsd:int |
The maximum number of results to return. The default
is 50.
|
matchPattern* | xsd:string |
A filter for the return values.
Match patterns are specified using perl-compatible regular
expressions.
If matchPattern is unset, then the pattern '.*' is used.
|
Return Value
Type | Description |
---|---|
GuestListFileInfo | A GuestListFileInfo object containing information for all the matching files in the filePath and the number of files left to be returned. |
Faults
Type | Description |
---|---|
FileFault | |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the operation fails because the guest authentication will not allow the operation. |
InvalidArgument | Thrown if the matchPattern is an invalid regular expression. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data. See
GuestAuthentication.
|
directoryPath | xsd:string |
The complete path to the directory to be created.
|
createParentDirectories | xsd:boolean |
Whether any parent directories
are to be created.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
FileAlreadyExists | Thrown if the specified object already exists. |
FileFault | Thrown if there is a file error in the guest operating system. |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the directory cannot be created because the guest authentication will not allow the operation. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data. See
GuestAuthentication.
|
srcDirectoryPath | xsd:string |
The complete path to the directory to be moved.
|
dstDirectoryPath | xsd:string |
The complete path to the where the directory is
moved or its new name. It cannot be a path to an existing directory
or an existing file.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
FileFault | Thrown if there is a file error in the guest operating system. |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the operation fails because the guest authentication will not allow the operation. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the GuestFileManager used to make the method call. |
vm P | ManagedObjectReference
to a VirtualMachine |
Virtual Machine to perform the operation on.
|
auth | GuestAuthentication |
The guest authentication data. See
GuestAuthentication.
|
srcFilePath | xsd:string |
The complete path to the original file or
symbolic link to be moved.
|
dstFilePath | xsd:string |
The complete path to the where the file is renamed.
It cannot be a path to an existing diectory.
|
overwrite | xsd:boolean |
If set, the destination file is clobbered.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
FileFault | Thrown if there is a file error in the guest operating system. |
GuestComponentsOutOfDate | Thrown if the guest agent is too old to support the operation. |
GuestOperationsFault | Thrown if there is an error processing a guest operation. |
GuestOperationsUnavailable | Thrown if the VM agent for guest operations is not running. |
GuestPermissionDenied | Thrown if the operation fails because the guest authentication will not allow the operation. |
InvalidGuestLogin | Thrown if the the guest authentication information was not accepted. |
InvalidPowerState | Thrown if the VM is not powered on. |
InvalidState | Thrown if the operation cannot be performed because of the virtual machine's current state. |
OperationDisabledByGuest | Thrown if the operation is not enabled due to guest agent configuration. |
OperationNotSupportedByGuest | Thrown if the operation is not supported by the guest OS. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Top of page | Local Methods | ||
Managed Object Types | Data Object Types | All Properties | All Methods |