Use this data source to access information about an existing File Share.
data "azurerm_storage_share" "example" {
name = "existing"
storage_account_name = "existing"
}
output "id" {
value = data.azurerm_storage_share.example.id
}
The following arguments are supported:
name
- (Required) The name of the share.
storage_account_name
- (Required) The name of the storage account.
id
- The ID of the File Share.
quota
- The quota of the File Share in GB.
metadata
- A map of custom file share metadata.
acl
- One or more acl blocks as defined below.
A acl
block has the following attributes:
id
- The ID which should be used for this Shared Identifier.
access_policy
- An access_policy
block as defined below.
A access_policy
block has the following attributes:
permissions
- The permissions which should be associated with this Shared Identifier. Possible value is combination of r
(read), w
(write), d
(delete), and l
(list).
start
- The time at which this Access Policy should be valid from, in ISO8601 format.
expiry
- The time at which this Access Policy should be valid until, in ISO8601 format.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Storage.