Delen via


DataLakeDirectoryClient.GenerateSasUri Method

Definition

Overloads

GenerateSasUri(DataLakeSasBuilder)

The GenerateSasUri(DataLakeSasBuilder) returns a Uri that generates a DataLake Directory 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)

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

Source:
DataLakeDirectoryClient.cs
Source:
DataLakeDirectoryClient.cs

The GenerateSasUri(DataLakeSasBuilder) returns a Uri that generates a DataLake Directory 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 override Uri GenerateSasUri (Azure.Storage.Sas.DataLakeSasBuilder builder);
override this.GenerateSasUri : Azure.Storage.Sas.DataLakeSasBuilder -> Uri
Public Overrides 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

GenerateSasUri(DataLakeSasPermissions, DateTimeOffset)

Source:
DataLakeDirectoryClient.cs
Source:
DataLakeDirectoryClient.cs

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