» Data Source: azurerm_monitor_diagnostic_categories

Use this data source to access information about the Monitor Diagnostics Categories supported by an existing Resource.

» Example Usage

data "azurerm_key_vault" "test" {
  name                = "${azurerm_key_vault.test.name}"
  resource_group_name = "${azurerm_key_vault.test.resource_group_name}"
}

data "azurerm_monitor_diagnostic_categories" "test" {
  resource_id = "${azurerm_key_vault.test.id}"
}

» Argument Reference

  • resource_id - (Required) The ID of an existing Resource which Monitor Diagnostics Categories should be retrieved for.

» Attributes Reference

  • id - The ID of the Resource.

  • logs - A list of the Log Categories supported for this Resource.

  • metrics - A list of the Metric Categories supported for this Resource.