HomeWiki
HomeWiki
  1. Blob
  • Back to home
  • 2. Connectivity
  • Introduction
  • Custom Script
  • Playground
  • Database Explorer
  • Log Stream
  • Direct Communication
  • Softone
    • Getting Started
  • Datapump
    • Getting Started
    • Crons
    • Legacy Windows Support
    • SDK
      • DB
        • _executeQuery
        • _executeStoreProcedure
        • _executeInsertQuery
        • _executeInsertQueriesInTransaction
      • Import
        • _productsImport
        • _categoriesImport
        • _brandsImport
        • _attributesImport
        • _attributeSetsImport
        • _unitsImport
        • _quantityImport
        • _customersImport
        • _contactsImport
        • _callsImport
        • _eventsImport
        • _tasksImport
        • _ordersImport
        • _usersImport
        • _customerSourceTagsImport
        • _productSourceTagsImport
      • Log
        • _logDebug
        • _logInfo
        • _logWarn
        • _logError
      • Web Requests
        • _httpGetJson
        • _httpPostJson
        • _httpPutJson
        • _httpDeleteJson
        • _httpPatchJson
      • Variables
        • _saveVariable
        • _getVariable
        • _deleteVariable
      • Blob
        • _blobConnect
        • _blobExists
        • _blobGet
        • _blobFind
      • Utils
        • _encodeBase64
        • _sleep
        • _getLastSyncDate
        • _updateLastSyncDate
        • _resetLastSyncDate
  1. Blob

_blobConnect

Documentation: _blobConnect Function#

The _blobConnect function is designed to establish a connection to an Azure Blob Storage account and specify a container within that storage account. This function does not return a value; instead, it performs the connection setup necessary for subsequent operations on the specified container.

Function Signature:#

Parameters:#

connectionString:
Description: The connection string for the Azure Blob Storage account. This string includes credentials and endpoint information needed to authenticate and connect to the storage account.
Type: string
Example:
containerName:
Description: The name of the container within the Azure Blob Storage account to which you want to connect. This specifies the container where blobs (files) will be stored or accessed.
Type: string
Example:

Return Value:#

Returns:
This function does not return any value (void).

Function Workflow:#

1.
Receive Parameters:
The function takes the connectionString and containerName as input parameters.
2.
Create Blob Service Client:
It uses the provided connectionString to instantiate a BlobServiceClient. This client is used to interact with the Azure Blob Storage account.
3.
Access Container:
The function configures the BlobServiceClient to access the specified containerName, setting up the connection for further operations.
4.
Perform Connection Setup:
The function performs the necessary setup to establish a connection with Azure Blob Storage and the specified container.
5.
No Return:
As this function does not return a value, it is intended purely for setting up the connection context.

Example Usage:#

Important Considerations:#

Connection String Security:
Ensure that the connection string is securely stored and not exposed, as it contains sensitive credentials.
Container Availability:
Confirm that the specified containerName exists and that you have appropriate permissions to access it.
By using _blobConnect, you set up the connection to Azure Blob Storage and specify the container for subsequent operations, ensuring that you can interact with blobs as needed.
Previous
_deleteVariable
Next
_blobExists
Built with