Share via


ShareServiceClient.GenerateAccountSasUri Method

Definition

Overloads

GenerateAccountSasUri(AccountSasBuilder)

The GenerateAccountSasUri(AccountSasBuilder) returns a Uri that generates a Share 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 Share 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:
ShareServiceClient.cs
Source:
ShareServiceClient.cs

The GenerateAccountSasUri(AccountSasBuilder) returns a Uri that generates a Share 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 ShareSasBuilder on successfully deleting.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

GenerateAccountSasUri(AccountSasPermissions, DateTimeOffset, AccountSasResourceTypes)

Source:
ShareServiceClient.cs
Source:
ShareServiceClient.cs

The GenerateAccountSasUri(AccountSasPermissions, DateTimeOffset, AccountSasResourceTypes) returns a Uri that generates a Share 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

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

expiresOn
DateTimeOffset

Required. The time at which the shared access signature becomes invalid.

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