1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMysqlBackupList
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getMysqlBackupList

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          function: tencentcloud:getMysqlBackupList
          arguments:
            maxNumber: 10
            mysqlId: terraform-test-local-database
            resultOutputFile: mytestpath
    

    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>
    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]
    func GetMysqlBackupList(ctx *Context, args *GetMysqlBackupListArgs, opts ...InvokeOption) (*GetMysqlBackupListResult, error)
    func GetMysqlBackupListOutput(ctx *Context, args *GetMysqlBackupListOutputArgs, opts ...InvokeOption) GetMysqlBackupListResultOutput

    > 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)
    }
    public static CompletableFuture<GetMysqlBackupListResult> getMysqlBackupList(GetMysqlBackupListArgs args, InvokeOptions options)
    public static Output<GetMysqlBackupListResult> getMysqlBackupList(GetMysqlBackupListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMysqlBackupList:getMysqlBackupList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MysqlId 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 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 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 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 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 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 double
    ID of Backup task.
    BackupModel string
    Backup method. Supported values include: physical - physical backup, and logical - logical backup.
    Creator string
    The owner of the backup files.
    FinishTime string
    The time at which the backup finishes.
    InternetUrl string
    URL for downloads externally.
    IntranetUrl string
    URL for downloads internally.
    Size double
    the size of backup file.
    Time string
    The earliest time at which the backup starts. For example, 2 indicates 2:00 am.
    BackupId float64
    ID of Backup task.
    BackupModel string
    Backup method. Supported values include: physical - physical backup, and logical - logical backup.
    Creator string
    The owner of the backup files.
    FinishTime string
    The time at which the backup finishes.
    InternetUrl string
    URL for downloads externally.
    IntranetUrl string
    URL for downloads internally.
    Size float64
    the size of backup file.
    Time string
    The earliest time at which the backup starts. For example, 2 indicates 2:00 am.
    backupId Double
    ID of Backup task.
    backupModel String
    Backup method. Supported values include: physical - physical backup, and logical - logical backup.
    creator String
    The owner of the backup files.
    finishTime String
    The time at which the backup finishes.
    internetUrl String
    URL for downloads externally.
    intranetUrl String
    URL for downloads internally.
    size Double
    the size of backup file.
    time String
    The earliest time at which the backup starts. For example, 2 indicates 2:00 am.
    backupId number
    ID of Backup task.
    backupModel string
    Backup method. Supported values include: physical - physical backup, and logical - logical backup.
    creator string
    The owner of the backup files.
    finishTime string
    The time at which the backup finishes.
    internetUrl string
    URL for downloads externally.
    intranetUrl string
    URL for downloads internally.
    size number
    the size of backup file.
    time string
    The earliest time at which the backup starts. For example, 2 indicates 2:00 am.
    backup_id float
    ID of Backup task.
    backup_model str
    Backup method. Supported values include: physical - physical backup, and logical - logical backup.
    creator str
    The owner of the backup files.
    finish_time str
    The time at which the backup finishes.
    internet_url str
    URL for downloads externally.
    intranet_url str
    URL for downloads internally.
    size float
    the size of backup file.
    time str
    The earliest time at which the backup starts. For example, 2 indicates 2:00 am.
    backupId Number
    ID of Backup task.
    backupModel String
    Backup method. Supported values include: physical - physical backup, and logical - logical backup.
    creator String
    The owner of the backup files.
    finishTime String
    The time at which the backup finishes.
    internetUrl String
    URL for downloads externally.
    intranetUrl String
    URL for downloads internally.
    size Number
    the size of backup file.
    time 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack