Use this data source to access information about an existing Data Share.
provider "azurerm" {
features {}
}
data "azurerm_data_share_account" "example" {
name = "example-account"
resource_group_name = "example-resource-group"
}
data "azurerm_data_share" "example" {
name = "existing"
account_id = data.azurerm_data_share_account.example.id
}
output "id" {
value = data.azurerm_data_share.example.id
}
The following arguments are supported:
name
- (Required) The name of this Data Share.
account_id
- (Required) The ID of the Data Share account in which the Data Share is created.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Data Share.
kind
- The kind of the Data Share.
description
- The description of the Data Share.
snapshot_schedule
- A snapshot_schedule
block as defined below.
terms
- The terms of the Data Share.
A snapshot_schedule
block exports the following:
name
- The name of the snapshot schedule.
recurrence
- The interval of the synchronization with the source data.
start_time
- The synchronization with the source data's start time.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Data Share.