Use this data source to access information about the Monitor Diagnostics Categories supported by an existing Resource.
data "azurerm_key_vault" "example" {
name = azurerm_key_vault.example.name
resource_group_name = azurerm_key_vault.example.resource_group_name
}
data "azurerm_monitor_diagnostic_categories" "example" {
resource_id = data.azurerm_key_vault.example.id
}
resource_id
- The ID of an existing Resource which Monitor Diagnostics Categories should be retrieved for.id
- The ID of the Resource.
logs
- A list of the Log Categories supported for this Resource.
~> NOTE: logs
is deprecated and will be removed in favour of the property log_category_types
and log_category_groups
in version 4.0 of the AzureRM Provider.
log_category_types
- A list of the supported log category types of this resource to send to the destination.
log_category_groups
- A list of the supported log category groups of this resource to send to the destination.
metrics
- A list of the Metric Categories supported for this Resource.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Monitor Diagnostics Categories.