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

tencentcloud.getMysqlBackupSummaries

Explore with Pulumi AI

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

    Use this data source to query detailed information of mysql backup_summaries

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const backupSummaries = tencentcloud.getMysqlBackupSummaries({
        orderBy: "BackupVolume",
        orderDirection: "ASC",
        product: "mysql",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    backup_summaries = tencentcloud.get_mysql_backup_summaries(order_by="BackupVolume",
        order_direction="ASC",
        product="mysql")
    
    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.GetMysqlBackupSummaries(ctx, &tencentcloud.GetMysqlBackupSummariesArgs{
    			OrderBy:        pulumi.StringRef("BackupVolume"),
    			OrderDirection: pulumi.StringRef("ASC"),
    			Product:        "mysql",
    		}, 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 backupSummaries = Tencentcloud.GetMysqlBackupSummaries.Invoke(new()
        {
            OrderBy = "BackupVolume",
            OrderDirection = "ASC",
            Product = "mysql",
        });
    
    });
    
    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.GetMysqlBackupSummariesArgs;
    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 backupSummaries = TencentcloudFunctions.getMysqlBackupSummaries(GetMysqlBackupSummariesArgs.builder()
                .orderBy("BackupVolume")
                .orderDirection("ASC")
                .product("mysql")
                .build());
    
        }
    }
    
    variables:
      backupSummaries:
        fn::invoke:
          function: tencentcloud:getMysqlBackupSummaries
          arguments:
            orderBy: BackupVolume
            orderDirection: ASC
            product: mysql
    

    Using getMysqlBackupSummaries

    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 getMysqlBackupSummaries(args: GetMysqlBackupSummariesArgs, opts?: InvokeOptions): Promise<GetMysqlBackupSummariesResult>
    function getMysqlBackupSummariesOutput(args: GetMysqlBackupSummariesOutputArgs, opts?: InvokeOptions): Output<GetMysqlBackupSummariesResult>
    def get_mysql_backup_summaries(id: Optional[str] = None,
                                   order_by: Optional[str] = None,
                                   order_direction: Optional[str] = None,
                                   product: Optional[str] = None,
                                   result_output_file: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetMysqlBackupSummariesResult
    def get_mysql_backup_summaries_output(id: Optional[pulumi.Input[str]] = None,
                                   order_by: Optional[pulumi.Input[str]] = None,
                                   order_direction: Optional[pulumi.Input[str]] = None,
                                   product: Optional[pulumi.Input[str]] = None,
                                   result_output_file: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetMysqlBackupSummariesResult]
    func GetMysqlBackupSummaries(ctx *Context, args *GetMysqlBackupSummariesArgs, opts ...InvokeOption) (*GetMysqlBackupSummariesResult, error)
    func GetMysqlBackupSummariesOutput(ctx *Context, args *GetMysqlBackupSummariesOutputArgs, opts ...InvokeOption) GetMysqlBackupSummariesResultOutput

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

    public static class GetMysqlBackupSummaries 
    {
        public static Task<GetMysqlBackupSummariesResult> InvokeAsync(GetMysqlBackupSummariesArgs args, InvokeOptions? opts = null)
        public static Output<GetMysqlBackupSummariesResult> Invoke(GetMysqlBackupSummariesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMysqlBackupSummariesResult> getMysqlBackupSummaries(GetMysqlBackupSummariesArgs args, InvokeOptions options)
    public static Output<GetMysqlBackupSummariesResult> getMysqlBackupSummaries(GetMysqlBackupSummariesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMysqlBackupSummaries:getMysqlBackupSummaries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Product string
    The type of cloud database product to be queried, currently only supports mysql.
    Id string
    OrderBy string
    Specify to sort by a certain item, the optional values include: BackupVolume: backup volume, DataBackupVolume: data backup volume, BinlogBackupVolume: log backup volume, AutoBackupVolume: automatic backup volume, ManualBackupVolume: manual backup volume. By default, they are sorted by BackupVolume.
    OrderDirection string
    Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
    ResultOutputFile string
    Used to save results.
    Product string
    The type of cloud database product to be queried, currently only supports mysql.
    Id string
    OrderBy string
    Specify to sort by a certain item, the optional values include: BackupVolume: backup volume, DataBackupVolume: data backup volume, BinlogBackupVolume: log backup volume, AutoBackupVolume: automatic backup volume, ManualBackupVolume: manual backup volume. By default, they are sorted by BackupVolume.
    OrderDirection string
    Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
    ResultOutputFile string
    Used to save results.
    product String
    The type of cloud database product to be queried, currently only supports mysql.
    id String
    orderBy String
    Specify to sort by a certain item, the optional values include: BackupVolume: backup volume, DataBackupVolume: data backup volume, BinlogBackupVolume: log backup volume, AutoBackupVolume: automatic backup volume, ManualBackupVolume: manual backup volume. By default, they are sorted by BackupVolume.
    orderDirection String
    Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
    resultOutputFile String
    Used to save results.
    product string
    The type of cloud database product to be queried, currently only supports mysql.
    id string
    orderBy string
    Specify to sort by a certain item, the optional values include: BackupVolume: backup volume, DataBackupVolume: data backup volume, BinlogBackupVolume: log backup volume, AutoBackupVolume: automatic backup volume, ManualBackupVolume: manual backup volume. By default, they are sorted by BackupVolume.
    orderDirection string
    Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
    resultOutputFile string
    Used to save results.
    product str
    The type of cloud database product to be queried, currently only supports mysql.
    id str
    order_by str
    Specify to sort by a certain item, the optional values include: BackupVolume: backup volume, DataBackupVolume: data backup volume, BinlogBackupVolume: log backup volume, AutoBackupVolume: automatic backup volume, ManualBackupVolume: manual backup volume. By default, they are sorted by BackupVolume.
    order_direction str
    Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
    result_output_file str
    Used to save results.
    product String
    The type of cloud database product to be queried, currently only supports mysql.
    id String
    orderBy String
    Specify to sort by a certain item, the optional values include: BackupVolume: backup volume, DataBackupVolume: data backup volume, BinlogBackupVolume: log backup volume, AutoBackupVolume: automatic backup volume, ManualBackupVolume: manual backup volume. By default, they are sorted by BackupVolume.
    orderDirection String
    Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
    resultOutputFile String
    Used to save results.

    getMysqlBackupSummaries Result

    The following output properties are available:

    Id string
    Items List<GetMysqlBackupSummariesItem>
    Instance backup statistics entries.
    Product string
    OrderBy string
    OrderDirection string
    ResultOutputFile string
    Id string
    Items []GetMysqlBackupSummariesItem
    Instance backup statistics entries.
    Product string
    OrderBy string
    OrderDirection string
    ResultOutputFile string
    id String
    items List<GetMysqlBackupSummariesItem>
    Instance backup statistics entries.
    product String
    orderBy String
    orderDirection String
    resultOutputFile String
    id string
    items GetMysqlBackupSummariesItem[]
    Instance backup statistics entries.
    product string
    orderBy string
    orderDirection string
    resultOutputFile string
    id String
    items List<Property Map>
    Instance backup statistics entries.
    product String
    orderBy String
    orderDirection String
    resultOutputFile String

    Supporting Types

    GetMysqlBackupSummariesItem

    AutoBackupCount double
    The number of automatic data backups for this instance.
    AutoBackupVolume double
    The automatic data backup capacity of this instance.
    BackupVolume double
    The total backup (including data backup and log backup) of the instance occupies capacity.
    BinlogBackupCount double
    The number of log backups for this instance.
    BinlogBackupVolume double
    The capacity of the instance log backup.
    DataBackupCount double
    The total number of data backups (including automatic backups and manual backups) of the instance.
    DataBackupVolume double
    The total data backup capacity of this instance.
    InstanceId string
    Instance ID.
    ManualBackupCount double
    The number of manual data backups for this instance.
    ManualBackupVolume double
    The capacity of manual data backup for this instance.
    AutoBackupCount float64
    The number of automatic data backups for this instance.
    AutoBackupVolume float64
    The automatic data backup capacity of this instance.
    BackupVolume float64
    The total backup (including data backup and log backup) of the instance occupies capacity.
    BinlogBackupCount float64
    The number of log backups for this instance.
    BinlogBackupVolume float64
    The capacity of the instance log backup.
    DataBackupCount float64
    The total number of data backups (including automatic backups and manual backups) of the instance.
    DataBackupVolume float64
    The total data backup capacity of this instance.
    InstanceId string
    Instance ID.
    ManualBackupCount float64
    The number of manual data backups for this instance.
    ManualBackupVolume float64
    The capacity of manual data backup for this instance.
    autoBackupCount Double
    The number of automatic data backups for this instance.
    autoBackupVolume Double
    The automatic data backup capacity of this instance.
    backupVolume Double
    The total backup (including data backup and log backup) of the instance occupies capacity.
    binlogBackupCount Double
    The number of log backups for this instance.
    binlogBackupVolume Double
    The capacity of the instance log backup.
    dataBackupCount Double
    The total number of data backups (including automatic backups and manual backups) of the instance.
    dataBackupVolume Double
    The total data backup capacity of this instance.
    instanceId String
    Instance ID.
    manualBackupCount Double
    The number of manual data backups for this instance.
    manualBackupVolume Double
    The capacity of manual data backup for this instance.
    autoBackupCount number
    The number of automatic data backups for this instance.
    autoBackupVolume number
    The automatic data backup capacity of this instance.
    backupVolume number
    The total backup (including data backup and log backup) of the instance occupies capacity.
    binlogBackupCount number
    The number of log backups for this instance.
    binlogBackupVolume number
    The capacity of the instance log backup.
    dataBackupCount number
    The total number of data backups (including automatic backups and manual backups) of the instance.
    dataBackupVolume number
    The total data backup capacity of this instance.
    instanceId string
    Instance ID.
    manualBackupCount number
    The number of manual data backups for this instance.
    manualBackupVolume number
    The capacity of manual data backup for this instance.
    auto_backup_count float
    The number of automatic data backups for this instance.
    auto_backup_volume float
    The automatic data backup capacity of this instance.
    backup_volume float
    The total backup (including data backup and log backup) of the instance occupies capacity.
    binlog_backup_count float
    The number of log backups for this instance.
    binlog_backup_volume float
    The capacity of the instance log backup.
    data_backup_count float
    The total number of data backups (including automatic backups and manual backups) of the instance.
    data_backup_volume float
    The total data backup capacity of this instance.
    instance_id str
    Instance ID.
    manual_backup_count float
    The number of manual data backups for this instance.
    manual_backup_volume float
    The capacity of manual data backup for this instance.
    autoBackupCount Number
    The number of automatic data backups for this instance.
    autoBackupVolume Number
    The automatic data backup capacity of this instance.
    backupVolume Number
    The total backup (including data backup and log backup) of the instance occupies capacity.
    binlogBackupCount Number
    The number of log backups for this instance.
    binlogBackupVolume Number
    The capacity of the instance log backup.
    dataBackupCount Number
    The total number of data backups (including automatic backups and manual backups) of the instance.
    dataBackupVolume Number
    The total data backup capacity of this instance.
    instanceId String
    Instance ID.
    manualBackupCount Number
    The number of manual data backups for this instance.
    manualBackupVolume Number
    The capacity of manual data backup for this instance.

    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