Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 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:
- ManagedMy stringSql Database Id 
- The OCID of ManagedMySqlDatabase.
- ManagedMy stringSql Database Id 
- The OCID of ManagedMySqlDatabase.
- managedMy StringSql Database Id 
- The OCID of ManagedMySqlDatabase.
- managedMy stringSql Database Id 
- The OCID of ManagedMySqlDatabase.
- managed_my_ strsql_ database_ id 
- The OCID of ManagedMySqlDatabase.
- managedMy StringSql Database Id 
- The OCID of ManagedMySqlDatabase.
getManagedMySqlDatabase Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- DatabaseType string
- The type of the MySQL Database. Indicates whether the database is external or MDS.
- DbName string
- The name of the MySQL Database.
- DbVersion string
- The version of the MySQL Database.
- HeatWave stringCluster Display Name 
- The name of the HeatWave cluster.
- HeatWave intMemory Size 
- The total memory belonging to the HeatWave cluster in GBs.
- HeatWave stringNode Shape 
- The shape of the nodes in the HeatWave cluster.
- HeatWave 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.
- IsHeat boolWave Active 
- Indicates whether the HeatWave cluster is active or not.
- IsHeat boolWave Enabled 
- Indicates whether HeatWave is enabled for the MySQL Database System or not.
- IsLakehouse boolEnabled 
- Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
- ManagedMy stringSql Database Id 
- ManagementState string
- Indicates database management status.
- Name string
- The name of the Managed MySQL Database.
- State string
- Indicates lifecycle state of the resource.
- TimeCreated string
- The date and time the HeatWave node was created.
- TimeCreated stringHeat Wave 
- The date and time the Managed MySQL Database was created.
- TimeUpdated string
- The date and time the Managed MySQL Database was updated.
- CompartmentId string
- The OCID of the compartment.
- DatabaseType string
- The type of the MySQL Database. Indicates whether the database is external or MDS.
- DbName string
- The name of the MySQL Database.
- DbVersion string
- The version of the MySQL Database.
- HeatWave stringCluster Display Name 
- The name of the HeatWave cluster.
- HeatWave intMemory Size 
- The total memory belonging to the HeatWave cluster in GBs.
- HeatWave stringNode Shape 
- The shape of the nodes in the HeatWave cluster.
- HeatWave []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.
- IsHeat boolWave Active 
- Indicates whether the HeatWave cluster is active or not.
- IsHeat boolWave Enabled 
- Indicates whether HeatWave is enabled for the MySQL Database System or not.
- IsLakehouse boolEnabled 
- Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
- ManagedMy stringSql Database Id 
- ManagementState string
- Indicates database management status.
- Name string
- The name of the Managed MySQL Database.
- State string
- Indicates lifecycle state of the resource.
- TimeCreated string
- The date and time the HeatWave node was created.
- TimeCreated stringHeat Wave 
- The date and time the Managed MySQL Database was created.
- TimeUpdated string
- The date and time the Managed MySQL Database was updated.
- compartmentId String
- The OCID of the compartment.
- databaseType String
- The type of the MySQL Database. Indicates whether the database is external or MDS.
- dbName String
- The name of the MySQL Database.
- dbVersion String
- The version of the MySQL Database.
- heatWave StringCluster Display Name 
- The name of the HeatWave cluster.
- heatWave IntegerMemory Size 
- The total memory belonging to the HeatWave cluster in GBs.
- heatWave StringNode Shape 
- The shape of the nodes in the HeatWave cluster.
- heatWave 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.
- isHeat BooleanWave Active 
- Indicates whether the HeatWave cluster is active or not.
- isHeat BooleanWave Enabled 
- Indicates whether HeatWave is enabled for the MySQL Database System or not.
- isLakehouse BooleanEnabled 
- Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
- managedMy StringSql Database Id 
- managementState String
- Indicates database management status.
- name String
- The name of the Managed MySQL Database.
- state String
- Indicates lifecycle state of the resource.
- timeCreated String
- The date and time the HeatWave node was created.
- timeCreated StringHeat Wave 
- The date and time the Managed MySQL Database was created.
- timeUpdated String
- The date and time the Managed MySQL Database was updated.
- compartmentId string
- The OCID of the compartment.
- databaseType string
- The type of the MySQL Database. Indicates whether the database is external or MDS.
- dbName string
- The name of the MySQL Database.
- dbVersion string
- The version of the MySQL Database.
- heatWave stringCluster Display Name 
- The name of the HeatWave cluster.
- heatWave numberMemory Size 
- The total memory belonging to the HeatWave cluster in GBs.
- heatWave stringNode Shape 
- The shape of the nodes in the HeatWave cluster.
- heatWave 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.
- isHeat booleanWave Active 
- Indicates whether the HeatWave cluster is active or not.
- isHeat booleanWave Enabled 
- Indicates whether HeatWave is enabled for the MySQL Database System or not.
- isLakehouse booleanEnabled 
- Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
- managedMy stringSql Database Id 
- managementState string
- Indicates database management status.
- name string
- The name of the Managed MySQL Database.
- state string
- Indicates lifecycle state of the resource.
- timeCreated string
- The date and time the HeatWave node was created.
- timeCreated stringHeat Wave 
- The date and time the Managed MySQL Database was created.
- timeUpdated 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[Getnodes 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.
- compartmentId String
- The OCID of the compartment.
- databaseType String
- The type of the MySQL Database. Indicates whether the database is external or MDS.
- dbName String
- The name of the MySQL Database.
- dbVersion String
- The version of the MySQL Database.
- heatWave StringCluster Display Name 
- The name of the HeatWave cluster.
- heatWave NumberMemory Size 
- The total memory belonging to the HeatWave cluster in GBs.
- heatWave StringNode Shape 
- The shape of the nodes in the HeatWave cluster.
- heatWave List<Property Map>Nodes 
- The information about individual HeatWave nodes in the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- isHeat BooleanWave Active 
- Indicates whether the HeatWave cluster is active or not.
- isHeat BooleanWave Enabled 
- Indicates whether HeatWave is enabled for the MySQL Database System or not.
- isLakehouse BooleanEnabled 
- Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not.
- managedMy StringSql Database Id 
- managementState String
- Indicates database management status.
- name String
- The name of the Managed MySQL Database.
- state String
- Indicates lifecycle state of the resource.
- timeCreated String
- The date and time the HeatWave node was created.
- timeCreated StringHeat Wave 
- The date and time the Managed MySQL Database was created.
- timeUpdated 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.
- TimeCreated 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.
- TimeCreated 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.
- timeCreated 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.
- timeCreated 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.
- timeCreated 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.