1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMysqlBinLog
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

tencentcloud.getMysqlBinLog

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

    Use this data source to query detailed information of mysql bin_log

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const binLog = tencentcloud.getMysqlBinLog({
        instanceId: "cdb-fitq5t9h",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    bin_log = tencentcloud.get_mysql_bin_log(instance_id="cdb-fitq5t9h")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetMysqlBinLog(ctx, &tencentcloud.GetMysqlBinLogArgs{
    			InstanceId: "cdb-fitq5t9h",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var binLog = Tencentcloud.GetMysqlBinLog.Invoke(new()
        {
            InstanceId = "cdb-fitq5t9h",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetMysqlBinLogArgs;
    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 binLog = TencentcloudFunctions.getMysqlBinLog(GetMysqlBinLogArgs.builder()
                .instanceId("cdb-fitq5t9h")
                .build());
    
        }
    }
    
    variables:
      binLog:
        fn::invoke:
          function: tencentcloud:getMysqlBinLog
          arguments:
            instanceId: cdb-fitq5t9h
    

    Using getMysqlBinLog

    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 getMysqlBinLog(args: GetMysqlBinLogArgs, opts?: InvokeOptions): Promise<GetMysqlBinLogResult>
    function getMysqlBinLogOutput(args: GetMysqlBinLogOutputArgs, opts?: InvokeOptions): Output<GetMysqlBinLogResult>
    def get_mysql_bin_log(id: Optional[str] = None,
                          instance_id: Optional[str] = None,
                          result_output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetMysqlBinLogResult
    def get_mysql_bin_log_output(id: Optional[pulumi.Input[str]] = None,
                          instance_id: Optional[pulumi.Input[str]] = None,
                          result_output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetMysqlBinLogResult]
    func GetMysqlBinLog(ctx *Context, args *GetMysqlBinLogArgs, opts ...InvokeOption) (*GetMysqlBinLogResult, error)
    func GetMysqlBinLogOutput(ctx *Context, args *GetMysqlBinLogOutputArgs, opts ...InvokeOption) GetMysqlBinLogResultOutput

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

    public static class GetMysqlBinLog 
    {
        public static Task<GetMysqlBinLogResult> InvokeAsync(GetMysqlBinLogArgs args, InvokeOptions? opts = null)
        public static Output<GetMysqlBinLogResult> Invoke(GetMysqlBinLogInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMysqlBinLogResult> getMysqlBinLog(GetMysqlBinLogArgs args, InvokeOptions options)
    public static Output<GetMysqlBinLogResult> getMysqlBinLog(GetMysqlBinLogArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMysqlBinLog:getMysqlBinLog
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    id String
    resultOutputFile String
    Used to save results.

    getMysqlBinLog Result

    The following output properties are available:

    Id string
    InstanceId string
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    Items List<GetMysqlBinLogItem>
    Details of binary log files that meet the query conditions.
    ResultOutputFile string
    Id string
    InstanceId string
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    Items []GetMysqlBinLogItem
    Details of binary log files that meet the query conditions.
    ResultOutputFile string
    id String
    instanceId String
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    items List<GetMysqlBinLogItem>
    Details of binary log files that meet the query conditions.
    resultOutputFile String
    id string
    instanceId string
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    items GetMysqlBinLogItem[]
    Details of binary log files that meet the query conditions.
    resultOutputFile string
    id str
    instance_id str
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    items Sequence[GetMysqlBinLogItem]
    Details of binary log files that meet the query conditions.
    result_output_file str
    id String
    instanceId String
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    items List<Property Map>
    Details of binary log files that meet the query conditions.
    resultOutputFile String

    Supporting Types

    GetMysqlBinLogItem

    BinlogFinishTime string
    binlog file deadline.
    BinlogStartTime string
    Binlog file start time.
    CosStorageType double
    Storage method, 0-regular storage, 1-archive storage, the default is 0.
    Date string
    File storage time, time format: 2016-03-17 02:10:37.
    InstanceId string
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    InternetUrl string
    download link.
    IntranetUrl string
    download link.
    Name string
    binlog log backup file name.
    Region string
    The region where remote backup is located.
    RemoteInfos List<GetMysqlBinLogItemRemoteInfo>
    Binlog remote backup details.
    Size double
    Backup file size, unit: Byte.
    Status string
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    Type string
    Specific log type, possible values are: binlog - binary log.
    BinlogFinishTime string
    binlog file deadline.
    BinlogStartTime string
    Binlog file start time.
    CosStorageType float64
    Storage method, 0-regular storage, 1-archive storage, the default is 0.
    Date string
    File storage time, time format: 2016-03-17 02:10:37.
    InstanceId string
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    InternetUrl string
    download link.
    IntranetUrl string
    download link.
    Name string
    binlog log backup file name.
    Region string
    The region where remote backup is located.
    RemoteInfos []GetMysqlBinLogItemRemoteInfo
    Binlog remote backup details.
    Size float64
    Backup file size, unit: Byte.
    Status string
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    Type string
    Specific log type, possible values are: binlog - binary log.
    binlogFinishTime String
    binlog file deadline.
    binlogStartTime String
    Binlog file start time.
    cosStorageType Double
    Storage method, 0-regular storage, 1-archive storage, the default is 0.
    date String
    File storage time, time format: 2016-03-17 02:10:37.
    instanceId String
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    internetUrl String
    download link.
    intranetUrl String
    download link.
    name String
    binlog log backup file name.
    region String
    The region where remote backup is located.
    remoteInfos List<GetMysqlBinLogItemRemoteInfo>
    Binlog remote backup details.
    size Double
    Backup file size, unit: Byte.
    status String
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    type String
    Specific log type, possible values are: binlog - binary log.
    binlogFinishTime string
    binlog file deadline.
    binlogStartTime string
    Binlog file start time.
    cosStorageType number
    Storage method, 0-regular storage, 1-archive storage, the default is 0.
    date string
    File storage time, time format: 2016-03-17 02:10:37.
    instanceId string
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    internetUrl string
    download link.
    intranetUrl string
    download link.
    name string
    binlog log backup file name.
    region string
    The region where remote backup is located.
    remoteInfos GetMysqlBinLogItemRemoteInfo[]
    Binlog remote backup details.
    size number
    Backup file size, unit: Byte.
    status string
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    type string
    Specific log type, possible values are: binlog - binary log.
    binlog_finish_time str
    binlog file deadline.
    binlog_start_time str
    Binlog file start time.
    cos_storage_type float
    Storage method, 0-regular storage, 1-archive storage, the default is 0.
    date str
    File storage time, time format: 2016-03-17 02:10:37.
    instance_id str
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    internet_url str
    download link.
    intranet_url str
    download link.
    name str
    binlog log backup file name.
    region str
    The region where remote backup is located.
    remote_infos Sequence[GetMysqlBinLogItemRemoteInfo]
    Binlog remote backup details.
    size float
    Backup file size, unit: Byte.
    status str
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    type str
    Specific log type, possible values are: binlog - binary log.
    binlogFinishTime String
    binlog file deadline.
    binlogStartTime String
    Binlog file start time.
    cosStorageType Number
    Storage method, 0-regular storage, 1-archive storage, the default is 0.
    date String
    File storage time, time format: 2016-03-17 02:10:37.
    instanceId String
    Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
    internetUrl String
    download link.
    intranetUrl String
    download link.
    name String
    binlog log backup file name.
    region String
    The region where remote backup is located.
    remoteInfos List<Property Map>
    Binlog remote backup details.
    size Number
    Backup file size, unit: Byte.
    status String
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    type String
    Specific log type, possible values are: binlog - binary log.

    GetMysqlBinLogItemRemoteInfo

    FinishTime string
    End time of remote backup task.
    Region string
    The region where remote backup is located.
    StartTime string
    Start time of remote backup task.
    Status string
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    SubBackupIds List<double>
    The ID of the remote backup subtask.
    Url string
    download link.
    FinishTime string
    End time of remote backup task.
    Region string
    The region where remote backup is located.
    StartTime string
    Start time of remote backup task.
    Status string
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    SubBackupIds []float64
    The ID of the remote backup subtask.
    Url string
    download link.
    finishTime String
    End time of remote backup task.
    region String
    The region where remote backup is located.
    startTime String
    Start time of remote backup task.
    status String
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    subBackupIds List<Double>
    The ID of the remote backup subtask.
    url String
    download link.
    finishTime string
    End time of remote backup task.
    region string
    The region where remote backup is located.
    startTime string
    Start time of remote backup task.
    status string
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    subBackupIds number[]
    The ID of the remote backup subtask.
    url string
    download link.
    finish_time str
    End time of remote backup task.
    region str
    The region where remote backup is located.
    start_time str
    Start time of remote backup task.
    status str
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    sub_backup_ids Sequence[float]
    The ID of the remote backup subtask.
    url str
    download link.
    finishTime String
    End time of remote backup task.
    region String
    The region where remote backup is located.
    startTime String
    Start time of remote backup task.
    status String
    Backup task status. Possible values are SUCCESS: backup succeeded, FAILED: backup failed, RUNNING: backup in progress.
    subBackupIds List<Number>
    The ID of the remote backup subtask.
    url String
    download link.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack