ManagedStorageSharedAccessSignatureClient.GetUrlAsync Method

Definition

Overloads

Name Description
GetUrlAsync(Uri, Nullable<Int32>, RequestContext)

[Protocol Method] Signs a HREF (a link URL) by appending a SAS Token. If the HREF is not a Azure Blob Storage HREF, then pass back the HREF unsigned.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetUrlAsync(Uri, Nullable<Int32>, CancellationToken)

Signs a HREF (a link URL) by appending a SAS Token. If the HREF is not a Azure Blob Storage HREF, then pass back the HREF unsigned.

GetUrlAsync(Uri, Nullable<Int32>, RequestContext)

Source:
ManagedStorageSharedAccessSignatureClient.cs

[Protocol Method] Signs a HREF (a link URL) by appending a SAS Token. If the HREF is not a Azure Blob Storage HREF, then pass back the HREF unsigned.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> GetUrlAsync(Uri href, int? durationInMinutes, Azure.RequestContext context);
abstract member GetUrlAsync : Uri * Nullable<int> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetUrlAsync : Uri * Nullable<int> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetUrlAsync (href As Uri, durationInMinutes As Nullable(Of Integer), context As RequestContext) As Task(Of Response)

Parameters

href
Uri

HREF (URL) to sign.

durationInMinutes
Nullable<Int32>

The duration, in minutes, that the SAS token will be valid. Only valid for approved users.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

href is null.

Service returned a non-success status code.

Applies to

GetUrlAsync(Uri, Nullable<Int32>, CancellationToken)

Source:
ManagedStorageSharedAccessSignatureClient.cs

Signs a HREF (a link URL) by appending a SAS Token. If the HREF is not a Azure Blob Storage HREF, then pass back the HREF unsigned.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.SharedAccessSignatureSignedLink>> GetUrlAsync(Uri href, int? durationInMinutes = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUrlAsync : Uri * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.SharedAccessSignatureSignedLink>>
override this.GetUrlAsync : Uri * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.SharedAccessSignatureSignedLink>>
Public Overridable Function GetUrlAsync (href As Uri, Optional durationInMinutes As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SharedAccessSignatureSignedLink))

Parameters

href
Uri

HREF (URL) to sign.

durationInMinutes
Nullable<Int32>

The duration, in minutes, that the SAS token will be valid. Only valid for approved users.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

href is null.

Service returned a non-success status code.

Applies to