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

SASQueryParametersOptions interface

用于构造 SASQueryParameters的选项。

属性

cacheControl

Blob/文件服务 SAS 中的缓存控制标头的值。

contentDisposition

Blob/文件服务 SAS 中内容处置标头的值。

contentEncoding

Blob/文件服务 SAS 中内容编码标头的值。

contentLanguage

Blob/文件服务 SAS 中内容长度标头的值。

contentType

Blob/文件服务 SAS 中内容类型标头的值。

correlationId

将在存储诊断日志中记录的 GUID 值,可用于将 SAS 生成与存储资源访问相关联。 这仅用于用户委派 SAS。

encryptionScope

自选。 发送经此 SAS URI 授权的请求时要使用的加密范围。

expiresOn

仅当提供标识符时才可选。 此 SAS 令牌的到期时间。

identifier

自选。 签名标识符(仅适用于 BlobSASSignatureValues)。

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

ipRange

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

permissions

仅当提供标识符时才可选。 有关详细信息,请参阅 AccountSASPermissionsBlobSASPermissionsContainerSASPermissions

preauthorizedAgentObjectId

GUID 格式的授权 AAD 对象 ID。 由用户委托密钥所有者授权执行 SAS 授予的作的用户的 AAD 对象 ID。 Azure 存储服务将确保在授予访问权限之前,用户委托密钥的所有者具有所需的权限,但不会对此值中指定的用户执行其他权限检查。 这不能与 <xref:signedUnauthorizedUserObjectId>一起使用。 这仅用于用户委派 SAS。

protocol

自选。 允许的 HTTP 协议(s)。

resource

自选。 指定通过 SAS 访问哪些资源(仅适用于 BlobSASSignatureValues)。

请参阅 https://learn.microsoft.com/rest/api/storageservices/create-service-sas#specifying-the-signed-resource-blob-service-only

resourceTypes

自选。 要访问的存储资源类型(仅适用于帐户 SAS)。 有关详细信息,请参阅 AccountSASResourceTypes

services

自选。 要访问的存储服务(仅适用于帐户 SAS)。 有关详细信息,请参阅 AccountSASServices

startsOn

自选。 此 SAS 令牌的开始时间。

userDelegationKey

用户委派密钥属性。

属性详细信息

cacheControl

Blob/文件服务 SAS 中的缓存控制标头的值。

cacheControl?: string

属性值

string

contentDisposition

Blob/文件服务 SAS 中内容处置标头的值。

contentDisposition?: string

属性值

string

contentEncoding

Blob/文件服务 SAS 中内容编码标头的值。

contentEncoding?: string

属性值

string

contentLanguage

Blob/文件服务 SAS 中内容长度标头的值。

contentLanguage?: string

属性值

string

contentType

Blob/文件服务 SAS 中内容类型标头的值。

contentType?: string

属性值

string

correlationId

将在存储诊断日志中记录的 GUID 值,可用于将 SAS 生成与存储资源访问相关联。 这仅用于用户委派 SAS。

correlationId?: string

属性值

string

encryptionScope

自选。 发送经此 SAS URI 授权的请求时要使用的加密范围。

encryptionScope?: string

属性值

string

expiresOn

仅当提供标识符时才可选。 此 SAS 令牌的到期时间。

expiresOn?: Date

属性值

Date

identifier

自选。 签名标识符(仅适用于 BlobSASSignatureValues)。

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

identifier?: string

属性值

string

ipRange

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

ipRange?: SasIPRange

属性值

permissions

仅当提供标识符时才可选。 有关详细信息,请参阅 AccountSASPermissionsBlobSASPermissionsContainerSASPermissions

permissions?: string

属性值

string

preauthorizedAgentObjectId

GUID 格式的授权 AAD 对象 ID。 由用户委托密钥所有者授权执行 SAS 授予的作的用户的 AAD 对象 ID。 Azure 存储服务将确保在授予访问权限之前,用户委托密钥的所有者具有所需的权限,但不会对此值中指定的用户执行其他权限检查。 这不能与 <xref:signedUnauthorizedUserObjectId>一起使用。 这仅用于用户委派 SAS。

preauthorizedAgentObjectId?: string

属性值

string

protocol

自选。 允许的 HTTP 协议(s)。

protocol?: SASProtocol

属性值

resource

自选。 指定通过 SAS 访问哪些资源(仅适用于 BlobSASSignatureValues)。

请参阅 https://learn.microsoft.com/rest/api/storageservices/create-service-sas#specifying-the-signed-resource-blob-service-only

resource?: string

属性值

string

resourceTypes

自选。 要访问的存储资源类型(仅适用于帐户 SAS)。 有关详细信息,请参阅 AccountSASResourceTypes

resourceTypes?: string

属性值

string

services

自选。 要访问的存储服务(仅适用于帐户 SAS)。 有关详细信息,请参阅 AccountSASServices

services?: string

属性值

string

startsOn

自选。 此 SAS 令牌的开始时间。

startsOn?: Date

属性值

Date

userDelegationKey

用户委派密钥属性。

userDelegationKey?: UserDelegationKey

属性值