Share via


BlobContainerClient.GenerateSasUri Method

Definition

Overloads

GenerateSasUri(BlobSasBuilder)

The GenerateSasUri(BlobSasBuilder) returns a Uri that generates a Blob Container Service Shared Access Signature (SAS) Uri based on the Client properties and builder 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(BlobContainerSasPermissions, DateTimeOffset)

The GenerateSasUri(BlobContainerSasPermissions, DateTimeOffset) returns a Uri that generates a Blob Container 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:
BlobContainerClient.cs
Source:
BlobContainerClient.cs

The GenerateSasUri(BlobSasBuilder) returns a Uri that generates a Blob Container Service Shared Access Signature (SAS) Uri based on the Client properties and builder 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.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(BlobContainerSasPermissions, DateTimeOffset)

Source:
BlobContainerClient.cs
Source:
BlobContainerClient.cs

The GenerateSasUri(BlobContainerSasPermissions, DateTimeOffset) returns a Uri that generates a Blob Container 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.BlobContainerSasPermissions permissions, DateTimeOffset expiresOn);
abstract member GenerateSasUri : Azure.Storage.Sas.BlobContainerSasPermissions * DateTimeOffset -> Uri
override this.GenerateSasUri : Azure.Storage.Sas.BlobContainerSasPermissions * DateTimeOffset -> Uri
Public Overridable Function GenerateSasUri (permissions As BlobContainerSasPermissions, expiresOn As DateTimeOffset) As Uri

Parameters

permissions
BlobContainerSasPermissions

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

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