Blobstorage
formatting...Task performs Azure Blob Storage put operations to a specified endpoint.
This is useful if the scenario is another user type than BlobStorageUser
, but the scenario still requires an action towards a blob container.
Only supports RequestDirection.TO
.
Step implementations
Arguments
Name | Type | Description | Default |
---|---|---|---|
direction |
RequestDirection |
if the request is upstream or downstream | required |
endpoint |
str |
specifies details to be able to perform the request, e.g. account and container information | required |
name |
str |
name used in locust statistics |
required |
destination |
str |
name of the file when uploaded, if not specified the basename of source will be used |
None |
source |
str |
file path of local file that should be saved in Container |
None |
Format
endpoint
Using connection strings:
Name | Type | Description | Default |
---|---|---|---|
AccountName |
str |
name of storage account | required |
AccountKey |
str |
secret key to be able to "connect" to the storage account | required |
Container |
str |
name of the container to perform the request on | required |
Overwrite |
bool |
if files should be overwritten if they already exists in Container |
False |
Using credentials:
Name | Type | Description | Default |
---|---|---|---|
username |
str |
username to authenticate with | required |
password |
str |
password to authenticate with | required |
AccountName |
str |
name of storage account | required |
Tenant |
str |
name of tenant to authenticate with | required |
Container |
str |
name of the container to perform the request on | required |
Overwrite |
bool |
if files should be overwritten if they already exists in Container |
False |
destination
The MIME type of an uploaded file will automagically be guessed based on the (rendered) destination file extension.
Examples
Then put to "upload/incoming.j2.txt" to "bss://$conf::storage.name$/$conf::storage.container$?AccountKey=$conf::storage.key$#Overwrite=True" with name "upload" as "2025/08/13/incoming.txt"