Skip to main content

sas

Creates, updates, deletes, gets or lists a sas resource.

Overview

Namesas
TypeResource
Idazure.planetary_computer_dataplane.sas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
hrefstringHref. Required.
msft:expirystring (date-time)Msft:Expiry.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_urlselecthref, endpointdurationsign an HREF in the format of a URL and returns a SharedAccessSignatureSignedHrefResponse. 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.
get_tokenselectcollection_id, endpointdurationgenerate a SAS Token for the given Azure Blob storage account and container. Generate a SAS Token _ for the given storage account and container. The storage account and container must be associated with a Planetary Computer dataset indexed by the STAC API.
revoke_tokenexecendpointdurationRevoke SAS token for the managed storage account of this GeoCatalog. Revoke a SAS Token _ for managed storage account of this GeoCatalog.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
collection_idstringCollection Id. Required.
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
hrefstringHref. Required.
durationintegerDuration. Default value is None.

SELECT examples

sign an HREF in the format of a URL and returns a SharedAccessSignatureSignedHrefResponse. 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.

SELECT
href,
msft:expiry
FROM azure.planetary_computer_dataplane.sas
WHERE href = '{{ href }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND duration = '{{ duration }}'
;

Lifecycle Methods

Revoke SAS token for the managed storage account of this GeoCatalog. Revoke a SAS Token _ for managed storage account of this GeoCatalog.

EXEC azure.planetary_computer_dataplane.sas.revoke_token 
@endpoint='{{ endpoint }}' --required,
@duration='{{ duration }}'
;