BlobBaseClient.GenerateUserDelegationSasUri Method
Definition
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
GenerateUserDelegationSasUri(BlobSasPermissions, DateTimeOffset, UserDelegationKey) |
The GenerateUserDelegationSasUri(BlobSasPermissions, DateTimeOffset, UserDelegationKey) returns a Uri representing a Blob Service Shared Access Signature (SAS) Uri based on the Client properties and parameters passed. The SAS is signed by the user delegation key that is passed in. For more information, see Creating an user delegation SAS. |
GenerateUserDelegationSasUri(BlobSasBuilder, UserDelegationKey) |
The GenerateUserDelegationSasUri(BlobSasBuilder, UserDelegationKey) returns a Uri representing a Blob Service Shared Access Signature (SAS) Uri based on the Client properties and builder passed. The SAS is signed by the user delegation key that is passed in. For more information, see Creating an user delegation SAS. |
GenerateUserDelegationSasUri(BlobSasPermissions, DateTimeOffset, UserDelegationKey)
- Source:
- BlobBaseClient.cs
- Source:
- BlobBaseClient.cs
The GenerateUserDelegationSasUri(BlobSasPermissions, DateTimeOffset, UserDelegationKey) returns a Uri representing a Blob Service Shared Access Signature (SAS) Uri based on the Client properties and parameters passed. The SAS is signed by the user delegation key that is passed in.
For more information, see Creating an user delegation SAS.
public virtual Uri GenerateUserDelegationSasUri (Azure.Storage.Sas.BlobSasPermissions permissions, DateTimeOffset expiresOn, Azure.Storage.Blobs.Models.UserDelegationKey userDelegationKey);
abstract member GenerateUserDelegationSasUri : Azure.Storage.Sas.BlobSasPermissions * DateTimeOffset * Azure.Storage.Blobs.Models.UserDelegationKey -> Uri
override this.GenerateUserDelegationSasUri : Azure.Storage.Sas.BlobSasPermissions * DateTimeOffset * Azure.Storage.Blobs.Models.UserDelegationKey -> Uri
Public Overridable Function GenerateUserDelegationSasUri (permissions As BlobSasPermissions, expiresOn As DateTimeOffset, userDelegationKey As UserDelegationKey) 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.
- userDelegationKey
- UserDelegationKey
Required. A UserDelegationKey returned from GetUserDelegationKeyAsync(Nullable<DateTimeOffset>, DateTimeOffset, CancellationToken).
Returns
A Uri containing the SAS Uri.
Remarks
A Exception will be thrown if a failure occurs.
Applies to
GenerateUserDelegationSasUri(BlobSasBuilder, UserDelegationKey)
- Source:
- BlobBaseClient.cs
- Source:
- BlobBaseClient.cs
The GenerateUserDelegationSasUri(BlobSasBuilder, UserDelegationKey) returns a Uri representing a Blob Service Shared Access Signature (SAS) Uri based on the Client properties and builder passed. The SAS is signed by the user delegation key that is passed in.
For more information, see Creating an user delegation SAS.
public virtual Uri GenerateUserDelegationSasUri (Azure.Storage.Sas.BlobSasBuilder builder, Azure.Storage.Blobs.Models.UserDelegationKey userDelegationKey);
abstract member GenerateUserDelegationSasUri : Azure.Storage.Sas.BlobSasBuilder * Azure.Storage.Blobs.Models.UserDelegationKey -> Uri
override this.GenerateUserDelegationSasUri : Azure.Storage.Sas.BlobSasBuilder * Azure.Storage.Blobs.Models.UserDelegationKey -> Uri
Public Overridable Function GenerateUserDelegationSasUri (builder As BlobSasBuilder, userDelegationKey As UserDelegationKey) As Uri
Parameters
- builder
- BlobSasBuilder
Required. Used to generate a Shared Access Signature (SAS).
- userDelegationKey
- UserDelegationKey
Required. A UserDelegationKey returned from GetUserDelegationKeyAsync(Nullable<DateTimeOffset>, DateTimeOffset, CancellationToken).
Returns
A Uri containing the SAS Uri.
Remarks
A Exception will be thrown if a failure occurs.