Queries the files that are dumped to the IA storage medium from a specified directory.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetDirectoryOrFileProperties

The operation that you want to perform.

Set the value to GetDirectoryOrFileProperties.

FileSystemId String Yes 31a8e4****

The ID of the file system.

Path String Yes /pathway/to/folder

Specifies the absolute path of the directory.

The path must be prefixed by a forward slash (/). It must be a path that exists in the mount target.

Response parameters

Parameter Type Example Description
Entry Struct

The details about the files or directories.

ATime String 2021-02-01T10:08:08Z

The time range for the query.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format.

The value of this parameter is returned only if the value of the Type parameter is File.

CTime String 2021-02-11T10:08:10Z

The time when the raw data was modified.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format.

The value of this parameter is returned only if the value of the Type response parameter is File.

HasInfrequentAccessFile Boolean true

Indicates whether the files contain the data that is dumped to the IA storage medium.

The value of this parameter is returned only if the value of the Type parameter is File.

Valid values:

  • true: The files contain data that is dumped to the IA storage medium.
  • false: The files do not contain data that is dumped to the IA storage medium.
Inode String Inode

The file or directory inode.

MTime String 2021-02-11T10:08:08Z

The data and time when the file was last modified.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format.

The value of this parameter is returned only if the value of the Type parameter is File.

Name String file.txt

The name of the files or directory.

RetrieveTime String 2021-02-11T10:08:08Z

The most recent time when the data retrieval job is run.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format.

The value of this parameter is returned only if the value of the Type parameter is File.

Size Long 1024

The size of the files.

Unit: bytes.

The value of this parameter is returned only if the value of the Type parameter is File.

StorageType String InfrequentAccess

The storage type of the files.

The value of this parameter is returned only if the value of the Type parameter is File.

Valid value:

  • standard: General-purpose NAS file system
  • InfrequentAccess: IA storage medium
Type String File

The type of the query result.

Valid values:

  • File
  • Directory
RequestId String 2D69A58F-345C-4FDE-88E4-BF518948****

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetDirectoryOrFileProperties
&FileSystemId=31a8e4****
&Path=/pathway/to/folder
&<Common Request Parameters>

Sample success responses

XML format

<Entry>
    <Type>File</Type>
    <StorageType>InfrequentAccess</StorageType>
    <Inode>Inode</Inode>
    <ATime>2021-02-01T10:08:08Z</ATime>
    <HasInfrequentAccessFile>true</HasInfrequentAccessFile>
    <Size>1024</Size>
    <CTime>2021-02-11T10:08:10Z</CTime>
    <FileId>5F65-4****BEF6</FileId>
    <RetrieveTime>2021-02-11T10:08:08Z</RetrieveTime>
    <MTime>2021-02-11T10:08:08Z</MTime>
    <Name>file.txt</Name>
</Entry>
<RequestId>2D69A58F-345C-4FDE-88E4-BF518948****</RequestId>

JSON format

{
    "Entry": {
        "Type": "File",
        "StorageType": "InfrequentAccess",
        "Inode": "Inode",
        "ATime": "2021-02-01T10:08:08Z",
        "HasInfrequentAccessFile": true,
        "Size": 1024,
        "CTime": "2021-02-11T10:08:10Z",
        "FileId": "5F65-4****BEF6",
        "RetrieveTime": "2021-02-11T10:08:08Z",
        "MTime": "2021-02-11T10:08:08Z",
        "Name": "file.txt"
    },
    "RequestId": "2D69A58F-345C-4FDE-88E4-BF518948****"
}

Error codes

HttpCode Error code Error message Description
404 InvalidFileSystem.NotFound The specified file system does not exist. The error message returned because the specified file system does not exist.
404 InvalidParameter.PathNotExist The specified path does not exist. The requested URL does not exist.

For a list of error codes, visit the API Error Center.