Package version:

Interface FileGetPropertiesHeaders

Defines headers for File_getProperties operation.

interface FileGetPropertiesHeaders {
    cacheControl?: string;
    contentDisposition?: string;
    contentEncoding?: string;
    contentLanguage?: string;
    contentLength?: number;
    contentMD5?: Uint8Array;
    contentType?: string;
    copyCompletedOn?: Date;
    copyId?: string;
    copyProgress?: string;
    copySource?: string;
    copyStatus?: CopyStatusType;
    copyStatusDescription?: string;
    date?: Date;
    errorCode?: string;
    etag?: string;
    fileAttributes?: string;
    fileChangeOn?: Date;
    fileCreatedOn?: Date;
    fileId?: string;
    fileLastWriteOn?: Date;
    fileParentId?: string;
    filePermissionKey?: string;
    fileType?: string;
    isServerEncrypted?: boolean;
    lastModified?: Date;
    leaseDuration?: LeaseDurationType;
    leaseState?: LeaseStateType;
    leaseStatus?: LeaseStatusType;
    metadata?: {
        [propertyName: string]: string;
    };
    posixProperties?: FilePosixProperties;
    requestId?: string;
    version?: string;
}

Properties

cacheControl?: string

If the Cache-Control request header has previously been set for the file, the Cache-Control value is returned in this header.

contentDisposition?: string

Returns the value that was specified for the 'x-ms-content-disposition' header and specifies how to process the response.

contentEncoding?: string

If the Content-Encoding request header has previously been set for the file, the Content-Encoding value is returned in this header.

contentLanguage?: string

Returns the value that was specified for the Content-Language request header.

contentLength?: number

The size of the file in bytes. This header returns the value of the 'x-ms-content-length' header that is stored with the file.

contentMD5?: Uint8Array

If the Content-MD5 header has been set for the file, the Content-MD5 response header is returned so that the client can check for message content integrity.

contentType?: string

The content type specified for the file. The default content type is 'application/octet-stream'

copyCompletedOn?: Date

Conclusion time of the last attempted Copy File operation where this file was the destination file. This value can specify the time of a completed, aborted, or failed copy attempt.

copyId?: string

String identifier for the last attempted Copy File operation where this file was the destination file.

copyProgress?: string

Contains the number of bytes copied and the total bytes in the source in the last attempted Copy File operation where this file was the destination file. Can show between 0 and Content-Length bytes copied.

copySource?: string

URL up to 2KB in length that specifies the source file used in the last attempted Copy File operation where this file was the destination file.

copyStatus?: CopyStatusType

State of the copy operation identified by 'x-ms-copy-id'.

copyStatusDescription?: string

Only appears when x-ms-copy-status is failed or pending. Describes cause of fatal or non-fatal copy operation failure.

date?: Date

A UTC date/time value generated by the service that indicates the time at which the response was initiated.

errorCode?: string

Error Code

etag?: string

The ETag contains a value that you can use to perform operations conditionally, in quotes.

fileAttributes?: string

Attributes set for the file.

fileChangeOn?: Date

Change time for the file.

fileCreatedOn?: Date

Creation time for the file.

fileId?: string

The fileId of the file.

fileLastWriteOn?: Date

Last write time for the file.

fileParentId?: string

The parent fileId of the file.

filePermissionKey?: string

Key of the permission set for the file.

fileType?: string

Returns the type File. Reserved for future use.

isServerEncrypted?: boolean

The value of this header is set to true if the file data and application metadata are completely encrypted using the specified algorithm. Otherwise, the value is set to false (when the file is unencrypted, or if only parts of the file/application metadata are encrypted).

lastModified?: Date

Returns the date and time the file was last modified. The date format follows RFC 1123. Any operation that modifies the file or its properties updates the last modified time.

leaseDuration?: LeaseDurationType

When a file is leased, specifies whether the lease is of infinite or fixed duration.

leaseState?: LeaseStateType

Lease state of the file.

leaseStatus?: LeaseStatusType

The current lease status of the file.

metadata?: {
    [propertyName: string]: string;
}

A set of name-value pairs associated with this file as user-defined metadata.

posixProperties?: FilePosixProperties

Properties of NFS files.

requestId?: string

This header uniquely identifies the request that was made and can be used for troubleshooting the request.

version?: string

Indicates the version of the File service used to execute the request.