create_blob_snapshot | R Documentation |
Create, list and delete blob snapshots
create_blob_snapshot(container, blob, ...) list_blob_snapshots(container, blob) delete_blob_snapshot(container, blob, snapshot, confirm = TRUE)
container |
A blob container. |
blob |
The path/name of a blob. |
... |
For |
snapshot |
For |
confirm |
Whether to ask for confirmation on deleting a blob's snapshots. |
Blobs can have snapshots associated with them, which are the contents and optional metadata for the blob at a given point in time. A snapshot is identified by the date and time on which it was created.
create_blob_snapshot
creates a new snapshot, list_blob_snapshots
lists all the snapshots, and delete_blob_snapshot
deletes a given snapshot or all snapshots for a blob.
Note that snapshots are only supported if the storage account does NOT have hierarchical namespaces enabled.
For create_blob_snapshot
, the datetime string that identifies the snapshot.
For list_blob_snapshots
a vector of such strings, or NULL if the blob has no snapshots.
Other AzureStor functions that support blob snapshots by passing a snapshot
argument: download_blob, get_storage_properties, get_storage_metadata
## Not run: cont <- blob_container("https://mystorage.blob.core.windows.net/mycontainer", key="access_key") snap_id <- create_blob_snapshot(cont, "myfile", tag1="value1", tag2="value2") list_blob_snapshots(cont, "myfile") get_storage_properties(cont, "myfile", snapshot=snap_id) # returns list(tag1="value1", tag2="value2") get_storage_metadata(cont, "myfile", snapshot=snap_id) download_blob(cont, "myfile", snapshot=snap_id) # delete all snapshots delete_blob_snapshots(cont, "myfile", snapshot="all") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.