SharedAccess SharedAccess

yaml
type: "io.kestra.plugin.azure.storage.adls.SharedAccess"

Shared Access on the Azure Data Lake Storage.

Examples

Upload a file to Azure Data Lake Storage, then create a link to access this file which expires in one day from now.

yaml
id: azure_storage_adls_shared_access
namespace: company.team

pluginDefaults:
  - type: io.kestra.plugin.azure.storage.adls
    values:
      connectionString: "{{ secret('AZURE_CONNECTION_STRING') }}"
      fileSystem: "tasks"
      endpoint: "https://yourblob.blob.core.windows.net"

tasks:
    - id: download_request
      type: io.kestra.plugin.core.http.Download
      uri: https://dummyjson.com/products

    - id: to_ion
      type: io.kestra.plugin.serdes.json.JsonToIon
      from: "{{ outputs.download_request.uri }}"

    - id: upload_file
      type: io.kestra.plugin.azure.storage.adls.Upload
      fileName: "adls/product_data/product.json"
      from: "{{ outputs.to_ion.uri }}"

    - id: shared_access
      type: io.kestra.plugin.azure.storage.adls.SharedAccess
      fileName: "adls/product_data/product.json"
      expirationDate: "{{ now() | dateAdd(1, 'DAYS') }}"
      permissions:
        - READ

    - id: download_file_with_token
      type: io.kestra.plugin.core.http.Download
      uri: "{{ outputs.shared_access.uri }}"

Properties

endpoint

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The blob service endpoint.

expirationDate

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

** The time after which the SAS will no longer work.**

filePath

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

File path

Full path of the file in its file system

fileSystem

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The name of the file systems. If the path name contains special characters, pass in the url encoded version of the path name.

permissions

  • Type: array
  • SubType: string
  • Dynamic: ✔️
  • Required: ✔️

** The permissions to be set for the Shared Access.**

connectionString

  • Type: string
  • Dynamic: ✔️
  • Required:

Connection string of the Storage Account.

sasToken

  • Type: string
  • Dynamic: ✔️
  • Required:

The SAS token to use for authenticating requests.

This string should only be the query parameters (with or without a leading '?') and not a full URL.

sharedKeyAccountAccessKey

  • Type: string
  • Dynamic: ✔️
  • Required:

Shared Key access key for authenticating requests.

sharedKeyAccountName

  • Type: string
  • Dynamic: ✔️
  • Required:

Shared Key account name for authenticating requests.

Outputs

uri

  • Type: string
  • Required:
  • Format: uri

The SAS URI.

Was this page helpful?