tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getMysqlBackupList
Start a Neo task
Explain and create a tencentcloud.getMysqlBackupList resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 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({
mysqlId: "terraform-test-local-database",
maxNumber: 10,
resultOutputFile: "mytestpath",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
default = tencentcloud.get_mysql_backup_list(mysql_id="terraform-test-local-database",
max_number=10,
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{
MysqlId: "terraform-test-local-database",
MaxNumber: pulumi.Float64Ref(10),
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()
{
MysqlId = "terraform-test-local-database",
MaxNumber = 10,
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()
.mysqlId("terraform-test-local-database")
.maxNumber(10)
.resultOutputFile("mytestpath")
.build());
}
}
variables:
default:
fn::invoke:
function: tencentcloud:getMysqlBackupList
arguments:
mysqlId: terraform-test-local-database
maxNumber: 10
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 dictionaryThe following arguments are supported:
- Mysql
Id string - Instance ID, such as
cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page. - Id string
- Max
Number double - The latest files to list, rang from 1 to 10000. And the default value is
10. - Result
Output stringFile - Used to store results.
- Mysql
Id string - Instance ID, such as
cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page. - Id string
- Max
Number float64 - The latest files to list, rang from 1 to 10000. And the default value is
10. - Result
Output stringFile - Used to store results.
- mysql
Id String - Instance ID, such as
cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page. - id String
- max
Number Double - The latest files to list, rang from 1 to 10000. And the default value is
10. - result
Output StringFile - Used to store results.
- mysql
Id string - Instance ID, such as
cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page. - id string
- max
Number number - The latest files to list, rang from 1 to 10000. And the default value is
10. - result
Output stringFile - 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_ strfile - Used to store results.
- mysql
Id String - Instance ID, such as
cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page. - id String
- max
Number Number - The latest files to list, rang from 1 to 10000. And the default value is
10. - result
Output StringFile - Used to store results.
getMysqlBackupList Result
The following output properties are available:
- Id string
- Lists
List<Get
Mysql Backup List List> - A list of MySQL backup. Each element contains the following attributes:
- Mysql
Id string - Max
Number double - Result
Output stringFile
- Id string
- Lists
[]Get
Mysql Backup List List - A list of MySQL backup. Each element contains the following attributes:
- Mysql
Id string - Max
Number float64 - Result
Output stringFile
- id String
- lists
List<Get
Mysql Backup List List> - A list of MySQL backup. Each element contains the following attributes:
- mysql
Id String - max
Number Double - result
Output StringFile
- id string
- lists
Get
Mysql Backup List List[] - A list of MySQL backup. Each element contains the following attributes:
- mysql
Id string - max
Number number - result
Output stringFile
- id str
- lists
Sequence[Get
Mysql Backup List List] - A list of MySQL backup. Each element contains the following attributes:
- mysql_
id str - max_
number float - result_
output_ strfile
- id String
- lists List<Property Map>
- A list of MySQL backup. Each element contains the following attributes:
- mysql
Id String - max
Number Number - result
Output StringFile
Supporting Types
GetMysqlBackupListList
- Backup
Id double - ID of Backup task.
- Backup
Model string - Backup method. Supported values include:
physical- physical backup, andlogical- logical backup. - Creator string
- The owner of the backup files.
- Finish
Time string - The time at which the backup finishes.
- Internet
Url string - URL for downloads externally.
- Intranet
Url string - URL for downloads internally.
- Size double
- the size of backup file.
- Time string
- The earliest time at which the backup starts. For example,
2indicates 2:00 am.
- Backup
Id float64 - ID of Backup task.
- Backup
Model string - Backup method. Supported values include:
physical- physical backup, andlogical- logical backup. - Creator string
- The owner of the backup files.
- Finish
Time string - The time at which the backup finishes.
- Internet
Url string - URL for downloads externally.
- Intranet
Url string - URL for downloads internally.
- Size float64
- the size of backup file.
- Time string
- The earliest time at which the backup starts. For example,
2indicates 2:00 am.
- backup
Id Double - ID of Backup task.
- backup
Model String - Backup method. Supported values include:
physical- physical backup, andlogical- logical backup. - creator String
- The owner of the backup files.
- finish
Time String - The time at which the backup finishes.
- internet
Url String - URL for downloads externally.
- intranet
Url String - URL for downloads internally.
- size Double
- the size of backup file.
- time String
- The earliest time at which the backup starts. For example,
2indicates 2:00 am.
- backup
Id number - ID of Backup task.
- backup
Model string - Backup method. Supported values include:
physical- physical backup, andlogical- logical backup. - creator string
- The owner of the backup files.
- finish
Time string - The time at which the backup finishes.
- internet
Url string - URL for downloads externally.
- intranet
Url string - URL for downloads internally.
- size number
- the size of backup file.
- time string
- The earliest time at which the backup starts. For example,
2indicates 2:00 am.
- backup_
id float - ID of Backup task.
- backup_
model str - Backup method. Supported values include:
physical- physical backup, andlogical- 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,
2indicates 2:00 am.
- backup
Id Number - ID of Backup task.
- backup
Model String - Backup method. Supported values include:
physical- physical backup, andlogical- logical backup. - creator String
- The owner of the backup files.
- finish
Time String - The time at which the backup finishes.
- internet
Url String - URL for downloads externally.
- intranet
Url String - URL for downloads internally.
- size Number
- the size of backup file.
- time String
- The earliest time at which the backup starts. For example,
2indicates 2:00 am.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
