1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMysqlBackupList
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.getMysqlBackupList

Explore with Pulumi AI

Use this data source to query the list of backup databases.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const _default = tencentcloud.getMysqlBackupList({
    maxNumber: 10,
    mysqlId: "terraform-test-local-database",
    resultOutputFile: "mytestpath",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

default = tencentcloud.get_mysql_backup_list(max_number=10,
    mysql_id="terraform-test-local-database",
    result_output_file="mytestpath")
Copy
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.GetMysqlBackupList(ctx, &tencentcloud.GetMysqlBackupListArgs{
			MaxNumber:        pulumi.Float64Ref(10),
			MysqlId:          "terraform-test-local-database",
			ResultOutputFile: pulumi.StringRef("mytestpath"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var @default = Tencentcloud.GetMysqlBackupList.Invoke(new()
    {
        MaxNumber = 10,
        MysqlId = "terraform-test-local-database",
        ResultOutputFile = "mytestpath",
    });

});
Copy
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.GetMysqlBackupListArgs;
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 default = TencentcloudFunctions.getMysqlBackupList(GetMysqlBackupListArgs.builder()
            .maxNumber(10)
            .mysqlId("terraform-test-local-database")
            .resultOutputFile("mytestpath")
            .build());

    }
}
Copy
variables:
  default:
    fn::invoke:
      function: tencentcloud:getMysqlBackupList
      arguments:
        maxNumber: 10
        mysqlId: terraform-test-local-database
        resultOutputFile: mytestpath
Copy

Using getMysqlBackupList

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 getMysqlBackupList(args: GetMysqlBackupListArgs, opts?: InvokeOptions): Promise<GetMysqlBackupListResult>
function getMysqlBackupListOutput(args: GetMysqlBackupListOutputArgs, opts?: InvokeOptions): Output<GetMysqlBackupListResult>
Copy
def get_mysql_backup_list(id: Optional[str] = None,
                          max_number: Optional[float] = None,
                          mysql_id: Optional[str] = None,
                          result_output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetMysqlBackupListResult
def get_mysql_backup_list_output(id: Optional[pulumi.Input[str]] = None,
                          max_number: Optional[pulumi.Input[float]] = None,
                          mysql_id: Optional[pulumi.Input[str]] = None,
                          result_output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetMysqlBackupListResult]
Copy
func GetMysqlBackupList(ctx *Context, args *GetMysqlBackupListArgs, opts ...InvokeOption) (*GetMysqlBackupListResult, error)
func GetMysqlBackupListOutput(ctx *Context, args *GetMysqlBackupListOutputArgs, opts ...InvokeOption) GetMysqlBackupListResultOutput
Copy

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

public static class GetMysqlBackupList 
{
    public static Task<GetMysqlBackupListResult> InvokeAsync(GetMysqlBackupListArgs args, InvokeOptions? opts = null)
    public static Output<GetMysqlBackupListResult> Invoke(GetMysqlBackupListInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMysqlBackupListResult> getMysqlBackupList(GetMysqlBackupListArgs args, InvokeOptions options)
public static Output<GetMysqlBackupListResult> getMysqlBackupList(GetMysqlBackupListArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getMysqlBackupList:getMysqlBackupList
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

MysqlId This property is required. string
Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
Id string
MaxNumber double
The latest files to list, rang from 1 to 10000. And the default value is 10.
ResultOutputFile string
Used to store results.
MysqlId This property is required. string
Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
Id string
MaxNumber float64
The latest files to list, rang from 1 to 10000. And the default value is 10.
ResultOutputFile string
Used to store results.
mysqlId This property is required. String
Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
id String
maxNumber Double
The latest files to list, rang from 1 to 10000. And the default value is 10.
resultOutputFile String
Used to store results.
mysqlId This property is required. string
Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
id string
maxNumber number
The latest files to list, rang from 1 to 10000. And the default value is 10.
resultOutputFile string
Used to store results.
mysql_id This property is required. str
Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
id str
max_number float
The latest files to list, rang from 1 to 10000. And the default value is 10.
result_output_file str
Used to store results.
mysqlId This property is required. String
Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
id String
maxNumber Number
The latest files to list, rang from 1 to 10000. And the default value is 10.
resultOutputFile String
Used to store results.

getMysqlBackupList Result

The following output properties are available:

Id string
Lists List<GetMysqlBackupListList>
A list of MySQL backup. Each element contains the following attributes:
MysqlId string
MaxNumber double
ResultOutputFile string
Id string
Lists []GetMysqlBackupListList
A list of MySQL backup. Each element contains the following attributes:
MysqlId string
MaxNumber float64
ResultOutputFile string
id String
lists List<GetMysqlBackupListList>
A list of MySQL backup. Each element contains the following attributes:
mysqlId String
maxNumber Double
resultOutputFile String
id string
lists GetMysqlBackupListList[]
A list of MySQL backup. Each element contains the following attributes:
mysqlId string
maxNumber number
resultOutputFile string
id str
lists Sequence[GetMysqlBackupListList]
A list of MySQL backup. Each element contains the following attributes:
mysql_id str
max_number float
result_output_file str
id String
lists List<Property Map>
A list of MySQL backup. Each element contains the following attributes:
mysqlId String
maxNumber Number
resultOutputFile String

Supporting Types

GetMysqlBackupListList

BackupId This property is required. double
ID of Backup task.
BackupModel This property is required. string
Backup method. Supported values include: physical - physical backup, and logical - logical backup.
Creator This property is required. string
The owner of the backup files.
FinishTime This property is required. string
The time at which the backup finishes.
InternetUrl This property is required. string
URL for downloads externally.
IntranetUrl This property is required. string
URL for downloads internally.
Size This property is required. double
the size of backup file.
Time This property is required. string
The earliest time at which the backup starts. For example, 2 indicates 2:00 am.
BackupId This property is required. float64
ID of Backup task.
BackupModel This property is required. string
Backup method. Supported values include: physical - physical backup, and logical - logical backup.
Creator This property is required. string
The owner of the backup files.
FinishTime This property is required. string
The time at which the backup finishes.
InternetUrl This property is required. string
URL for downloads externally.
IntranetUrl This property is required. string
URL for downloads internally.
Size This property is required. float64
the size of backup file.
Time This property is required. string
The earliest time at which the backup starts. For example, 2 indicates 2:00 am.
backupId This property is required. Double
ID of Backup task.
backupModel This property is required. String
Backup method. Supported values include: physical - physical backup, and logical - logical backup.
creator This property is required. String
The owner of the backup files.
finishTime This property is required. String
The time at which the backup finishes.
internetUrl This property is required. String
URL for downloads externally.
intranetUrl This property is required. String
URL for downloads internally.
size This property is required. Double
the size of backup file.
time This property is required. String
The earliest time at which the backup starts. For example, 2 indicates 2:00 am.
backupId This property is required. number
ID of Backup task.
backupModel This property is required. string
Backup method. Supported values include: physical - physical backup, and logical - logical backup.
creator This property is required. string
The owner of the backup files.
finishTime This property is required. string
The time at which the backup finishes.
internetUrl This property is required. string
URL for downloads externally.
intranetUrl This property is required. string
URL for downloads internally.
size This property is required. number
the size of backup file.
time This property is required. string
The earliest time at which the backup starts. For example, 2 indicates 2:00 am.
backup_id This property is required. float
ID of Backup task.
backup_model This property is required. str
Backup method. Supported values include: physical - physical backup, and logical - logical backup.
creator This property is required. str
The owner of the backup files.
finish_time This property is required. str
The time at which the backup finishes.
internet_url This property is required. str
URL for downloads externally.
intranet_url This property is required. str
URL for downloads internally.
size This property is required. float
the size of backup file.
time This property is required. str
The earliest time at which the backup starts. For example, 2 indicates 2:00 am.
backupId This property is required. Number
ID of Backup task.
backupModel This property is required. String
Backup method. Supported values include: physical - physical backup, and logical - logical backup.
creator This property is required. String
The owner of the backup files.
finishTime This property is required. String
The time at which the backup finishes.
internetUrl This property is required. String
URL for downloads externally.
intranetUrl This property is required. String
URL for downloads internally.
size This property is required. Number
the size of backup file.
time This property is required. String
The earliest time at which the backup starts. For example, 2 indicates 2:00 am.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.