ManagedStorageSharedAccessSignatureClient.GetUrl 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
| 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.
|
| 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)
[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.
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)
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.
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.