GetMariaDbServer

Use this data source to access information about an existing MariaDB Server.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var dbServer = Output.Create(Azure.MariaDB.GetMariaDbServer.InvokeAsync(new Azure.MariaDB.GetMariaDbServerArgs
        {
            Name = "mariadb-server",
            ResourceGroupName = azurerm_mariadb_server.Example.Resource_group_name,
        }));
        this.MariadbServerId = data.Azurerm_mariadb_server.Example.Id;
    }

    [Output("mariadbServerId")]
    public Output<string> MariadbServerId { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/mariadb"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := mariadb.GetMariaDbServer(ctx, &mariadb.GetMariaDbServerArgs{
            Name:              "mariadb-server",
            ResourceGroupName: azurerm_mariadb_server.Example.Resource_group_name,
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("mariadbServerId", data.Azurerm_mariadb_server.Example.Id)
        return nil
    })
}
import pulumi
import pulumi_azure as azure

db_server = azure.mariadb.get_maria_db_server(name="mariadb-server",
    resource_group_name=azurerm_mariadb_server["example"]["resource_group_name"])
pulumi.export("mariadbServerId", data["azurerm_mariadb_server"]["example"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const dbServer = azure.mariadb.getMariaDbServer({
    name: "mariadb-server",
    resourceGroupName: azurerm_mariadb_server.example.resource_group_name,
});
export const mariadbServerId = data.azurerm_mariadb_server.example.id;

Using GetMariaDbServer

function getMariaDbServer(args: GetMariaDbServerArgs, opts?: InvokeOptions): Promise<GetMariaDbServerResult>
function  get_maria_db_server(name=None, resource_group_name=None, opts=None)
func GetMariaDbServer(ctx *Context, args *GetMariaDbServerArgs, opts ...InvokeOption) (*GetMariaDbServerResult, error)
public static class GetMariaDbServer {
    public static Task<GetMariaDbServerResult> InvokeAsync(GetMariaDbServerArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the MariaDB Server to retrieve information about.

ResourceGroupName string

The name of the resource group where the MariaDB Server exists.

Name string

The name of the MariaDB Server to retrieve information about.

ResourceGroupName string

The name of the resource group where the MariaDB Server exists.

name string

The name of the MariaDB Server to retrieve information about.

resourceGroupName string

The name of the resource group where the MariaDB Server exists.

name str

The name of the MariaDB Server to retrieve information about.

resource_group_name str

The name of the resource group where the MariaDB Server exists.

GetMariaDbServer Result

The following output properties are available:

AdministratorLogin string

The Administrator Login for the MariaDB Server.

Fqdn string

The FQDN of the MariaDB Server.

Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure location where the resource exists.

Name string
ResourceGroupName string
SkuName string

The SKU Name for this MariaDB Server.

SslEnforcement string

The SSL being enforced on connections.

StorageProfiles List<GetMariaDbServerStorageProfile>

A storage_profile block as defined below.

Tags Dictionary<string, string>

A mapping of tags assigned to the resource.

Version string

The version of MariaDB being used.

AdministratorLogin string

The Administrator Login for the MariaDB Server.

Fqdn string

The FQDN of the MariaDB Server.

Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure location where the resource exists.

Name string
ResourceGroupName string
SkuName string

The SKU Name for this MariaDB Server.

SslEnforcement string

The SSL being enforced on connections.

StorageProfiles []GetMariaDbServerStorageProfile

A storage_profile block as defined below.

Tags map[string]string

A mapping of tags assigned to the resource.

Version string

The version of MariaDB being used.

administratorLogin string

The Administrator Login for the MariaDB Server.

fqdn string

The FQDN of the MariaDB Server.

id string

The provider-assigned unique ID for this managed resource.

location string

The Azure location where the resource exists.

name string
resourceGroupName string
skuName string

The SKU Name for this MariaDB Server.

sslEnforcement string

The SSL being enforced on connections.

storageProfiles GetMariaDbServerStorageProfile[]

A storage_profile block as defined below.

tags {[key: string]: string}

A mapping of tags assigned to the resource.

version string

The version of MariaDB being used.

administrator_login str

The Administrator Login for the MariaDB Server.

fqdn str

The FQDN of the MariaDB Server.

id str

The provider-assigned unique ID for this managed resource.

location str

The Azure location where the resource exists.

name str
resource_group_name str
sku_name str

The SKU Name for this MariaDB Server.

ssl_enforcement str

The SSL being enforced on connections.

storage_profiles List[GetMariaDbServerStorageProfile]

A storage_profile block as defined below.

tags Dict[str, str]

A mapping of tags assigned to the resource.

version str

The version of MariaDB being used.

Supporting Types

GetMariaDbServerStorageProfile

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

AutoGrow string

Whether autogrow is enabled or disabled for the storage.

BackupRetentionDays int

Backup retention days for the server.

GeoRedundantBackup string

Whether Geo-redundant is enabled or not for server backup.

StorageMb int

The max storage allowed for a server.

AutoGrow string

Whether autogrow is enabled or disabled for the storage.

BackupRetentionDays int

Backup retention days for the server.

GeoRedundantBackup string

Whether Geo-redundant is enabled or not for server backup.

StorageMb int

The max storage allowed for a server.

autoGrow string

Whether autogrow is enabled or disabled for the storage.

backupRetentionDays number

Backup retention days for the server.

geoRedundantBackup string

Whether Geo-redundant is enabled or not for server backup.

storageMb number

The max storage allowed for a server.

autoGrow str

Whether autogrow is enabled or disabled for the storage.

backup_retention_days float

Backup retention days for the server.

geoRedundantBackup str

Whether Geo-redundant is enabled or not for server backup.

storage_mb float

The max storage allowed for a server.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.