Use this data source to access information about an existing Storage Blob.
data "azurerm_storage_blob" "example" {
name = "example-blob-name"
storage_account_name = "example-storage-account-name"
storage_container_name = "example-storage-container-name"
}
The following arguments are supported:
name
- The name of the Blob.
storage_account_name
- The name of the Storage Account where the Container exists.
storage_container_name
- The name of the Storage Container where the Blob exists.
id
- The ID of the storage blob.
url
- The URL of the storage blob.
type
- The type of the storage blob
access_tier
- The access tier of the storage blob.
content_type
- The content type of the storage blob.
content_md5
- The MD5 sum of the blob contents.
encryption_scope
- The encryption scope for this blob.
metadata
- A map of custom blob metadata.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Storage Blob.