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

SasPolicy Class

SasPolicy assigned to the storage account.

All required parameters must be populated in order to send to server.

Constructor

SasPolicy(*, sas_expiration_period: str, expiration_action: str | _models.ExpirationAction = 'Log', **kwargs: Any)

Keyword-Only Parameters

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. Known values are: "Log" and "Block".

Default value: Log

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. Known values are: "Log" and "Block".