ManagedStorageSharedAccessSignatureClient.GetUrl Method

Definition

Overloads

Name Description
GetUrl(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.
GetUrl(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.

GetUrl(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 Azure.Response GetUrl(Uri href, int? durationInMinutes, Azure.RequestContext context);
abstract member GetUrl : Uri * Nullable<int> * Azure.RequestContext -> Azure.Response
override this.GetUrl : Uri * Nullable<int> * Azure.RequestContext -> Azure.Response
Public Overridable Function GetUrl (href As Uri, durationInMinutes As Nullable(Of Integer), context As RequestContext) As 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

GetUrl(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 Azure.Response<Azure.Analytics.PlanetaryComputer.SharedAccessSignatureSignedLink> GetUrl(Uri href, int? durationInMinutes = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUrl : Uri * Nullable<int> * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.PlanetaryComputer.SharedAccessSignatureSignedLink>
override this.GetUrl : Uri * Nullable<int> * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.PlanetaryComputer.SharedAccessSignatureSignedLink>
Public Overridable Function GetUrl (href As Uri, Optional durationInMinutes As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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