List Guest Filesystem Files
Returns information about files and directories in the guest. Files are returned in operating system-specific (inode) order. If the directory is modified between queries, missing or duplicate results can occur.
if you do not have all of the privileges described as follows: - The resource VirtualMachine referenced by the parameter vm requires VirtualMachine.GuestOperations.Query.
Request
URLURL
Path Parameters
Path Parameters
Header Parameters
Header Parameters
Request Body
This is a request body class for an operation.
{
"credentials": {
"interactive_session": false,
"type": "enum"
},
"path": "string"
}
The complete path to the directory or file to query.
Specification to match files for which information should be returned. If unset, the behavior is the equivalent to a Files.FilterSpec with all fields unset which means all filenames match the filter.
The specification of a page of results to be retrieved. If unset, the first page will be retrieved.
Response
Response BodyResponse Body
A Files.ListResult object containing information for all the matching files in filter and the total number of files that can be returned.
{
"end_index": 0,
"files": [
{
"filename": "string",
"size": 0,
"type": "enum"
}
],
"start_index": 0,
"status": "enum",
"total": 0
}
A list of Files.Summary structures containing information for all the matching files.
The last status for the iterator that indicates whether any more results can be expected if the caller continues to make requests for more data using the iterator.
Possible values are: READY , END_OF_DATA
The total number of results from the Files.list. This is a hint to the user of the iterator regarding how many items are available to be retrieved. The total could change if the inventory of items are being changed.
Positional index into the logical item list of the last item returned in the list of results. The first item in the logical item list has an index of 0. This is a hint to the user of the iterator regarding the logical position in the iteration. For example, this can be used to display to the user which page of the iteration is being shown. The total could change if the inventory of items are being changed. If unset no items were returned.
Positional index into the logical item list of the first item returned in the list of results. The first item in the logical item list has an index of 0. This is a hint to the user of the iterator regarding the logical position in the iteration. For example, this can be used to display to the user which page of the iteration is being shown. The total could change if the inventory of items are being changed. If unset no items were returned.