vcenter vm guest filesystem files: info

The info structure describes a file or directory in the guest operating system. Returned by get. Warning: This structure is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Representation:

{
    "size"1,
    "attributes"{
        "last_accessed""2015-01-01T22:13:05.651Z",
        "posix_attributes"{
            "owner"1,
            "permissions""string",
            "group"1
        },
        "filesystem_family""WINDOWS",
        "last_modified""2015-01-01T22:13:05.651Z",
        "win_attributes"{
            "hidden"true,
            "read_only"true,
            "created""2015-01-01T22:13:05.651Z"
        },
        "symlink_target""string"
    },
    "type""FILE"
}

Attributes:

Name Type Description
Required
type string The type of file. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Defines the valid types of files. Warning: This enumeration is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented. Value is one of:
FILE: normal file. Warning: This constant is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.
DIRECTORY: directory. Warning: This constant is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.
SYMLINK: symbolic link. Warning: This constant is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

size long The file size in bytes. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

attributes file_attributes_info Attributes of a file. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

attributes.last_modified date_time The date and time the file was last modified. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

attributes.last_accessed date_time The date and time the file was last accessed. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

attributes.filesystem_family string The type of guest filesystem. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Defines the types of guest operating fllesystem. Warning: This enumeration is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented. Value is one of:
WINDOWS: The guest OS is a Windows variant. Warning: This constant is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.
POSIX: Linux, Solaris, etc. Warning: This constant is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

attributes.win_attributes.hidden boolean The file is hidden. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

attributes.win_attributes.read_only boolean The file is read-only. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

attributes.win_attributes.created date_time The date and time the file was created. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

attributes.posix_attributes.owner long The owner ID. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

attributes.posix_attributes.group long The group ID. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

attributes.posix_attributes.permissions string The file permissions in chmod(2) format. This field is presented as octal. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Optional
attributes.symlink_target string The target for the file if it's a symbolic link. This is currently only set for Posix guest operating systems, but may be supported in the future on Windows guest operating systems that support symbolic links. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Optional. Set if the file is a symbolic link.

attributes.win_attributes windows_file_attributes_info Windows-specific file information. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Optional. It is only relevant when filesystem_family has value WINDOWS. This field is optional and it is only relevant when the value of filesystem_family is WINDOWS.

attributes.posix_attributes posix_file_attributes_info Posix-specific file information. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Optional. It is only relevant when filesystem_family has value POSIX. This field is optional and it is only relevant when the value of filesystem_family is POSIX.