Share via


DataLakePathClient.GenerateSasUri Method

Definition

Overloads

GenerateSasUri(DataLakeSasPermissions, DateTimeOffset)

The GenerateSasUri(DataLakeSasPermissions, DateTimeOffset) returns a Uri that generates a DataLake Path 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(DataLakeSasBuilder)

The GenerateSasUri(DataLakeSasBuilder) returns a Uri that generates a DataLake File 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(DataLakeSasPermissions, DateTimeOffset)

Source:
DataLakePathClient.cs
Source:
DataLakePathClient.cs

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

Parameters

permissions
DataLakeSasPermissions

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

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

GenerateSasUri(DataLakeSasBuilder)

Source:
DataLakePathClient.cs
Source:
DataLakePathClient.cs

The GenerateSasUri(DataLakeSasBuilder) returns a Uri that generates a DataLake File 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.DataLakeSasBuilder builder);
abstract member GenerateSasUri : Azure.Storage.Sas.DataLakeSasBuilder -> Uri
override this.GenerateSasUri : Azure.Storage.Sas.DataLakeSasBuilder -> Uri
Public Overridable Function GenerateSasUri (builder As DataLakeSasBuilder) As Uri

Parameters

builder
DataLakeSasBuilder

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