tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getMysqlBackupSummaries
Explore with Pulumi AI
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
- Order
By 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.
- Order
Direction string - Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
- Result
Output stringFile - Used to save results.
- Product string
- The type of cloud database product to be queried, currently only supports
mysql
. - Id string
- Order
By 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.
- Order
Direction string - Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
- Result
Output stringFile - Used to save results.
- product String
- The type of cloud database product to be queried, currently only supports
mysql
. - id String
- order
By 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.
- order
Direction String - Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
- result
Output StringFile - Used to save results.
- product string
- The type of cloud database product to be queried, currently only supports
mysql
. - id string
- order
By 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.
- order
Direction string - Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
- result
Output stringFile - 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_ strfile - Used to save results.
- product String
- The type of cloud database product to be queried, currently only supports
mysql
. - id String
- order
By 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.
- order
Direction String - Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
- result
Output StringFile - Used to save results.
getMysqlBackupSummaries Result
The following output properties are available:
- Id string
- Items
List<Get
Mysql Backup Summaries Item> - Instance backup statistics entries.
- Product string
- Order
By string - Order
Direction string - Result
Output stringFile
- Id string
- Items
[]Get
Mysql Backup Summaries Item - Instance backup statistics entries.
- Product string
- Order
By string - Order
Direction string - Result
Output stringFile
- id String
- items
List<Get
Mysql Backup Summaries Item> - Instance backup statistics entries.
- product String
- order
By String - order
Direction String - result
Output StringFile
- id string
- items
Get
Mysql Backup Summaries Item[] - Instance backup statistics entries.
- product string
- order
By string - order
Direction string - result
Output stringFile
- id str
- items
Sequence[Get
Mysql Backup Summaries Item] - Instance backup statistics entries.
- product str
- order_
by str - order_
direction str - result_
output_ strfile
- id String
- items List<Property Map>
- Instance backup statistics entries.
- product String
- order
By String - order
Direction String - result
Output StringFile
Supporting Types
GetMysqlBackupSummariesItem
- Auto
Backup doubleCount - The number of automatic data backups for this instance.
- Auto
Backup doubleVolume - The automatic data backup capacity of this instance.
- Backup
Volume double - The total backup (including data backup and log backup) of the instance occupies capacity.
- Binlog
Backup doubleCount - The number of log backups for this instance.
- Binlog
Backup doubleVolume - The capacity of the instance log backup.
- Data
Backup doubleCount - The total number of data backups (including automatic backups and manual backups) of the instance.
- Data
Backup doubleVolume - The total data backup capacity of this instance.
- Instance
Id string - Instance ID.
- Manual
Backup doubleCount - The number of manual data backups for this instance.
- Manual
Backup doubleVolume - The capacity of manual data backup for this instance.
- Auto
Backup float64Count - The number of automatic data backups for this instance.
- Auto
Backup float64Volume - The automatic data backup capacity of this instance.
- Backup
Volume float64 - The total backup (including data backup and log backup) of the instance occupies capacity.
- Binlog
Backup float64Count - The number of log backups for this instance.
- Binlog
Backup float64Volume - The capacity of the instance log backup.
- Data
Backup float64Count - The total number of data backups (including automatic backups and manual backups) of the instance.
- Data
Backup float64Volume - The total data backup capacity of this instance.
- Instance
Id string - Instance ID.
- Manual
Backup float64Count - The number of manual data backups for this instance.
- Manual
Backup float64Volume - The capacity of manual data backup for this instance.
- auto
Backup DoubleCount - The number of automatic data backups for this instance.
- auto
Backup DoubleVolume - The automatic data backup capacity of this instance.
- backup
Volume Double - The total backup (including data backup and log backup) of the instance occupies capacity.
- binlog
Backup DoubleCount - The number of log backups for this instance.
- binlog
Backup DoubleVolume - The capacity of the instance log backup.
- data
Backup DoubleCount - The total number of data backups (including automatic backups and manual backups) of the instance.
- data
Backup DoubleVolume - The total data backup capacity of this instance.
- instance
Id String - Instance ID.
- manual
Backup DoubleCount - The number of manual data backups for this instance.
- manual
Backup DoubleVolume - The capacity of manual data backup for this instance.
- auto
Backup numberCount - The number of automatic data backups for this instance.
- auto
Backup numberVolume - The automatic data backup capacity of this instance.
- backup
Volume number - The total backup (including data backup and log backup) of the instance occupies capacity.
- binlog
Backup numberCount - The number of log backups for this instance.
- binlog
Backup numberVolume - The capacity of the instance log backup.
- data
Backup numberCount - The total number of data backups (including automatic backups and manual backups) of the instance.
- data
Backup numberVolume - The total data backup capacity of this instance.
- instance
Id string - Instance ID.
- manual
Backup numberCount - The number of manual data backups for this instance.
- manual
Backup numberVolume - The capacity of manual data backup for this instance.
- auto_
backup_ floatcount - The number of automatic data backups for this instance.
- auto_
backup_ floatvolume - 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_ floatcount - The number of log backups for this instance.
- binlog_
backup_ floatvolume - The capacity of the instance log backup.
- data_
backup_ floatcount - The total number of data backups (including automatic backups and manual backups) of the instance.
- data_
backup_ floatvolume - The total data backup capacity of this instance.
- instance_
id str - Instance ID.
- manual_
backup_ floatcount - The number of manual data backups for this instance.
- manual_
backup_ floatvolume - The capacity of manual data backup for this instance.
- auto
Backup NumberCount - The number of automatic data backups for this instance.
- auto
Backup NumberVolume - The automatic data backup capacity of this instance.
- backup
Volume Number - The total backup (including data backup and log backup) of the instance occupies capacity.
- binlog
Backup NumberCount - The number of log backups for this instance.
- binlog
Backup NumberVolume - The capacity of the instance log backup.
- data
Backup NumberCount - The total number of data backups (including automatic backups and manual backups) of the instance.
- data
Backup NumberVolume - The total data backup capacity of this instance.
- instance
Id String - Instance ID.
- manual
Backup NumberCount - The number of manual data backups for this instance.
- manual
Backup NumberVolume - 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack