Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

BlobBaseClient.GenerateSasUri Method

Definition

Namespace:
Azure.Storage.Blobs.Specialized
Assembly:
Azure.Storage.Blobs.dll
Package:
Azure.Storage.Blobs v12.29.0
Package:
Azure.Storage.Blobs v12.29.0-beta.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
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


Feedback

Was this page helpful?