1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getManagedMySqlDatabaseBinaryLogInformation
Oracle Cloud Infrastructure v3.5.0 published on Friday, Aug 29, 2025 by Pulumi

oci.DatabaseManagement.getManagedMySqlDatabaseBinaryLogInformation

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.5.0 published on Friday, Aug 29, 2025 by Pulumi

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

    Retrieves information pertaining to the binary log of a specific MySQL server.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedMySqlDatabaseBinaryLogInformation = oci.DatabaseManagement.getManagedMySqlDatabaseBinaryLogInformation({
        managedMySqlDatabaseId: testManagedMySqlDatabase.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_my_sql_database_binary_log_information = oci.DatabaseManagement.get_managed_my_sql_database_binary_log_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.GetManagedMySqlDatabaseBinaryLogInformation(ctx, &databasemanagement.GetManagedMySqlDatabaseBinaryLogInformationArgs{
    			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 testManagedMySqlDatabaseBinaryLogInformation = Oci.DatabaseManagement.GetManagedMySqlDatabaseBinaryLogInformation.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.GetManagedMySqlDatabaseBinaryLogInformationArgs;
    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 testManagedMySqlDatabaseBinaryLogInformation = DatabaseManagementFunctions.getManagedMySqlDatabaseBinaryLogInformation(GetManagedMySqlDatabaseBinaryLogInformationArgs.builder()
                .managedMySqlDatabaseId(testManagedMySqlDatabase.id())
                .build());
    
        }
    }
    
    variables:
      testManagedMySqlDatabaseBinaryLogInformation:
        fn::invoke:
          function: oci:DatabaseManagement:getManagedMySqlDatabaseBinaryLogInformation
          arguments:
            managedMySqlDatabaseId: ${testManagedMySqlDatabase.id}
    

    Using getManagedMySqlDatabaseBinaryLogInformation

    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 getManagedMySqlDatabaseBinaryLogInformation(args: GetManagedMySqlDatabaseBinaryLogInformationArgs, opts?: InvokeOptions): Promise<GetManagedMySqlDatabaseBinaryLogInformationResult>
    function getManagedMySqlDatabaseBinaryLogInformationOutput(args: GetManagedMySqlDatabaseBinaryLogInformationOutputArgs, opts?: InvokeOptions): Output<GetManagedMySqlDatabaseBinaryLogInformationResult>
    def get_managed_my_sql_database_binary_log_information(managed_my_sql_database_id: Optional[str] = None,
                                                           opts: Optional[InvokeOptions] = None) -> GetManagedMySqlDatabaseBinaryLogInformationResult
    def get_managed_my_sql_database_binary_log_information_output(managed_my_sql_database_id: Optional[pulumi.Input[str]] = None,
                                                           opts: Optional[InvokeOptions] = None) -> Output[GetManagedMySqlDatabaseBinaryLogInformationResult]
    func GetManagedMySqlDatabaseBinaryLogInformation(ctx *Context, args *GetManagedMySqlDatabaseBinaryLogInformationArgs, opts ...InvokeOption) (*GetManagedMySqlDatabaseBinaryLogInformationResult, error)
    func GetManagedMySqlDatabaseBinaryLogInformationOutput(ctx *Context, args *GetManagedMySqlDatabaseBinaryLogInformationOutputArgs, opts ...InvokeOption) GetManagedMySqlDatabaseBinaryLogInformationResultOutput

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

    public static class GetManagedMySqlDatabaseBinaryLogInformation 
    {
        public static Task<GetManagedMySqlDatabaseBinaryLogInformationResult> InvokeAsync(GetManagedMySqlDatabaseBinaryLogInformationArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedMySqlDatabaseBinaryLogInformationResult> Invoke(GetManagedMySqlDatabaseBinaryLogInformationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedMySqlDatabaseBinaryLogInformationResult> getManagedMySqlDatabaseBinaryLogInformation(GetManagedMySqlDatabaseBinaryLogInformationArgs args, InvokeOptions options)
    public static Output<GetManagedMySqlDatabaseBinaryLogInformationResult> getManagedMySqlDatabaseBinaryLogInformation(GetManagedMySqlDatabaseBinaryLogInformationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseManagement/getManagedMySqlDatabaseBinaryLogInformation:getManagedMySqlDatabaseBinaryLogInformation
      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.

    getManagedMySqlDatabaseBinaryLogInformation Result

    The following output properties are available:

    BinaryLogCompression string
    Indicates whether compression is enabled for transactions written to binary log files on the MySQL server.
    BinaryLogCompressionPercent int
    The compression ratio for the binary log, expressed as a percentage.
    BinaryLogFormat string
    The binary logging format used by the MySQL server.
    BinaryLogName string
    The name of the binary log file.
    BinaryLogPosition string
    The position within the binary log file.
    BinaryLogging string
    The status of binary logging on the MySQL server.
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedMySqlDatabaseId string
    BinaryLogCompression string
    Indicates whether compression is enabled for transactions written to binary log files on the MySQL server.
    BinaryLogCompressionPercent int
    The compression ratio for the binary log, expressed as a percentage.
    BinaryLogFormat string
    The binary logging format used by the MySQL server.
    BinaryLogName string
    The name of the binary log file.
    BinaryLogPosition string
    The position within the binary log file.
    BinaryLogging string
    The status of binary logging on the MySQL server.
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedMySqlDatabaseId string
    binaryLogCompression String
    Indicates whether compression is enabled for transactions written to binary log files on the MySQL server.
    binaryLogCompressionPercent Integer
    The compression ratio for the binary log, expressed as a percentage.
    binaryLogFormat String
    The binary logging format used by the MySQL server.
    binaryLogName String
    The name of the binary log file.
    binaryLogPosition String
    The position within the binary log file.
    binaryLogging String
    The status of binary logging on the MySQL server.
    id String
    The provider-assigned unique ID for this managed resource.
    managedMySqlDatabaseId String
    binaryLogCompression string
    Indicates whether compression is enabled for transactions written to binary log files on the MySQL server.
    binaryLogCompressionPercent number
    The compression ratio for the binary log, expressed as a percentage.
    binaryLogFormat string
    The binary logging format used by the MySQL server.
    binaryLogName string
    The name of the binary log file.
    binaryLogPosition string
    The position within the binary log file.
    binaryLogging string
    The status of binary logging on the MySQL server.
    id string
    The provider-assigned unique ID for this managed resource.
    managedMySqlDatabaseId string
    binary_log_compression str
    Indicates whether compression is enabled for transactions written to binary log files on the MySQL server.
    binary_log_compression_percent int
    The compression ratio for the binary log, expressed as a percentage.
    binary_log_format str
    The binary logging format used by the MySQL server.
    binary_log_name str
    The name of the binary log file.
    binary_log_position str
    The position within the binary log file.
    binary_logging str
    The status of binary logging on the MySQL server.
    id str
    The provider-assigned unique ID for this managed resource.
    managed_my_sql_database_id str
    binaryLogCompression String
    Indicates whether compression is enabled for transactions written to binary log files on the MySQL server.
    binaryLogCompressionPercent Number
    The compression ratio for the binary log, expressed as a percentage.
    binaryLogFormat String
    The binary logging format used by the MySQL server.
    binaryLogName String
    The name of the binary log file.
    binaryLogPosition String
    The position within the binary log file.
    binaryLogging String
    The status of binary logging on the MySQL server.
    id String
    The provider-assigned unique ID for this managed resource.
    managedMySqlDatabaseId String

    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.5.0 published on Friday, Aug 29, 2025 by Pulumi