Package version:

Interface LeaseOperationResponseHeaders

The details of the response for a specific lease operation.

interface LeaseOperationResponseHeaders {
    date?: Date;
    errorCode?: string;
    etag?: string;
    lastModified?: Date;
    leaseId?: string;
    leaseTimeInSeconds?: number;
    requestId?: string;
    version?: string;
}

Properties

date?: Date

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

errorCode?: string
etag?: string

The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes.

lastModified?: Date

Returns the date and time the file was last modified. Any operation that modifies the file, including an update of the file's metadata or properties, changes the last-modified time of the file.

leaseId?: string

Uniquely identifies a file's lease, won't be set when returned by releaseLease.

leaseTimeInSeconds?: number

Approximate time remaining in the lease period, in seconds. Only availabe for ShareLeaseClient.breakLease for share lease.

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 Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above.