Blob Storage (Azure)
Know the component and how to use it.
Blob Storage (Azure) allows you to work with files stored in Azure Blob Storage containers.
Take a look at the configuration options for the component:
- Account: account to be used by the component (list the accounts supported by the component). Supported accounts are: Basic and Public key. Basic is used to connect via ConnectionString; the storage account name must be passed in the "user" field and key1 in the "password" field. Public key is used if you want to authenticate via SAS token; use the public-key in the "key" field, then pass the SAS token generated by Azure. Read the Accounts documentation to learn more about these and other existing account types.
- Operation: defines which operation will the component perform (List, Download, Upload, and Delete). Completion of this field is mandatory.
- Container Name: name of the Blob Storage container (Azure) that will handle the files. Completion of this field is mandatory.
- Container Account: Azure account name that Blob Storage uses. Completion of this field is mandatory.
- Remote File Name: destination name of your file, the same name that the file will have in Blob Storage (Azure). Completion of this field is mandatory only when Upload, Download or Delete operations are selected. This parameter accepts Double Braces.
- File Name: name of the file you want to upload to your Blob Storage (Azure). Completion of this field is mandatory. This parameter accepts Double Braces.
- Generate a Download Link: if the option is enabled, you will be able to generate a file download link. This parameter is shown only when the Upload operation is selected.
- Page Size: number of records you want to bring per page. This parameter accepts Double Braces and is shown only when the List operation is selected.
- Prefix: filters the results to return only blobs whose names begin with the specified prefix. This parameter accepts Double Braces and is shown only when the List operation is selected.
- Next Page Token: NextToken that will be used to bring the records from the next page. This parameter accepts Double Braces and is shown only when the List operation is selected.
- Next Token Type: type of the next record that will be listed on the next page. This parameter is shown only when the List operation is selected.
- Overwrite File on Upload: overwrite the file at the time of upload. This parameter accepts Double Braces and is shown only when the Upload operation is selected.
- Snapshot: if the option is activated, it will include snapshots on the blobs' response. Available only for the List operation.
- Metadata: if the option is activated, it will include metadata on the blobs' response. Available only for the List operation.
- Uncommited: if the option is activated, it will include uncommited blobs on response. Available only for the List operation.
- Copy: if the option is activated, it will include copy blobs on response. Available only for the List operation.
- Delete: if the option is activated, it will include delete blobs on response. Available only for the List operation.
- Fail On Error: if the option is enabled, the execution of the pipeline with error will be interrupted; otherwise, the pipeline execution proceeds, but the result will show a false value for the “success” property.
Some of the above parameters accept Double Braces. Read the article How to reference data using Double Braces to better understand how this language works.
{
"success": true,
"content": [
{
"fileName": "my-remote-file.txt",
"containerName": "newcontainer",
"properties": {
"createdDate": "Fri May 20 13:41:12 UTC 2022",
"lastUpdated": "Wed May 25 14:59:26 UTC 2022",
"contentType": "application/octet-stream",
"length": 23
}
},
{
"fileName": "testeOverwrite.txt",
"containerName": "newcontainer",
"properties": {
"createdDate": "Tue Jun 14 18:11:35 UTC 2022",
"lastUpdated": "Tue Jun 14 18:11:47 UTC 2022",
"contentType": "application/octet-stream",
"length": 76952
}
}
],
"count": 2,
"containerName": "newcontainer"
}
{
"success": true,
"fileName": "teste-upload.jpeg",
"containerName": "teste",
"remoteFileName": "teste-upload.jpeg",
"urlGenerated": "
https://digibeeblobstorage.blob.core.windows.net/teste/teste-upload.jpeg
"
}
{
"success": true,
"containerName": "newcontainer",
"remoteFileName": "teste-upload.jpeg"
}
Last modified 3mo ago