Azure Storage - Put blobs
Put blobs on a Microsoft Azure Storage.
Examples
json
{
"name": "azure-storage-blob-put",
"taskReferenceName": "azure_put",
"description": "The business description of the task",
"type": "SUB_WORKFLOW",
"optional": false,
"inputParameters": {
"authenticationMode": "CONNECTION_STRING",
"connectionString": "your-connection-string",
"container": "your-container",
"request": "${previousTask.output.file}"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
json
{
"name": "azure-storage-blob-put",
"taskReferenceName": "azure_put",
"description": "The business description of the task",
"type": "SUB_WORKFLOW",
"optional": false,
"inputParameters": {
"authenticationMode": "SHARED_KEY",
"sharedKey": "your-shared-key",
"account": "your-account",
"container": "your-container",
"request": "${previousTask.output.file}"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
json
{
"name": "azure-storage-blob-put",
"taskReferenceName": "azure_put",
"description": "The business description of the task",
"type": "SUB_WORKFLOW",
"optional": false,
"inputParameters": {
"authenticationMode": "SAS_TOKEN",
"sasToken": "your-sas-token",
"account": "your-account",
"container": "your-container",
"request": "${previousTask.output.file}"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
Definition
Property | Type | Required | Description |
---|---|---|---|
The name (or type) of the task | |||
The unique name of the task in your job. It is used to reference this task in the workflow. | |||
The functional description of this task in your job. | |||
The type of the task. It must be SUB_WORKFLOW . | |||
true : the job continues if there is an error on this task. false : the job fails. | |||
Input parameters of the task. See below |
Inputs
Property | Type | Description |
---|---|---|
: | The authentication mode. Must be CONNECTION_STRING or SHARED_KEY or SAS_TOKEN . | |
The connection string | ||
The shared key. | ||
The sas token | ||
The account. | ||
The container. | ||
A valid input. See the complete definition below. | ||
: | Default: false When set to true , the report generation is skipped and thus the report is not available in the output parameters. |
Input request
Example
xml
<Azure-Storage-Blob-Put>
<File>
<Url>https://prodstoragevazc.blob.core.windows.net/images/ee0c68fabf0a2b3c76b2643bff3cc215030f0caf.jpg</Url>
<Name>img/products-1.jpg</Name>
<Metadata>
<ean>1234567890123</ean>
<hash>8cca35ef9731da58ba0826e01e2c9047e41ba3e8692282de7999bf601d7adc88</hash>
</Metadata>
</File>
<File>
<Url>https://prodstoragevazc.blob.core.windows.net/images/7a597747dbc536e53eeb47760b5145d002b5bc25.jpg</Url>
<Name>img/products-2.jpg</Name>
<Metadata>
<ean>1234567890123</ean>
<hash>8cca35ef9731da58ba0826e01e2c9047e41ba3e8692282de7999bf601d7adc87</hash>
</Metadata>
</File>
</Azure-Storage-Blob-Put>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Definition
XPath | Description | Occurs |
---|---|---|
./Azure-Storage-Blob-Put | The root of the document | 1 |
./File | For each file | 0..* |
../Url | The complete url of the file | 1 |
../Name | The name of the file. Do not use / at the begining. | 1 |
../Metadata | You can add metadata, metadata are key/value pair. Each element's name is the key and the element's value is the value. | 1 |
Outputs
Property | Type | Description |
---|---|---|
YES : all files have been uploaded. NO : at least one file has not been uploaded. | ||
An XML file containing a set of logs related to the execution of the task. This output is not available if the input skipReportGeneration=true . |
Output report
Example
xml
<Azure-Storage-Blob-Put-Report>
<File>
<Url>https://prodstoragevazc.blob.core.windows.net/images/ee0c68fabf0a2b3c76b2643bff3cc215030f0caf.jpg</Url>
<Name>img/products-1.jpg</Name>
<Response>
<Content-MD5></Content-MD5>
<Date></Date>
<Error-Code></Error-Code>
<Last-Modified></Last-Modified>
<Metadata>
<ean>1234567890123</ean>
<hash>8cca35ef9731da58ba0826e01e2c9047e41ba3e8692282de7999bf601d7adc87</hash>
</Metadata>
</Response>
</File>
<File>
<Url>https://prodstoragevazc.blob.core.windows.net/images/7a597747dbc536e53eeb47760b5145d002b5bc25.jpg</Url>
<Name>img/products-2.jpg</Name>
<Response>
<Content-MD5></Content-MD5>
<Date></Date>
<Error-Code></Error-Code>
<Last-Modified></Last-Modified>
<Metadata>
<ean>1234567890123</ean>
<hash>8cca35ef9731da58ba0826e01e2c9047e41ba3e8692282de7999bf601d7adc87</hash>
</Metadata>
</Response>
</File>
</Azure-Storage-Blob-Put-Report>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Definition
XPath | Description | Occurs |
---|---|---|
./Azure-Storage-Blob-Put-Report | The root of the document | 1 |
./File | For each file | 0..* |
../Url | The complete url of the file | 1 |
../Name | The name of the file | 1 |
../Response | Response | 1 |
../Response/Content-MD5 | MD5 of the file | 1 |
../Response/Date | Request date time | 1 |
../Response/Error-Code | The error code | 1 |
../Response/Last-Modified | Date the blob was last modified | 1 |
../Response/Metadata | Metadata are key/value pair. Each element's name is the key and the element's value is the value. | 1 |
Limits and additional notes
- Maximum files: 1 000
- Maximum file size: 2 Go
- Global maximum files size: 20 Go