Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.DatabaseManagement.getManagedMySqlDatabase
Explore with Pulumi AI
This data source provides details about a specific Managed My Sql Database resource in Oracle Cloud Infrastructure Database Management service.
Retrieves General Information for given MySQL Instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedMySqlDatabase = oci.DatabaseManagement.getManagedMySqlDatabase({
    managedMySqlDatabaseId: testManagedMySqlDatabaseOciDatabaseManagementManagedMySqlDatabase.id,
});
import pulumi
import pulumi_oci as oci
test_managed_my_sql_database = oci.DatabaseManagement.get_managed_my_sql_database(managed_my_sql_database_id=test_managed_my_sql_database_oci_database_management_managed_my_sql_database["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/databasemanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databasemanagement.GetManagedMySqlDatabase(ctx, &databasemanagement.GetManagedMySqlDatabaseArgs{
			ManagedMySqlDatabaseId: testManagedMySqlDatabaseOciDatabaseManagementManagedMySqlDatabase.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testManagedMySqlDatabase = Oci.DatabaseManagement.GetManagedMySqlDatabase.Invoke(new()
    {
        ManagedMySqlDatabaseId = testManagedMySqlDatabaseOciDatabaseManagementManagedMySqlDatabase.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
import com.pulumi.oci.DatabaseManagement.inputs.GetManagedMySqlDatabaseArgs;
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 testManagedMySqlDatabase = DatabaseManagementFunctions.getManagedMySqlDatabase(GetManagedMySqlDatabaseArgs.builder()
            .managedMySqlDatabaseId(testManagedMySqlDatabaseOciDatabaseManagementManagedMySqlDatabase.id())
            .build());
    }
}
variables:
  testManagedMySqlDatabase:
    fn::invoke:
      function: oci:DatabaseManagement:getManagedMySqlDatabase
      arguments:
        managedMySqlDatabaseId: ${testManagedMySqlDatabaseOciDatabaseManagementManagedMySqlDatabase.id}
Using getManagedMySqlDatabase
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getManagedMySqlDatabase(args: GetManagedMySqlDatabaseArgs, opts?: InvokeOptions): Promise<GetManagedMySqlDatabaseResult>
function getManagedMySqlDatabaseOutput(args: GetManagedMySqlDatabaseOutputArgs, opts?: InvokeOptions): Output<GetManagedMySqlDatabaseResult>def get_managed_my_sql_database(managed_my_sql_database_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetManagedMySqlDatabaseResult
def get_managed_my_sql_database_output(managed_my_sql_database_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetManagedMySqlDatabaseResult]func GetManagedMySqlDatabase(ctx *Context, args *GetManagedMySqlDatabaseArgs, opts ...InvokeOption) (*GetManagedMySqlDatabaseResult, error)
func GetManagedMySqlDatabaseOutput(ctx *Context, args *GetManagedMySqlDatabaseOutputArgs, opts ...InvokeOption) GetManagedMySqlDatabaseResultOutput> Note: This function is named GetManagedMySqlDatabase in the Go SDK.
public static class GetManagedMySqlDatabase 
{
    public static Task<GetManagedMySqlDatabaseResult> InvokeAsync(GetManagedMySqlDatabaseArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedMySqlDatabaseResult> Invoke(GetManagedMySqlDatabaseInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedMySqlDatabaseResult> getManagedMySqlDatabase(GetManagedMySqlDatabaseArgs args, InvokeOptions options)
public static Output<GetManagedMySqlDatabaseResult> getManagedMySqlDatabase(GetManagedMySqlDatabaseArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getManagedMySqlDatabase:getManagedMySqlDatabase
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Managed
My stringSql Database Id  - The OCID of ManagedMySqlDatabase.
 
- Managed
My stringSql Database Id  - The OCID of ManagedMySqlDatabase.
 
- managed
My StringSql Database Id  - The OCID of ManagedMySqlDatabase.
 
- managed
My stringSql Database Id  - The OCID of ManagedMySqlDatabase.
 
- managed_
my_ strsql_ database_ id  - The OCID of ManagedMySqlDatabase.
 
- managed
My StringSql Database Id  - The OCID of ManagedMySqlDatabase.
 
getManagedMySqlDatabase Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
 - Database
Type string - The type of the MySQL Database. Indicates whether the database is external or MDS.
 - Db
Name string - The name of the MySQL Database.
 - Db
Version string - The version of the MySQL Database.
 - Heat
Wave stringCluster Display Name  - The name of the HeatWave cluster.
 - Heat
Wave intMemory Size  - The total memory belonging to the HeatWave cluster in GBs.
 - Heat
Wave stringNode Shape  - The shape of the nodes in the HeatWave cluster.
 - Heat
Wave List<GetNodes Managed My Sql Database Heat Wave Node>  - The information about individual HeatWave nodes in the cluster.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Is
Heat boolWave Active  - Indicates whether the HeatWave cluster is active or not.
 - Is
Heat boolWave Enabled  - Indicates whether HeatWave is enabled for the MySQL Database System or not.
 - Is
Lakehouse boolEnabled  - Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
 - Managed
My stringSql Database Id  - Management
State string - Indicates database management status.
 - Name string
 - The name of the Managed MySQL Database.
 - State string
 - Indicates lifecycle state of the resource.
 - Time
Created string - The date and time the HeatWave node was created.
 - Time
Created stringHeat Wave  - The date and time the Managed MySQL Database was created.
 - Time
Updated string - The date and time the Managed MySQL Database was updated.
 
- Compartment
Id string - The OCID of the compartment.
 - Database
Type string - The type of the MySQL Database. Indicates whether the database is external or MDS.
 - Db
Name string - The name of the MySQL Database.
 - Db
Version string - The version of the MySQL Database.
 - Heat
Wave stringCluster Display Name  - The name of the HeatWave cluster.
 - Heat
Wave intMemory Size  - The total memory belonging to the HeatWave cluster in GBs.
 - Heat
Wave stringNode Shape  - The shape of the nodes in the HeatWave cluster.
 - Heat
Wave []GetNodes Managed My Sql Database Heat Wave Node  - The information about individual HeatWave nodes in the cluster.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Is
Heat boolWave Active  - Indicates whether the HeatWave cluster is active or not.
 - Is
Heat boolWave Enabled  - Indicates whether HeatWave is enabled for the MySQL Database System or not.
 - Is
Lakehouse boolEnabled  - Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
 - Managed
My stringSql Database Id  - Management
State string - Indicates database management status.
 - Name string
 - The name of the Managed MySQL Database.
 - State string
 - Indicates lifecycle state of the resource.
 - Time
Created string - The date and time the HeatWave node was created.
 - Time
Created stringHeat Wave  - The date and time the Managed MySQL Database was created.
 - Time
Updated string - The date and time the Managed MySQL Database was updated.
 
- compartment
Id String - The OCID of the compartment.
 - database
Type String - The type of the MySQL Database. Indicates whether the database is external or MDS.
 - db
Name String - The name of the MySQL Database.
 - db
Version String - The version of the MySQL Database.
 - heat
Wave StringCluster Display Name  - The name of the HeatWave cluster.
 - heat
Wave IntegerMemory Size  - The total memory belonging to the HeatWave cluster in GBs.
 - heat
Wave StringNode Shape  - The shape of the nodes in the HeatWave cluster.
 - heat
Wave List<GetNodes Managed My Sql Database Heat Wave Node>  - The information about individual HeatWave nodes in the cluster.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - is
Heat BooleanWave Active  - Indicates whether the HeatWave cluster is active or not.
 - is
Heat BooleanWave Enabled  - Indicates whether HeatWave is enabled for the MySQL Database System or not.
 - is
Lakehouse BooleanEnabled  - Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
 - managed
My StringSql Database Id  - management
State String - Indicates database management status.
 - name String
 - The name of the Managed MySQL Database.
 - state String
 - Indicates lifecycle state of the resource.
 - time
Created String - The date and time the HeatWave node was created.
 - time
Created StringHeat Wave  - The date and time the Managed MySQL Database was created.
 - time
Updated String - The date and time the Managed MySQL Database was updated.
 
- compartment
Id string - The OCID of the compartment.
 - database
Type string - The type of the MySQL Database. Indicates whether the database is external or MDS.
 - db
Name string - The name of the MySQL Database.
 - db
Version string - The version of the MySQL Database.
 - heat
Wave stringCluster Display Name  - The name of the HeatWave cluster.
 - heat
Wave numberMemory Size  - The total memory belonging to the HeatWave cluster in GBs.
 - heat
Wave stringNode Shape  - The shape of the nodes in the HeatWave cluster.
 - heat
Wave GetNodes Managed My Sql Database Heat Wave Node[]  - The information about individual HeatWave nodes in the cluster.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - is
Heat booleanWave Active  - Indicates whether the HeatWave cluster is active or not.
 - is
Heat booleanWave Enabled  - Indicates whether HeatWave is enabled for the MySQL Database System or not.
 - is
Lakehouse booleanEnabled  - Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
 - managed
My stringSql Database Id  - management
State string - Indicates database management status.
 - name string
 - The name of the Managed MySQL Database.
 - state string
 - Indicates lifecycle state of the resource.
 - time
Created string - The date and time the HeatWave node was created.
 - time
Created stringHeat Wave  - The date and time the Managed MySQL Database was created.
 - time
Updated string - The date and time the Managed MySQL Database was updated.
 
- compartment_
id str - The OCID of the compartment.
 - database_
type str - The type of the MySQL Database. Indicates whether the database is external or MDS.
 - db_
name str - The name of the MySQL Database.
 - db_
version str - The version of the MySQL Database.
 - heat_
wave_ strcluster_ display_ name  - The name of the HeatWave cluster.
 - heat_
wave_ intmemory_ size  - The total memory belonging to the HeatWave cluster in GBs.
 - heat_
wave_ strnode_ shape  - The shape of the nodes in the HeatWave cluster.
 - heat_
wave_ Sequence[databasemanagement.nodes Get Managed My Sql Database Heat Wave Node]  - The information about individual HeatWave nodes in the cluster.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - is_
heat_ boolwave_ active  - Indicates whether the HeatWave cluster is active or not.
 - is_
heat_ boolwave_ enabled  - Indicates whether HeatWave is enabled for the MySQL Database System or not.
 - is_
lakehouse_ boolenabled  - Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
 - managed_
my_ strsql_ database_ id  - management_
state str - Indicates database management status.
 - name str
 - The name of the Managed MySQL Database.
 - state str
 - Indicates lifecycle state of the resource.
 - time_
created str - The date and time the HeatWave node was created.
 - time_
created_ strheat_ wave  - The date and time the Managed MySQL Database was created.
 - time_
updated str - The date and time the Managed MySQL Database was updated.
 
- compartment
Id String - The OCID of the compartment.
 - database
Type String - The type of the MySQL Database. Indicates whether the database is external or MDS.
 - db
Name String - The name of the MySQL Database.
 - db
Version String - The version of the MySQL Database.
 - heat
Wave StringCluster Display Name  - The name of the HeatWave cluster.
 - heat
Wave NumberMemory Size  - The total memory belonging to the HeatWave cluster in GBs.
 - heat
Wave StringNode Shape  - The shape of the nodes in the HeatWave cluster.
 - heat
Wave List<Property Map>Nodes  - The information about individual HeatWave nodes in the cluster.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - is
Heat BooleanWave Active  - Indicates whether the HeatWave cluster is active or not.
 - is
Heat BooleanWave Enabled  - Indicates whether HeatWave is enabled for the MySQL Database System or not.
 - is
Lakehouse BooleanEnabled  - Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
 - managed
My StringSql Database Id  - management
State String - Indicates database management status.
 - name String
 - The name of the Managed MySQL Database.
 - state String
 - Indicates lifecycle state of the resource.
 - time
Created String - The date and time the HeatWave node was created.
 - time
Created StringHeat Wave  - The date and time the Managed MySQL Database was created.
 - time
Updated String - The date and time the Managed MySQL Database was updated.
 
Supporting Types
GetManagedMySqlDatabaseHeatWaveNode       
- Id string
 - The ID associated with the HeatWave node.
 - Status string
 - The status of the HeatWave node. Indicates whether the status of the node is UP, DOWN, or UNKNOWN at the current time.
 - Time
Created string - The date and time the HeatWave node was created.
 
- Id string
 - The ID associated with the HeatWave node.
 - Status string
 - The status of the HeatWave node. Indicates whether the status of the node is UP, DOWN, or UNKNOWN at the current time.
 - Time
Created string - The date and time the HeatWave node was created.
 
- id String
 - The ID associated with the HeatWave node.
 - status String
 - The status of the HeatWave node. Indicates whether the status of the node is UP, DOWN, or UNKNOWN at the current time.
 - time
Created String - The date and time the HeatWave node was created.
 
- id string
 - The ID associated with the HeatWave node.
 - status string
 - The status of the HeatWave node. Indicates whether the status of the node is UP, DOWN, or UNKNOWN at the current time.
 - time
Created string - The date and time the HeatWave node was created.
 
- id str
 - The ID associated with the HeatWave node.
 - status str
 - The status of the HeatWave node. Indicates whether the status of the node is UP, DOWN, or UNKNOWN at the current time.
 - time_
created str - The date and time the HeatWave node was created.
 
- id String
 - The ID associated with the HeatWave node.
 - status String
 - The status of the HeatWave node. Indicates whether the status of the node is UP, DOWN, or UNKNOWN at the current time.
 - time
Created String - The date and time the HeatWave node was created.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.