Dela via


BlobBaseClient.GenerateSasUri Method

Definition

Overloads

GenerateSasUri(BlobSasBuilder)

The GenerateSasUri(BlobSasBuilder) returns a Uri that generates a Blob Service Shared Access Signature (SAS) Uri based on the Client properties and and builder. The SAS is signed by the shared key credential of the client.

To check if the client is able to sign a Service Sas see CanGenerateSasUri.

For more information, see Constructing a Service SAS.

GenerateSasUri(BlobSasPermissions, DateTimeOffset)

The GenerateSasUri(BlobSasPermissions, DateTimeOffset) returns a Uri that generates a Blob Service Shared Access Signature (SAS) Uri based on the Client properties and parameters passed. The SAS is signed by the shared key credential of the client.

To check if the client is able to sign a Service Sas see CanGenerateSasUri.

For more information, see Constructing a service SAS.

GenerateSasUri(BlobSasBuilder)

Source:
BlobBaseClient.cs
Source:
BlobBaseClient.cs

The GenerateSasUri(BlobSasBuilder) returns a Uri that generates a Blob Service Shared Access Signature (SAS) Uri based on the Client properties and and builder. The SAS is signed by the shared key credential of the client.

To check if the client is able to sign a Service Sas see CanGenerateSasUri.

For more information, see Constructing a Service SAS.

public virtual Uri GenerateSasUri (Azure.Storage.Sas.BlobSasBuilder builder);
abstract member GenerateSasUri : Azure.Storage.Sas.BlobSasBuilder -> Uri
override this.GenerateSasUri : Azure.Storage.Sas.BlobSasBuilder -> Uri
Public Overridable Function GenerateSasUri (builder As BlobSasBuilder) As Uri

Parameters

builder
BlobSasBuilder

Used to generate a Shared Access Signature (SAS).

Returns

Uri

A Uri containing the SAS Uri.

Remarks

A Exception will be thrown if a failure occurs.

Applies to

GenerateSasUri(BlobSasPermissions, DateTimeOffset)

Source:
BlobBaseClient.cs
Source:
BlobBaseClient.cs

The GenerateSasUri(BlobSasPermissions, DateTimeOffset) returns a Uri that generates a Blob Service Shared Access Signature (SAS) Uri based on the Client properties and parameters passed. The SAS is signed by the shared key credential of the client.

To check if the client is able to sign a Service Sas see CanGenerateSasUri.

For more information, see Constructing a service SAS.

public virtual Uri GenerateSasUri (Azure.Storage.Sas.BlobSasPermissions permissions, DateTimeOffset expiresOn);
abstract member GenerateSasUri : Azure.Storage.Sas.BlobSasPermissions * DateTimeOffset -> Uri
override this.GenerateSasUri : Azure.Storage.Sas.BlobSasPermissions * DateTimeOffset -> Uri
Public Overridable Function GenerateSasUri (permissions As BlobSasPermissions, expiresOn As DateTimeOffset) As Uri

Parameters

permissions
BlobSasPermissions

Required. Specifies the list of permissions to be associated with the SAS. See BlobSasPermissions.

expiresOn
DateTimeOffset

Required. Specifies the time at which the SAS becomes invalid. This field must be omitted if it has been specified in an associated stored access policy.

Returns

Uri

A Uri containing the SAS Uri.

Remarks

A Exception will be thrown if a failure occurs.

Applies to