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

AzureSasCredential Class

Credential type used for authenticating to an Azure service. It provides the ability to update the shared access signature without creating a new client.

Constructor

AzureSasCredential(signature: str)

Parameters

Name Description
signature
Required
str

The shared access signature used to authenticate to an Azure service

Methods

update

Update the shared access signature.

This can be used when you've regenerated your shared access signature and want to update long-lived clients.

update

Update the shared access signature.

This can be used when you've regenerated your shared access signature and want to update long-lived clients.

update(signature: str) -> None

Parameters

Name Description
signature
Required
str

The shared access signature used to authenticate to an Azure service

Exceptions

Type Description

If the signature is None or empty.

If the signature is not a string.

Attributes

signature

The value of the configured shared access signature.

Returns

Type Description
str

The value of the configured shared access signature.