你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FileSASSignatureValues interface

仅在NODE.JS运行时中可用。

FileSASSignatureValues 用于帮助为共享或文件生成文件服务 SAS 令牌。

属性

cacheControl

自选。 SAS 的缓存控制标头。

contentDisposition

自选。 SAS 的内容处置标头。

contentEncoding

自选。 SAS 的内容编码标头。

contentLanguage

自选。 SAS 的内容语言标头。

contentType

自选。 SAS 的内容类型标头。

expiresOn

仅当提供标识符时才可选。 SAS 不再工作的时间。

filePath

自选。 文件的路径,例如“directory/FileName”或“FileName”。

identifier

自选。 共享此 SAS 引用的访问策略的名称(如果有)。

请参阅 https://learn.microsoft.com/en-us/rest/api/storageservices/establishing-a-stored-access-policy

ipRange

自选。 此 SAS 中允许的 IP 范围。

permissions

仅当提供标识符时才可选。 请参阅 ShareSASPermissionsFileSASPermissions,具体取决于要访问的资源,以帮助构造权限字符串。

protocol

自选。 SAS 协议、仅 HTTPS 或 HTTPSandHTTP

shareName

SAS 用户可以访问的共享的名称。

startsOn

自选。 SAS 何时生效。

version

此 SAS 将面向的服务版本。 如果未指定,则默认为库面向的版本。

属性详细信息

cacheControl

自选。 SAS 的缓存控制标头。

cacheControl?: string

属性值

string

contentDisposition

自选。 SAS 的内容处置标头。

contentDisposition?: string

属性值

string

contentEncoding

自选。 SAS 的内容编码标头。

contentEncoding?: string

属性值

string

contentLanguage

自选。 SAS 的内容语言标头。

contentLanguage?: string

属性值

string

contentType

自选。 SAS 的内容类型标头。

contentType?: string

属性值

string

expiresOn

仅当提供标识符时才可选。 SAS 不再工作的时间。

expiresOn?: Date

属性值

Date

filePath

自选。 文件的路径,例如“directory/FileName”或“FileName”。

filePath?: string

属性值

string

identifier

自选。 共享此 SAS 引用的访问策略的名称(如果有)。

请参阅 https://learn.microsoft.com/en-us/rest/api/storageservices/establishing-a-stored-access-policy

identifier?: string

属性值

string

ipRange

自选。 此 SAS 中允许的 IP 范围。

ipRange?: SasIPRange

属性值

permissions

仅当提供标识符时才可选。 请参阅 ShareSASPermissionsFileSASPermissions,具体取决于要访问的资源,以帮助构造权限字符串。

permissions?: FileSASPermissions | ShareSASPermissions

属性值

protocol

自选。 SAS 协议、仅 HTTPS 或 HTTPSandHTTP

protocol?: SASProtocol

属性值

shareName

SAS 用户可以访问的共享的名称。

shareName: string

属性值

string

startsOn

自选。 SAS 何时生效。

startsOn?: Date

属性值

Date

version

此 SAS 将面向的服务版本。 如果未指定,则默认为库面向的版本。

version?: string

属性值

string