Data Source: azurermMariadbServer
Use this data source to access information about an existing MariaDB Server.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new cdktf.TerraformOutput(this, "mariadb_server_id", {
value: "${data.azurerm_mariadb_server.example.id}",
});
new azurerm.dataAzurermMariadbServer.DataAzurermMariadbServer(
this,
"db_server",
{
name: "mariadb-server",
resource_group_name:
"${azurerm_mariadb_server.example.resource_group_name}",
}
);
Argument Reference
The following arguments are supported:
-
name- The name of the MariaDB Server to retrieve information about. -
resourceGroupName- The name of the resource group where the MariaDB Server exists.
Attributes Reference
The following attributes are exported:
-
id- The ID of the MariaDB Server. -
fqdn- The FQDN of the MariaDB Server. -
location- The Azure location where the resource exists. -
skuName- The SKU Name for this MariaDB Server. -
storageProfile- AstorageProfileblock as defined below. -
administratorLogin- The Administrator login for the MariaDB Server. -
version- The version of MariaDB being used. -
sslEnforcement- The SSL being enforced on connections. -
tags- A mapping of tags assigned to the resource.
A storageProfile block exports the following:
-
storageMb- The max storage allowed for a server. -
backupRetentionDays- Backup retention days for the server. -
geoRedundantBackup- Whether Geo-redundant is enabled or not for server backup. -
autoGrow- Whether autogrow is enabled or disabled for the storage.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
read- (Defaults to 5 minutes) Used when retrieving the MariaDB Server.