Condividi tramite


DataLakeServiceClient.GenerateAccountSasUri Method

Definition

Overloads

GenerateAccountSasUri(AccountSasBuilder)

The GenerateAccountSasUri(AccountSasBuilder) returns a Uri that generates a DataLake Account Shared Access Signature (SAS) 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 CanGenerateAccountSasUri.

For more information, see Constructing an Account SAS.

GenerateAccountSasUri(AccountSasPermissions, DateTimeOffset, AccountSasResourceTypes)

The GenerateAccountSasUri(AccountSasPermissions, DateTimeOffset, AccountSasResourceTypes) returns a Uri that generates a DataLake Account Shared Access Signature (SAS) 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 CanGenerateAccountSasUri.

For more information, see Constructing an Account SAS.

GenerateAccountSasUri(AccountSasBuilder)

Source:
DataLakeServiceClient.cs
Source:
DataLakeServiceClient.cs

The GenerateAccountSasUri(AccountSasBuilder) returns a Uri that generates a DataLake Account Shared Access Signature (SAS) 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 CanGenerateAccountSasUri.

For more information, see Constructing an Account SAS.

public Uri GenerateAccountSasUri (Azure.Storage.Sas.AccountSasBuilder builder);
member this.GenerateAccountSasUri : Azure.Storage.Sas.AccountSasBuilder -> Uri
Public Function GenerateAccountSasUri (builder As AccountSasBuilder) As Uri

Parameters

builder
AccountSasBuilder

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

GenerateAccountSasUri(AccountSasPermissions, DateTimeOffset, AccountSasResourceTypes)

Source:
DataLakeServiceClient.cs
Source:
DataLakeServiceClient.cs

The GenerateAccountSasUri(AccountSasPermissions, DateTimeOffset, AccountSasResourceTypes) returns a Uri that generates a DataLake Account Shared Access Signature (SAS) 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 CanGenerateAccountSasUri.

For more information, see Constructing an Account SAS.

public Uri GenerateAccountSasUri (Azure.Storage.Sas.AccountSasPermissions permissions, DateTimeOffset expiresOn, Azure.Storage.Sas.AccountSasResourceTypes resourceTypes);
member this.GenerateAccountSasUri : Azure.Storage.Sas.AccountSasPermissions * DateTimeOffset * Azure.Storage.Sas.AccountSasResourceTypes -> Uri
Public Function GenerateAccountSasUri (permissions As AccountSasPermissions, expiresOn As DateTimeOffset, resourceTypes As AccountSasResourceTypes) As Uri

Parameters

permissions
AccountSasPermissions

Specifies the list of permissions that can be set in the SasBuilder See DataLakeSasPermissions.

expiresOn
DateTimeOffset

Specifies when to set the expires time in the sas builder.

resourceTypes
AccountSasResourceTypes

Specifies the resource types associated with the shared access signature. The user is restricted to operations on the specified resources. See AccountSasResourceTypes.

Returns

Uri

A Uri containing the SAS Uri.

Remarks

A Exception will be thrown if a failure occurs.

Applies to