1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getManagedMySqlDatabaseGeneralReplicationInformation
Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi

oci.DatabaseManagement.getManagedMySqlDatabaseGeneralReplicationInformation

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi

    This data source provides details about a specific Managed My Sql Database General Replication Information resource in Oracle Cloud Infrastructure Database Management service.

    Retrieves general information regarding replication of a specific MySQL server.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedMySqlDatabaseGeneralReplicationInformation = oci.DatabaseManagement.getManagedMySqlDatabaseGeneralReplicationInformation({
        managedMySqlDatabaseId: testManagedMySqlDatabase.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_my_sql_database_general_replication_information = oci.DatabaseManagement.get_managed_my_sql_database_general_replication_information(managed_my_sql_database_id=test_managed_my_sql_database["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/databasemanagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databasemanagement.GetManagedMySqlDatabaseGeneralReplicationInformation(ctx, &databasemanagement.GetManagedMySqlDatabaseGeneralReplicationInformationArgs{
    			ManagedMySqlDatabaseId: testManagedMySqlDatabase.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 testManagedMySqlDatabaseGeneralReplicationInformation = Oci.DatabaseManagement.GetManagedMySqlDatabaseGeneralReplicationInformation.Invoke(new()
        {
            ManagedMySqlDatabaseId = testManagedMySqlDatabase.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.GetManagedMySqlDatabaseGeneralReplicationInformationArgs;
    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 testManagedMySqlDatabaseGeneralReplicationInformation = DatabaseManagementFunctions.getManagedMySqlDatabaseGeneralReplicationInformation(GetManagedMySqlDatabaseGeneralReplicationInformationArgs.builder()
                .managedMySqlDatabaseId(testManagedMySqlDatabase.id())
                .build());
    
        }
    }
    
    variables:
      testManagedMySqlDatabaseGeneralReplicationInformation:
        fn::invoke:
          function: oci:DatabaseManagement:getManagedMySqlDatabaseGeneralReplicationInformation
          arguments:
            managedMySqlDatabaseId: ${testManagedMySqlDatabase.id}
    

    Using getManagedMySqlDatabaseGeneralReplicationInformation

    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 getManagedMySqlDatabaseGeneralReplicationInformation(args: GetManagedMySqlDatabaseGeneralReplicationInformationArgs, opts?: InvokeOptions): Promise<GetManagedMySqlDatabaseGeneralReplicationInformationResult>
    function getManagedMySqlDatabaseGeneralReplicationInformationOutput(args: GetManagedMySqlDatabaseGeneralReplicationInformationOutputArgs, opts?: InvokeOptions): Output<GetManagedMySqlDatabaseGeneralReplicationInformationResult>
    def get_managed_my_sql_database_general_replication_information(managed_my_sql_database_id: Optional[str] = None,
                                                                    opts: Optional[InvokeOptions] = None) -> GetManagedMySqlDatabaseGeneralReplicationInformationResult
    def get_managed_my_sql_database_general_replication_information_output(managed_my_sql_database_id: Optional[pulumi.Input[str]] = None,
                                                                    opts: Optional[InvokeOptions] = None) -> Output[GetManagedMySqlDatabaseGeneralReplicationInformationResult]
    func GetManagedMySqlDatabaseGeneralReplicationInformation(ctx *Context, args *GetManagedMySqlDatabaseGeneralReplicationInformationArgs, opts ...InvokeOption) (*GetManagedMySqlDatabaseGeneralReplicationInformationResult, error)
    func GetManagedMySqlDatabaseGeneralReplicationInformationOutput(ctx *Context, args *GetManagedMySqlDatabaseGeneralReplicationInformationOutputArgs, opts ...InvokeOption) GetManagedMySqlDatabaseGeneralReplicationInformationResultOutput

    > Note: This function is named GetManagedMySqlDatabaseGeneralReplicationInformation in the Go SDK.

    public static class GetManagedMySqlDatabaseGeneralReplicationInformation 
    {
        public static Task<GetManagedMySqlDatabaseGeneralReplicationInformationResult> InvokeAsync(GetManagedMySqlDatabaseGeneralReplicationInformationArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedMySqlDatabaseGeneralReplicationInformationResult> Invoke(GetManagedMySqlDatabaseGeneralReplicationInformationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedMySqlDatabaseGeneralReplicationInformationResult> getManagedMySqlDatabaseGeneralReplicationInformation(GetManagedMySqlDatabaseGeneralReplicationInformationArgs args, InvokeOptions options)
    public static Output<GetManagedMySqlDatabaseGeneralReplicationInformationResult> getManagedMySqlDatabaseGeneralReplicationInformation(GetManagedMySqlDatabaseGeneralReplicationInformationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseManagement/getManagedMySqlDatabaseGeneralReplicationInformation:getManagedMySqlDatabaseGeneralReplicationInformation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagedMySqlDatabaseId string
    The OCID of the Managed MySQL Database.
    ManagedMySqlDatabaseId string
    The OCID of the Managed MySQL Database.
    managedMySqlDatabaseId String
    The OCID of the Managed MySQL Database.
    managedMySqlDatabaseId string
    The OCID of the Managed MySQL Database.
    managed_my_sql_database_id str
    The OCID of the Managed MySQL Database.
    managedMySqlDatabaseId String
    The OCID of the Managed MySQL Database.

    getManagedMySqlDatabaseGeneralReplicationInformation Result

    The following output properties are available:

    ApplyStatusSummary string
    A summary of the current status of apply operations.
    BinaryLogFormat string
    The binary logging format used by this server.
    BinaryLogging string
    Status of binary logging on this server.
    ExecutedGtidSet string
    The set of global transaction identifiers for transactions that have been executed on this source server.
    FetchStatusSummary string
    A summary of the current status of fetch operations.
    GtidMode string
    Global Transaction Identifier (GTID) mode of this server.
    HighAvailabilityMemberState string
    The state of this server as a group replication member.
    HostName string
    This server's host name.
    Id string
    The provider-assigned unique ID for this managed resource.
    InboundReplicationsCount int
    The number of sources this server is replicating from.
    InstanceType string
    The type of the instance. Source, Replica, Primary Group Member, Secondary Group Member, and so on. If the instance is replicating from one or more sources and has one or more replicas, i.e., it belongs to a replication chain, the instance type can be Replica/Source.
    IsHighAvailabilityEnabled bool
    Specifies if high availability is enabled on this server.
    ManagedMySqlDatabaseId string
    OutboundReplicationsCount int
    The number of replicas replicating from this server.
    Port int
    The number of the port on which the server listens for TCP/IP connections.
    ReadOnly string
    If the value is ON, the instance is configured as read_only. If the value is SUPER, the instance is configured as super_read_only. If the value is OFF, the instance is neither read_only nor super_read_only.
    SecondsBehindSourceMax string
    The number of seconds the replica is behind the source. When multiple sources are involved, this is the maximum value across all sources.
    ServerId string
    This server's ID.
    ServerUuid string
    This server's Universally Unique Identifier (UUID).
    ApplyStatusSummary string
    A summary of the current status of apply operations.
    BinaryLogFormat string
    The binary logging format used by this server.
    BinaryLogging string
    Status of binary logging on this server.
    ExecutedGtidSet string
    The set of global transaction identifiers for transactions that have been executed on this source server.
    FetchStatusSummary string
    A summary of the current status of fetch operations.
    GtidMode string
    Global Transaction Identifier (GTID) mode of this server.
    HighAvailabilityMemberState string
    The state of this server as a group replication member.
    HostName string
    This server's host name.
    Id string
    The provider-assigned unique ID for this managed resource.
    InboundReplicationsCount int
    The number of sources this server is replicating from.
    InstanceType string
    The type of the instance. Source, Replica, Primary Group Member, Secondary Group Member, and so on. If the instance is replicating from one or more sources and has one or more replicas, i.e., it belongs to a replication chain, the instance type can be Replica/Source.
    IsHighAvailabilityEnabled bool
    Specifies if high availability is enabled on this server.
    ManagedMySqlDatabaseId string
    OutboundReplicationsCount int
    The number of replicas replicating from this server.
    Port int
    The number of the port on which the server listens for TCP/IP connections.
    ReadOnly string
    If the value is ON, the instance is configured as read_only. If the value is SUPER, the instance is configured as super_read_only. If the value is OFF, the instance is neither read_only nor super_read_only.
    SecondsBehindSourceMax string
    The number of seconds the replica is behind the source. When multiple sources are involved, this is the maximum value across all sources.
    ServerId string
    This server's ID.
    ServerUuid string
    This server's Universally Unique Identifier (UUID).
    applyStatusSummary String
    A summary of the current status of apply operations.
    binaryLogFormat String
    The binary logging format used by this server.
    binaryLogging String
    Status of binary logging on this server.
    executedGtidSet String
    The set of global transaction identifiers for transactions that have been executed on this source server.
    fetchStatusSummary String
    A summary of the current status of fetch operations.
    gtidMode String
    Global Transaction Identifier (GTID) mode of this server.
    highAvailabilityMemberState String
    The state of this server as a group replication member.
    hostName String
    This server's host name.
    id String
    The provider-assigned unique ID for this managed resource.
    inboundReplicationsCount Integer
    The number of sources this server is replicating from.
    instanceType String
    The type of the instance. Source, Replica, Primary Group Member, Secondary Group Member, and so on. If the instance is replicating from one or more sources and has one or more replicas, i.e., it belongs to a replication chain, the instance type can be Replica/Source.
    isHighAvailabilityEnabled Boolean
    Specifies if high availability is enabled on this server.
    managedMySqlDatabaseId String
    outboundReplicationsCount Integer
    The number of replicas replicating from this server.
    port Integer
    The number of the port on which the server listens for TCP/IP connections.
    readOnly String
    If the value is ON, the instance is configured as read_only. If the value is SUPER, the instance is configured as super_read_only. If the value is OFF, the instance is neither read_only nor super_read_only.
    secondsBehindSourceMax String
    The number of seconds the replica is behind the source. When multiple sources are involved, this is the maximum value across all sources.
    serverId String
    This server's ID.
    serverUuid String
    This server's Universally Unique Identifier (UUID).
    applyStatusSummary string
    A summary of the current status of apply operations.
    binaryLogFormat string
    The binary logging format used by this server.
    binaryLogging string
    Status of binary logging on this server.
    executedGtidSet string
    The set of global transaction identifiers for transactions that have been executed on this source server.
    fetchStatusSummary string
    A summary of the current status of fetch operations.
    gtidMode string
    Global Transaction Identifier (GTID) mode of this server.
    highAvailabilityMemberState string
    The state of this server as a group replication member.
    hostName string
    This server's host name.
    id string
    The provider-assigned unique ID for this managed resource.
    inboundReplicationsCount number
    The number of sources this server is replicating from.
    instanceType string
    The type of the instance. Source, Replica, Primary Group Member, Secondary Group Member, and so on. If the instance is replicating from one or more sources and has one or more replicas, i.e., it belongs to a replication chain, the instance type can be Replica/Source.
    isHighAvailabilityEnabled boolean
    Specifies if high availability is enabled on this server.
    managedMySqlDatabaseId string
    outboundReplicationsCount number
    The number of replicas replicating from this server.
    port number
    The number of the port on which the server listens for TCP/IP connections.
    readOnly string
    If the value is ON, the instance is configured as read_only. If the value is SUPER, the instance is configured as super_read_only. If the value is OFF, the instance is neither read_only nor super_read_only.
    secondsBehindSourceMax string
    The number of seconds the replica is behind the source. When multiple sources are involved, this is the maximum value across all sources.
    serverId string
    This server's ID.
    serverUuid string
    This server's Universally Unique Identifier (UUID).
    apply_status_summary str
    A summary of the current status of apply operations.
    binary_log_format str
    The binary logging format used by this server.
    binary_logging str
    Status of binary logging on this server.
    executed_gtid_set str
    The set of global transaction identifiers for transactions that have been executed on this source server.
    fetch_status_summary str
    A summary of the current status of fetch operations.
    gtid_mode str
    Global Transaction Identifier (GTID) mode of this server.
    high_availability_member_state str
    The state of this server as a group replication member.
    host_name str
    This server's host name.
    id str
    The provider-assigned unique ID for this managed resource.
    inbound_replications_count int
    The number of sources this server is replicating from.
    instance_type str
    The type of the instance. Source, Replica, Primary Group Member, Secondary Group Member, and so on. If the instance is replicating from one or more sources and has one or more replicas, i.e., it belongs to a replication chain, the instance type can be Replica/Source.
    is_high_availability_enabled bool
    Specifies if high availability is enabled on this server.
    managed_my_sql_database_id str
    outbound_replications_count int
    The number of replicas replicating from this server.
    port int
    The number of the port on which the server listens for TCP/IP connections.
    read_only str
    If the value is ON, the instance is configured as read_only. If the value is SUPER, the instance is configured as super_read_only. If the value is OFF, the instance is neither read_only nor super_read_only.
    seconds_behind_source_max str
    The number of seconds the replica is behind the source. When multiple sources are involved, this is the maximum value across all sources.
    server_id str
    This server's ID.
    server_uuid str
    This server's Universally Unique Identifier (UUID).
    applyStatusSummary String
    A summary of the current status of apply operations.
    binaryLogFormat String
    The binary logging format used by this server.
    binaryLogging String
    Status of binary logging on this server.
    executedGtidSet String
    The set of global transaction identifiers for transactions that have been executed on this source server.
    fetchStatusSummary String
    A summary of the current status of fetch operations.
    gtidMode String
    Global Transaction Identifier (GTID) mode of this server.
    highAvailabilityMemberState String
    The state of this server as a group replication member.
    hostName String
    This server's host name.
    id String
    The provider-assigned unique ID for this managed resource.
    inboundReplicationsCount Number
    The number of sources this server is replicating from.
    instanceType String
    The type of the instance. Source, Replica, Primary Group Member, Secondary Group Member, and so on. If the instance is replicating from one or more sources and has one or more replicas, i.e., it belongs to a replication chain, the instance type can be Replica/Source.
    isHighAvailabilityEnabled Boolean
    Specifies if high availability is enabled on this server.
    managedMySqlDatabaseId String
    outboundReplicationsCount Number
    The number of replicas replicating from this server.
    port Number
    The number of the port on which the server listens for TCP/IP connections.
    readOnly String
    If the value is ON, the instance is configured as read_only. If the value is SUPER, the instance is configured as super_read_only. If the value is OFF, the instance is neither read_only nor super_read_only.
    secondsBehindSourceMax String
    The number of seconds the replica is behind the source. When multiple sources are involved, this is the maximum value across all sources.
    serverId String
    This server's ID.
    serverUuid String
    This server's Universally Unique Identifier (UUID).

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi