Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DatabaseManagement.getManagedMySqlDatabases
Explore with Pulumi AI
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/v2/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 dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Filters
List<Get
Managed My Sql Databases Filter>
- Compartment
Id string - The OCID of the compartment.
- Filters
[]Get
Managed My Sql Databases Filter
- compartment
Id String - The OCID of the compartment.
- filters
List<Get
Managed My Sql Databases Filter>
- compartment
Id string - The OCID of the compartment.
- filters
Get
Managed My Sql Databases Filter[]
- compartment_
id str - The OCID of the compartment.
- filters
Sequence[databasemanagement.
Get Managed My Sql Databases Filter]
- compartment
Id String - The OCID of the compartment.
- filters List<Property Map>
getManagedMySqlDatabases Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
My List<GetSql Database Collections Managed My Sql Databases Managed My Sql Database Collection> - The list of managed_my_sql_database_collection.
- Filters
List<Get
Managed My Sql Databases Filter>
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
My []GetSql Database Collections Managed My Sql Databases Managed My Sql Database Collection - The list of managed_my_sql_database_collection.
- Filters
[]Get
Managed My Sql Databases Filter
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
My List<GetSql Database Collections Managed My Sql Databases Managed My Sql Database Collection> - The list of managed_my_sql_database_collection.
- filters
List<Get
Managed My Sql Databases Filter>
- compartment
Id string - The OCID of the compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
My GetSql Database Collections Managed My Sql Databases Managed My Sql Database Collection[] - The list of managed_my_sql_database_collection.
- filters
Get
Managed 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]
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
My List<Property Map>Sql Database Collections - The list of managed_my_sql_database_collection.
- filters List<Property Map>
Supporting Types
GetManagedMySqlDatabasesFilter
GetManagedMySqlDatabasesManagedMySqlDatabaseCollection
GetManagedMySqlDatabasesManagedMySqlDatabaseCollectionItem
- Compartment
Id string - The OCID of the compartment.
- 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 - Shape of the nodes in the HeatWave cluster.
- Heat
Wave 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.
- 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 string
- The name of the Managed MySQL Database.
- Time
Created string - The date and time the node was created.
- Time
Created stringHeat Wave - The date and time the Managed MySQL Database was created.
- Compartment
Id string - The OCID of the compartment.
- 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 - Shape of the nodes in the HeatWave cluster.
- Heat
Wave []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.
- 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 string
- The name of the Managed MySQL Database.
- Time
Created string - The date and time the node was created.
- Time
Created stringHeat Wave - The date and time the Managed MySQL Database was created.
- compartment
Id String - The OCID of the compartment.
- 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 - Shape of the nodes in the HeatWave cluster.
- heat
Wave 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.
- is
Heat BooleanWave Active - If the HeatWave cluster is active or not.
- is
Heat BooleanWave Enabled - If HeatWave is enabled for this db system or not.
- is
Lakehouse BooleanEnabled - If HeatWave Lakehouse is enabled for the db system or not.
- name String
- The name of the Managed MySQL Database.
- time
Created String - The date and time the node was created.
- time
Created StringHeat Wave - The date and time the Managed MySQL Database was created.
- compartment
Id string - The OCID of the compartment.
- 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 - Shape of the nodes in the HeatWave cluster.
- heat
Wave 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.
- is
Heat booleanWave Active - If the HeatWave cluster is active or not.
- is
Heat booleanWave Enabled - If HeatWave is enabled for this db system or not.
- is
Lakehouse booleanEnabled - If HeatWave Lakehouse is enabled for the db system or not.
- name string
- The name of the Managed MySQL Database.
- time
Created string - The date and time the node was created.
- time
Created 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.
- compartment
Id String - The OCID of the compartment.
- 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 - Shape of the nodes in the HeatWave cluster.
- heat
Wave List<Property Map>Nodes - The information about an individual HeatWave nodes in the cluster.
- id String
- The ID associated with the HeatWave node.
- is
Heat BooleanWave Active - If the HeatWave cluster is active or not.
- is
Heat BooleanWave Enabled - If HeatWave is enabled for this db system or not.
- is
Lakehouse BooleanEnabled - If HeatWave Lakehouse is enabled for the db system or not.
- name String
- The name of the Managed MySQL Database.
- time
Created String - The date and time the node was created.
- time
Created 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.
- Time
Created 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.
- Time
Created 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.
- time
Created 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.
- time
Created 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.
- time
Created 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
oci
Terraform Provider.