tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack
tencentcloud.getMysqlBinLog
Explore with Pulumi AI
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:
- Instance
Id string - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- Id string
- Result
Output stringFile - Used to save results.
- Instance
Id string - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- Id string
- Result
Output stringFile - Used to save results.
- instance
Id String - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- id String
- result
Output StringFile - Used to save results.
- instance
Id string - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- id string
- result
Output stringFile - 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_ strfile - Used to save results.
- instance
Id String - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- id String
- result
Output StringFile - Used to save results.
getMysqlBinLog Result
The following output properties are available:
- Id string
- Instance
Id string - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- Items
List<Get
Mysql Bin Log Item> - Details of binary log files that meet the query conditions.
- Result
Output stringFile
- Id string
- Instance
Id string - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- Items
[]Get
Mysql Bin Log Item - Details of binary log files that meet the query conditions.
- Result
Output stringFile
- id String
- instance
Id String - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- items
List<Get
Mysql Bin Log Item> - Details of binary log files that meet the query conditions.
- result
Output StringFile
- id string
- instance
Id string - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- items
Get
Mysql Bin Log Item[] - Details of binary log files that meet the query conditions.
- result
Output stringFile
- 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[Get
Mysql Bin Log Item] - Details of binary log files that meet the query conditions.
- result_
output_ strfile
- id String
- instance
Id 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.
- result
Output StringFile
Supporting Types
GetMysqlBinLogItem
- Binlog
Finish stringTime - binlog file deadline.
- Binlog
Start stringTime - Binlog file start time.
- Cos
Storage doubleType - 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.
- Instance
Id string - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- Internet
Url string - download link.
- Intranet
Url string - download link.
- Name string
- binlog log backup file name.
- Region string
- The region where remote backup is located.
- Remote
Infos List<GetMysql Bin Log Item Remote Info> - 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.
- Binlog
Finish stringTime - binlog file deadline.
- Binlog
Start stringTime - Binlog file start time.
- Cos
Storage float64Type - 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.
- Instance
Id string - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- Internet
Url string - download link.
- Intranet
Url string - download link.
- Name string
- binlog log backup file name.
- Region string
- The region where remote backup is located.
- Remote
Infos []GetMysql Bin Log Item Remote Info - 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.
- binlog
Finish StringTime - binlog file deadline.
- binlog
Start StringTime - Binlog file start time.
- cos
Storage DoubleType - 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.
- instance
Id String - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- internet
Url String - download link.
- intranet
Url String - download link.
- name String
- binlog log backup file name.
- region String
- The region where remote backup is located.
- remote
Infos List<GetMysql Bin Log Item Remote Info> - 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.
- binlog
Finish stringTime - binlog file deadline.
- binlog
Start stringTime - Binlog file start time.
- cos
Storage numberType - 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.
- instance
Id string - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- internet
Url string - download link.
- intranet
Url string - download link.
- name string
- binlog log backup file name.
- region string
- The region where remote backup is located.
- remote
Infos GetMysql Bin Log Item Remote Info[] - 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_ strtime - binlog file deadline.
- binlog_
start_ strtime - Binlog file start time.
- cos_
storage_ floattype - 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[GetMysql Bin Log Item Remote Info] - 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.
- binlog
Finish StringTime - binlog file deadline.
- binlog
Start StringTime - Binlog file start time.
- cos
Storage NumberType - 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.
- instance
Id String - Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
- internet
Url String - download link.
- intranet
Url String - download link.
- name String
- binlog log backup file name.
- region String
- The region where remote backup is located.
- remote
Infos 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
- Finish
Time string - End time of remote backup task.
- Region string
- The region where remote backup is located.
- Start
Time 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. - Sub
Backup List<double>Ids - The ID of the remote backup subtask.
- Url string
- download link.
- Finish
Time string - End time of remote backup task.
- Region string
- The region where remote backup is located.
- Start
Time 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. - Sub
Backup []float64Ids - The ID of the remote backup subtask.
- Url string
- download link.
- finish
Time String - End time of remote backup task.
- region String
- The region where remote backup is located.
- start
Time 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. - sub
Backup List<Double>Ids - The ID of the remote backup subtask.
- url String
- download link.
- finish
Time string - End time of remote backup task.
- region string
- The region where remote backup is located.
- start
Time 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. - sub
Backup number[]Ids - 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_ Sequence[float]ids - The ID of the remote backup subtask.
- url str
- download link.
- finish
Time String - End time of remote backup task.
- region String
- The region where remote backup is located.
- start
Time 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. - sub
Backup List<Number>Ids - 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 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack