get Maria Db Server
Use this data source to access information about an existing MariaDB Server.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.mariadb.MariadbFunctions;
import com.pulumi.azure.mariadb.inputs.GetMariaDbServerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var dbServer = MariadbFunctions.getMariaDbServer(GetMariaDbServerArgs.builder()
.name("mariadb-server")
.resourceGroupName(azurerm_mariadb_server.example().resource_group_name())
.build());
ctx.export("mariadbServerId", data.azurerm_mariadb_server().example().id());
}
}
Content copied to clipboard
Return
A collection of values returned by getMariaDbServer.
Parameters
argument
A collection of arguments for invoking getMariaDbServer.
Return
A collection of values returned by getMariaDbServer.
See also
Parameters
name
The name of the MariaDB Server to retrieve information about.
resource Group Name
The name of the resource group where the MariaDB Server exists.
suspend fun getMariaDbServer(argument: suspend GetMariaDbServerPlainArgsBuilder.() -> Unit): GetMariaDbServerResult
Return
A collection of values returned by getMariaDbServer.
See also
Parameters
argument
Builder for com.pulumi.azure.mariadb.kotlin.inputs.GetMariaDbServerPlainArgs.