You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-grid/event-schema-blob-storage.md
+231Lines changed: 231 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,19 @@ These events are triggered if you enable a hierarchical namespace on the storage
45
45
> [!NOTE]
46
46
> For **Azure Data Lake Storage Gen2**, if you want to ensure that the **Microsoft.Storage.BlobCreated** event is triggered only when a Block Blob is completely committed, filter the event for the `FlushWithClose` REST API call. This API call triggers the **Microsoft.Storage.BlobCreated** event only after data is fully committed to a Block Blob. To learn how to create a filter, see [Filter events for Event Grid](./how-to-filter-events.md).
47
47
48
+
### List of the events for SFTP APIs
49
+
50
+
These events are triggered if you enable a hierarchical namespace on the storage account, and clients use SFTP APIs. For more information about SFTP support for Azure Blob Storage, see [SSH File Transfer Protocol (SFTP) in Azure Blob Storage](../storage/blobs/secure-file-transfer-protocol-support.md).
51
+
52
+
|Event name|Description|
53
+
|----------|-----------|
54
+
|**Microsoft.Storage.BlobCreated**|Triggered when a blob is created or overwritten. <br>Specifically, this event is triggered when clients use the `put` operation, which corresponds to the `SftpCreate` and `SftpCommit` APIs. An empty blob is created when the file is opened and the uploaded contents are committed when the file is closed.|
55
+
|**Microsoft.Storage.BlobDeleted**|Triggered when a blob is deleted. <br>Specifically, this event is also triggered when clients call the `rm` operation, which corresponds to the `SftpRemove` API.|
56
+
|**Microsoft.Storage.BlobRenamed**|Triggered when a blob is renamed. <br>Specifically, this event is triggered when clients use the `rename` operation on files, which corresponds to the `SftpRename` API.|
57
+
|**Microsoft.Storage.DirectoryCreated**|Triggered when a directory is created. <br>Specifically, this event is triggered when clients use the `mkdir` operation, which corresponds to the `SftpMakeDir` API.|
58
+
|**Microsoft.Storage.DirectoryRenamed**|Triggered when a directory is renamed. <br>Specifically, this event is triggered when clients use the `rename` operation on a directory, which corresponds to the `SftpRename` API.|
59
+
|**Microsoft.Storage.DirectoryDeleted**|Triggered when a directory is deleted. <br>Specifically, this event is triggered when clients use the `rmdir` operation, which corresponds to the `SftpRemoveDir` API.|
60
+
48
61
### List of policy-related events
49
62
50
63
These events are triggered when the actions defined by a policy are performed.
@@ -127,6 +140,52 @@ If the blob storage account has a hierarchical namespace, the data looks similar
127
140
}]
128
141
```
129
142
143
+
### Microsoft.Storage.BlobCreated event (SFTP)
144
+
145
+
If the blob storage account uses SFTP to create or overwrite a blob, then the data looks similar to the previous example with an exception of these changes:
146
+
147
+
* The `dataVersion` key is set to a value of `3`.
148
+
149
+
* The `data.api` key is set to the string `SftpCreate` or `SftpCommit`.
150
+
151
+
* The `clientRequestId` key is not included.
152
+
153
+
* The `contentType` key is set to `application/octet-stream`.
154
+
155
+
* The `contentOffset` key is included in the data set.
156
+
157
+
* The `identity` key is included in the data set. This corresponds to the local user used for SFTP authentication.
158
+
159
+
> [!NOTE]
160
+
> SFTP uploads will generate 2 events. One `SftpCreate` for an initial empty blob created when opening the file and one `SftpCommit` when the file contents are written.
@@ -668,6 +898,7 @@ The data object has the following properties:
668
898
|`url`| string | The path to the blob. <br>If the client uses a Blob REST API, then the url has this structure: `<storage-account-name>.blob.core.windows.net\<container-name>\<file-name>`. <br>If the client uses a Data Lake Storage REST API, then the url has this structure: `<storage-account-name>.dfs.core.windows.net/<file-system-name>/<file-name>`. |
669
899
|`recursive`| string |`True` to run the operation on all child directories; otherwise `False`. <br>Appears only for events triggered on blob storage accounts that have a hierarchical namespace. |
670
900
|`sequencer`| string | An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. |
901
+
|`identity`| string | A string value representing the identity associated with the event. For SFTP, this is the local user name.|
671
902
|`storageDiagnostics`| object | Diagnostic data occasionally included by the Azure Storage service. When present, should be ignored by event consumers. |
<sup>1</sup> Data Lake Storage Gen2 and the Network File System (NFS) 3.0 protocol both require a storage account with a hierarchical namespace enabled.
112
-
113
111
<sup>1</sup> Data Lake Storage Gen2, Network File System (NFS) 3.0 protocol, and SSH File Transfer Protocol (SFTP) support all require a storage account with a hierarchical namespace enabled.
0 commit comments