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

SasPolicy Class

SasPolicy assigned to the storage account.

Constructor

SasPolicy(*args: Any, **kwargs: Any)

Variables

Name Description
sas_expiration_period
str

The SAS expiration period, DD.HH:MM:SS. Required.

expiration_action

The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated. The 'Log' action can be used for audit purposes and the 'Block' action can be used to block and deny the usage of SAS tokens that do not adhere to the sas policy expiration period. Required. Known values are: "Log" and "Block".

require_user_bound_user_delegation_sas

Indicates whether user delegation SAS (shared access signature) tokens are required to be bound to a specific user. The default interpretation is false for this property.

require_user_bound_user_delegation_sas_action

The action to perform when a user delegation SAS (shared access signature) token is not bound to a user as required by requireUserBoundUserDelegationSas. Known values are: "None", "Log", and "Block".

Attributes

expiration_action

The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated. The 'Log' action can be used for audit purposes and the 'Block' action can be used to block and deny the usage of SAS tokens that do not adhere to the sas policy expiration period. Required. Known values are: "Log" and "Block".

expiration_action: str | _models.ExpirationAction

require_user_bound_user_delegation_sas

Indicates whether user delegation SAS (shared access signature) tokens are required to be bound to a specific user. The default interpretation is false for this property.

require_user_bound_user_delegation_sas: bool | None

require_user_bound_user_delegation_sas_action

The action to perform when a user delegation SAS (shared access signature) token is not bound to a user as required by requireUserBoundUserDelegationSas. Known values are: "None", "Log", and "Block".

require_user_bound_user_delegation_sas_action: str | _models.PolicyViolationAction | None

sas_expiration_period

SS. Required.

sas_expiration_period: str