Data Source: azurerm_cosmosdb_mongo_database

Use this data source to access information about an existing Cosmos DB Mongo Database.

Example Usage

data "azurerm_cosmosdb_mongo_database" "example" {
  name                = "test-cosmosdb-mongo-db"
  resource_group_name = "test-cosmosdb-account-rg"
  account_name        = "test-cosmosdb-account"
}

output "id" {
  value = data.azurerm_cosmosdb_mongo_database.example.id
}

Arguments Reference

The following arguments are supported:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions: