Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DatabaseManagement.getManagedMySqlDatabases
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Managed My Sql Databases in Oracle Cloud Infrastructure Database Management service.
Gets the list of Managed MySQL Databases in a specific compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedMySqlDatabases = oci.DatabaseManagement.getManagedMySqlDatabases({
    compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_managed_my_sql_databases = oci.DatabaseManagement.get_managed_my_sql_databases(compartment_id=compartment_id)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseManagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DatabaseManagement.GetManagedMySqlDatabases(ctx, &databasemanagement.GetManagedMySqlDatabasesArgs{
			CompartmentId: compartmentId,
		}, 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 testManagedMySqlDatabases = Oci.DatabaseManagement.GetManagedMySqlDatabases.Invoke(new()
    {
        CompartmentId = compartmentId,
    });
});
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.GetManagedMySqlDatabasesArgs;
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 testManagedMySqlDatabases = DatabaseManagementFunctions.getManagedMySqlDatabases(GetManagedMySqlDatabasesArgs.builder()
            .compartmentId(compartmentId)
            .build());
    }
}
variables:
  testManagedMySqlDatabases:
    fn::invoke:
      Function: oci:DatabaseManagement:getManagedMySqlDatabases
      Arguments:
        compartmentId: ${compartmentId}
Using getManagedMySqlDatabases
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 getManagedMySqlDatabases(args: GetManagedMySqlDatabasesArgs, opts?: InvokeOptions): Promise<GetManagedMySqlDatabasesResult>
function getManagedMySqlDatabasesOutput(args: GetManagedMySqlDatabasesOutputArgs, opts?: InvokeOptions): Output<GetManagedMySqlDatabasesResult>def get_managed_my_sql_databases(compartment_id: Optional[str] = None,
                                 filters: Optional[Sequence[_databasemanagement.GetManagedMySqlDatabasesFilter]] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetManagedMySqlDatabasesResult
def get_managed_my_sql_databases_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                 filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetManagedMySqlDatabasesFilterArgs]]]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetManagedMySqlDatabasesResult]func GetManagedMySqlDatabases(ctx *Context, args *GetManagedMySqlDatabasesArgs, opts ...InvokeOption) (*GetManagedMySqlDatabasesResult, error)
func GetManagedMySqlDatabasesOutput(ctx *Context, args *GetManagedMySqlDatabasesOutputArgs, opts ...InvokeOption) GetManagedMySqlDatabasesResultOutput> Note: This function is named GetManagedMySqlDatabases in the Go SDK.
public static class GetManagedMySqlDatabases 
{
    public static Task<GetManagedMySqlDatabasesResult> InvokeAsync(GetManagedMySqlDatabasesArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedMySqlDatabasesResult> Invoke(GetManagedMySqlDatabasesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedMySqlDatabasesResult> getManagedMySqlDatabases(GetManagedMySqlDatabasesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:DatabaseManagement/getManagedMySqlDatabases:getManagedMySqlDatabases
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- Filters
List<GetManaged My Sql Databases Filter> 
- CompartmentId string
- The OCID of the compartment.
- Filters
[]GetManaged My Sql Databases Filter 
- compartmentId String
- The OCID of the compartment.
- filters
List<GetManaged My Sql Databases Filter> 
- compartmentId string
- The OCID of the compartment.
- filters
GetManaged My Sql Databases Filter[] 
- compartment_id str
- The OCID of the compartment.
- filters
Sequence[databasemanagement.Get Managed My Sql Databases Filter] 
- compartmentId String
- The OCID of the compartment.
- filters List<Property Map>
getManagedMySqlDatabases Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedMy List<GetSql Database Collections Managed My Sql Databases Managed My Sql Database Collection> 
- The list of managed_my_sql_database_collection.
- Filters
List<GetManaged My Sql Databases Filter> 
- CompartmentId string
- The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedMy []GetSql Database Collections Managed My Sql Databases Managed My Sql Database Collection 
- The list of managed_my_sql_database_collection.
- Filters
[]GetManaged My Sql Databases Filter 
- compartmentId String
- The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- managedMy List<GetSql Database Collections Managed My Sql Databases Managed My Sql Database Collection> 
- The list of managed_my_sql_database_collection.
- filters
List<GetManaged My Sql Databases Filter> 
- compartmentId string
- The OCID of the compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- managedMy GetSql Database Collections Managed My Sql Databases Managed My Sql Database Collection[] 
- The list of managed_my_sql_database_collection.
- filters
GetManaged My Sql Databases Filter[] 
- compartment_id str
- The OCID of the compartment.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_my_ Sequence[databasemanagement.sql_ database_ collections Get Managed My Sql Databases Managed My Sql Database Collection] 
- The list of managed_my_sql_database_collection.
- filters
Sequence[databasemanagement.Get Managed My Sql Databases Filter] 
- compartmentId String
- The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- managedMy List<Property Map>Sql Database Collections 
- The list of managed_my_sql_database_collection.
- filters List<Property Map>
Supporting Types
GetManagedMySqlDatabasesFilter     
GetManagedMySqlDatabasesManagedMySqlDatabaseCollection         
GetManagedMySqlDatabasesManagedMySqlDatabaseCollectionItem          
- CompartmentId string
- The OCID of the compartment.
- 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 
- Shape of the nodes in the HeatWave cluster.
- HeatWave List<GetNodes Managed My Sql Databases Managed My Sql Database Collection Item Heat Wave Node> 
- The information about an individual HeatWave nodes in the cluster.
- Id string
- The ID associated with the HeatWave node.
- IsHeat boolWave Active 
- If the HeatWave cluster is active or not.
- IsHeat boolWave Enabled 
- If HeatWave is enabled for this db system or not.
- IsLakehouse boolEnabled 
- If HeatWave Lakehouse is enabled for the db system or not.
- Name string
- The name of the Managed MySQL Database.
- TimeCreated string
- The date and time the node was created.
- TimeCreated stringHeat Wave 
- The date and time the Managed MySQL Database was created.
- CompartmentId string
- The OCID of the compartment.
- 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 
- Shape of the nodes in the HeatWave cluster.
- HeatWave []GetNodes Managed My Sql Databases Managed My Sql Database Collection Item Heat Wave Node 
- The information about an individual HeatWave nodes in the cluster.
- Id string
- The ID associated with the HeatWave node.
- IsHeat boolWave Active 
- If the HeatWave cluster is active or not.
- IsHeat boolWave Enabled 
- If HeatWave is enabled for this db system or not.
- IsLakehouse boolEnabled 
- If HeatWave Lakehouse is enabled for the db system or not.
- Name string
- The name of the Managed MySQL Database.
- TimeCreated string
- The date and time the node was created.
- TimeCreated stringHeat Wave 
- The date and time the Managed MySQL Database was created.
- compartmentId String
- The OCID of the compartment.
- 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 
- Shape of the nodes in the HeatWave cluster.
- heatWave List<GetNodes Managed My Sql Databases Managed My Sql Database Collection Item Heat Wave Node> 
- The information about an individual HeatWave nodes in the cluster.
- id String
- The ID associated with the HeatWave node.
- isHeat BooleanWave Active 
- If the HeatWave cluster is active or not.
- isHeat BooleanWave Enabled 
- If HeatWave is enabled for this db system or not.
- isLakehouse BooleanEnabled 
- If HeatWave Lakehouse is enabled for the db system or not.
- name String
- The name of the Managed MySQL Database.
- timeCreated String
- The date and time the node was created.
- timeCreated StringHeat Wave 
- The date and time the Managed MySQL Database was created.
- compartmentId string
- The OCID of the compartment.
- 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 
- Shape of the nodes in the HeatWave cluster.
- heatWave GetNodes Managed My Sql Databases Managed My Sql Database Collection Item Heat Wave Node[] 
- The information about an individual HeatWave nodes in the cluster.
- id string
- The ID associated with the HeatWave node.
- isHeat booleanWave Active 
- If the HeatWave cluster is active or not.
- isHeat booleanWave Enabled 
- If HeatWave is enabled for this db system or not.
- isLakehouse booleanEnabled 
- If HeatWave Lakehouse is enabled for the db system or not.
- name string
- The name of the Managed MySQL Database.
- timeCreated string
- The date and time the node was created.
- timeCreated stringHeat Wave 
- The date and time the Managed MySQL Database was created.
- compartment_id str
- The OCID of the compartment.
- 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 
- Shape of the nodes in the HeatWave cluster.
- heat_wave_ Sequence[databasemanagement.nodes Get Managed My Sql Databases Managed My Sql Database Collection Item Heat Wave Node] 
- The information about an individual HeatWave nodes in the cluster.
- id str
- The ID associated with the HeatWave node.
- is_heat_ boolwave_ active 
- If the HeatWave cluster is active or not.
- is_heat_ boolwave_ enabled 
- If HeatWave is enabled for this db system or not.
- is_lakehouse_ boolenabled 
- If HeatWave Lakehouse is enabled for the db system or not.
- name str
- The name of the Managed MySQL Database.
- time_created str
- The date and time the node was created.
- time_created_ strheat_ wave 
- The date and time the Managed MySQL Database was created.
- compartmentId String
- The OCID of the compartment.
- 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 
- Shape of the nodes in the HeatWave cluster.
- heatWave List<Property Map>Nodes 
- The information about an individual HeatWave nodes in the cluster.
- id String
- The ID associated with the HeatWave node.
- isHeat BooleanWave Active 
- If the HeatWave cluster is active or not.
- isHeat BooleanWave Enabled 
- If HeatWave is enabled for this db system or not.
- isLakehouse BooleanEnabled 
- If HeatWave Lakehouse is enabled for the db system or not.
- name String
- The name of the Managed MySQL Database.
- timeCreated String
- The date and time the node was created.
- timeCreated StringHeat Wave 
- The date and time the Managed MySQL Database was created.
GetManagedMySqlDatabasesManagedMySqlDatabaseCollectionItemHeatWaveNode             
- 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 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 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 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 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 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 node was created.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi