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

oci.DatabaseManagement.getManagedMySqlDatabaseOutboundReplications

Explore with Pulumi AI

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

    This data source provides the list of Managed My Sql Database Outbound Replications in Oracle Cloud Infrastructure Database Management service.

    Retrieves information pertaining to outbound replications of a specific MySQL server.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedMySqlDatabaseOutboundReplications = oci.DatabaseManagement.getManagedMySqlDatabaseOutboundReplications({
        managedMySqlDatabaseId: testManagedMySqlDatabase.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_my_sql_database_outbound_replications = oci.DatabaseManagement.get_managed_my_sql_database_outbound_replications(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.GetManagedMySqlDatabaseOutboundReplications(ctx, &databasemanagement.GetManagedMySqlDatabaseOutboundReplicationsArgs{
    			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 testManagedMySqlDatabaseOutboundReplications = Oci.DatabaseManagement.GetManagedMySqlDatabaseOutboundReplications.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.GetManagedMySqlDatabaseOutboundReplicationsArgs;
    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 testManagedMySqlDatabaseOutboundReplications = DatabaseManagementFunctions.getManagedMySqlDatabaseOutboundReplications(GetManagedMySqlDatabaseOutboundReplicationsArgs.builder()
                .managedMySqlDatabaseId(testManagedMySqlDatabase.id())
                .build());
    
        }
    }
    
    variables:
      testManagedMySqlDatabaseOutboundReplications:
        fn::invoke:
          function: oci:DatabaseManagement:getManagedMySqlDatabaseOutboundReplications
          arguments:
            managedMySqlDatabaseId: ${testManagedMySqlDatabase.id}
    

    Using getManagedMySqlDatabaseOutboundReplications

    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 getManagedMySqlDatabaseOutboundReplications(args: GetManagedMySqlDatabaseOutboundReplicationsArgs, opts?: InvokeOptions): Promise<GetManagedMySqlDatabaseOutboundReplicationsResult>
    function getManagedMySqlDatabaseOutboundReplicationsOutput(args: GetManagedMySqlDatabaseOutboundReplicationsOutputArgs, opts?: InvokeOptions): Output<GetManagedMySqlDatabaseOutboundReplicationsResult>
    def get_managed_my_sql_database_outbound_replications(filters: Optional[Sequence[GetManagedMySqlDatabaseOutboundReplicationsFilter]] = None,
                                                          managed_my_sql_database_id: Optional[str] = None,
                                                          opts: Optional[InvokeOptions] = None) -> GetManagedMySqlDatabaseOutboundReplicationsResult
    def get_managed_my_sql_database_outbound_replications_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetManagedMySqlDatabaseOutboundReplicationsFilterArgs]]]] = None,
                                                          managed_my_sql_database_id: Optional[pulumi.Input[str]] = None,
                                                          opts: Optional[InvokeOptions] = None) -> Output[GetManagedMySqlDatabaseOutboundReplicationsResult]
    func GetManagedMySqlDatabaseOutboundReplications(ctx *Context, args *GetManagedMySqlDatabaseOutboundReplicationsArgs, opts ...InvokeOption) (*GetManagedMySqlDatabaseOutboundReplicationsResult, error)
    func GetManagedMySqlDatabaseOutboundReplicationsOutput(ctx *Context, args *GetManagedMySqlDatabaseOutboundReplicationsOutputArgs, opts ...InvokeOption) GetManagedMySqlDatabaseOutboundReplicationsResultOutput

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

    public static class GetManagedMySqlDatabaseOutboundReplications 
    {
        public static Task<GetManagedMySqlDatabaseOutboundReplicationsResult> InvokeAsync(GetManagedMySqlDatabaseOutboundReplicationsArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedMySqlDatabaseOutboundReplicationsResult> Invoke(GetManagedMySqlDatabaseOutboundReplicationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedMySqlDatabaseOutboundReplicationsResult> getManagedMySqlDatabaseOutboundReplications(GetManagedMySqlDatabaseOutboundReplicationsArgs args, InvokeOptions options)
    public static Output<GetManagedMySqlDatabaseOutboundReplicationsResult> getManagedMySqlDatabaseOutboundReplications(GetManagedMySqlDatabaseOutboundReplicationsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseManagement/getManagedMySqlDatabaseOutboundReplications:getManagedMySqlDatabaseOutboundReplications
      arguments:
        # arguments dictionary

    The following arguments are supported:

    managedMySqlDatabaseId String
    The OCID of the Managed MySQL Database.
    filters List<Property Map>

    getManagedMySqlDatabaseOutboundReplications Result

    The following output properties are available:

    id String
    The provider-assigned unique ID for this managed resource.
    managedMySqlDatabaseId String
    managedMySqlDatabaseOutboundReplicationCollections List<Property Map>
    The list of managed_my_sql_database_outbound_replication_collection.
    filters List<Property Map>

    Supporting Types

    GetManagedMySqlDatabaseOutboundReplicationsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetManagedMySqlDatabaseOutboundReplicationsManagedMySqlDatabaseOutboundReplicationCollection

    Items List<GetManagedMySqlDatabaseOutboundReplicationsManagedMySqlDatabaseOutboundReplicationCollectionItem>
    The list of ManagedMySqlDatabaseOutboundReplicationSummary records.
    OutboundReplicationsCount int
    The number of outbound replications from this server.
    Items []GetManagedMySqlDatabaseOutboundReplicationsManagedMySqlDatabaseOutboundReplicationCollectionItem
    The list of ManagedMySqlDatabaseOutboundReplicationSummary records.
    OutboundReplicationsCount int
    The number of outbound replications from this server.
    items List<GetManagedMySqlDatabaseOutboundReplicationsManagedMySqlDatabaseOutboundReplicationCollectionItem>
    The list of ManagedMySqlDatabaseOutboundReplicationSummary records.
    outboundReplicationsCount Integer
    The number of outbound replications from this server.
    items GetManagedMySqlDatabaseOutboundReplicationsManagedMySqlDatabaseOutboundReplicationCollectionItem[]
    The list of ManagedMySqlDatabaseOutboundReplicationSummary records.
    outboundReplicationsCount number
    The number of outbound replications from this server.
    items Sequence[GetManagedMySqlDatabaseOutboundReplicationsManagedMySqlDatabaseOutboundReplicationCollectionItem]
    The list of ManagedMySqlDatabaseOutboundReplicationSummary records.
    outbound_replications_count int
    The number of outbound replications from this server.
    items List<Property Map>
    The list of ManagedMySqlDatabaseOutboundReplicationSummary records.
    outboundReplicationsCount Number
    The number of outbound replications from this server.

    GetManagedMySqlDatabaseOutboundReplicationsManagedMySqlDatabaseOutboundReplicationCollectionItem

    ReplicaHost string
    The host name of the replica server, as specified on the replica with the --report-host option. This can differ from the machine name as configured in the operating system.
    ReplicaPort int
    The port on the replica server, as specified on the replica with the --report-port option. A zero in this column means that the replica port (--report-port) was not set.
    ReplicaServerId string
    The server ID value of the replica.
    ReplicaUuid string
    The Universally Unique Identifier (UUID) value of the replica server.
    ReplicaHost string
    The host name of the replica server, as specified on the replica with the --report-host option. This can differ from the machine name as configured in the operating system.
    ReplicaPort int
    The port on the replica server, as specified on the replica with the --report-port option. A zero in this column means that the replica port (--report-port) was not set.
    ReplicaServerId string
    The server ID value of the replica.
    ReplicaUuid string
    The Universally Unique Identifier (UUID) value of the replica server.
    replicaHost String
    The host name of the replica server, as specified on the replica with the --report-host option. This can differ from the machine name as configured in the operating system.
    replicaPort Integer
    The port on the replica server, as specified on the replica with the --report-port option. A zero in this column means that the replica port (--report-port) was not set.
    replicaServerId String
    The server ID value of the replica.
    replicaUuid String
    The Universally Unique Identifier (UUID) value of the replica server.
    replicaHost string
    The host name of the replica server, as specified on the replica with the --report-host option. This can differ from the machine name as configured in the operating system.
    replicaPort number
    The port on the replica server, as specified on the replica with the --report-port option. A zero in this column means that the replica port (--report-port) was not set.
    replicaServerId string
    The server ID value of the replica.
    replicaUuid string
    The Universally Unique Identifier (UUID) value of the replica server.
    replica_host str
    The host name of the replica server, as specified on the replica with the --report-host option. This can differ from the machine name as configured in the operating system.
    replica_port int
    The port on the replica server, as specified on the replica with the --report-port option. A zero in this column means that the replica port (--report-port) was not set.
    replica_server_id str
    The server ID value of the replica.
    replica_uuid str
    The Universally Unique Identifier (UUID) value of the replica server.
    replicaHost String
    The host name of the replica server, as specified on the replica with the --report-host option. This can differ from the machine name as configured in the operating system.
    replicaPort Number
    The port on the replica server, as specified on the replica with the --report-port option. A zero in this column means that the replica port (--report-port) was not set.
    replicaServerId String
    The server ID value of the replica.
    replicaUuid String
    The Universally Unique Identifier (UUID) value of the replica server.

    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