Azure Storage Put
Put blobs on a Microsoft Azure Storage.
Json
Example
You can use a connection string, or a shared key or a sas token. See examples below:
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 | Description |
---|---|
authenticationMode | The authentication mode. Must be CONNECTION_STRING or SHARED_KEY or SAS_TOKEN . |
connectionString | The connection string |
sharedKey | The shared key. |
sasToken | The sas token |
account | The account. |
container | The container. |
request | A valid input. See the complete definition below. |
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 |
---|---|---|
report | An XML a report of uploaded files. | |
allFilesUploaded | YES | NO . YES : all files have been uploaded. NO : at least one file has not been uploaded. |
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 |
.../Content-MD5 | MD5 of the file | 1 |
.../Date | Request date time | 1 |
.../Error-Code | The error code | 1 |
.../Last-Modified | Date the blob was last modified | 1 |
.../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