1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. rdsmysql
  5. Backup
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus

    备份是数据库的重要运行时文件,基于备份文件,数据库能够实现容灾、恢复等功能。云数据库 MySQL 版提供了数据备份和日志备份两种备份能力:通过数据备份可将数据库恢复至某个备份集,通过日志备份可将数据库恢复至指定时间点。

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const rdsmysqlbackupDemo = new bytepluscc.rdsmysql.Backup("rdsmysqlbackupDemo", {
        instanceId: "mysql-9e2c59****",
        backupMethod: "Logical",
        backupMetas: [{
            database: "test",
            tables: [],
        }],
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    rdsmysqlbackup_demo = bytepluscc.rdsmysql.Backup("rdsmysqlbackupDemo",
        instance_id="mysql-9e2c59****",
        backup_method="Logical",
        backup_metas=[{
            "database": "test",
            "tables": [],
        }])
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/rdsmysql"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rdsmysql.NewBackup(ctx, "rdsmysqlbackupDemo", &rdsmysql.BackupArgs{
    			InstanceId:   pulumi.String("mysql-9e2c59****"),
    			BackupMethod: pulumi.String("Logical"),
    			BackupMetas: rdsmysql.BackupBackupMetaArray{
    				&rdsmysql.BackupBackupMetaArgs{
    					Database: pulumi.String("test"),
    					Tables:   pulumi.StringArray{},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var rdsmysqlbackupDemo = new Bytepluscc.Rdsmysql.Backup("rdsmysqlbackupDemo", new()
        {
            InstanceId = "mysql-9e2c59****",
            BackupMethod = "Logical",
            BackupMetas = new[]
            {
                new Bytepluscc.Rdsmysql.Inputs.BackupBackupMetaArgs
                {
                    Database = "test",
                    Tables = new() { },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.rdsmysql.Backup;
    import com.byteplus.bytepluscc.rdsmysql.BackupArgs;
    import com.pulumi.bytepluscc.rdsmysql.inputs.BackupBackupMetaArgs;
    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) {
            var rdsmysqlbackupDemo = new Backup("rdsmysqlbackupDemo", BackupArgs.builder()
                .instanceId("mysql-9e2c59****")
                .backupMethod("Logical")
                .backupMetas(BackupBackupMetaArgs.builder()
                    .database("test")
                    .tables()
                    .build())
                .build());
    
        }
    }
    
    resources:
      rdsmysqlbackupDemo:
        type: bytepluscc:rdsmysql:Backup
        properties:
          instanceId: mysql-9e2c59****
          backupMethod: Logical
          backupMetas:
            - database: test
              tables: []
    

    Create Backup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Backup(name: string, args: BackupArgs, opts?: CustomResourceOptions);
    @overload
    def Backup(resource_name: str,
               args: BackupArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Backup(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               instance_id: Optional[str] = None,
               backup_metas: Optional[Sequence[BackupBackupMetaArgs]] = None,
               backup_method: Optional[str] = None,
               backup_type: Optional[str] = None)
    func NewBackup(ctx *Context, name string, args BackupArgs, opts ...ResourceOption) (*Backup, error)
    public Backup(string name, BackupArgs args, CustomResourceOptions? opts = null)
    public Backup(String name, BackupArgs args)
    public Backup(String name, BackupArgs args, CustomResourceOptions options)
    
    type: bytepluscc:rdsmysql:Backup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var backupResource = new Bytepluscc.Rdsmysql.Backup("backupResource", new()
    {
        InstanceId = "string",
        BackupMetas = new[]
        {
            new Bytepluscc.Rdsmysql.Inputs.BackupBackupMetaArgs
            {
                Database = "string",
                Tables = new[]
                {
                    "string",
                },
            },
        },
        BackupMethod = "string",
        BackupType = "string",
    });
    
    example, err := rdsmysql.NewBackup(ctx, "backupResource", &rdsmysql.BackupArgs{
    	InstanceId: pulumi.String("string"),
    	BackupMetas: rdsmysql.BackupBackupMetaArray{
    		&rdsmysql.BackupBackupMetaArgs{
    			Database: pulumi.String("string"),
    			Tables: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	BackupMethod: pulumi.String("string"),
    	BackupType:   pulumi.String("string"),
    })
    
    var backupResource = new Backup("backupResource", BackupArgs.builder()
        .instanceId("string")
        .backupMetas(BackupBackupMetaArgs.builder()
            .database("string")
            .tables("string")
            .build())
        .backupMethod("string")
        .backupType("string")
        .build());
    
    backup_resource = bytepluscc.rdsmysql.Backup("backupResource",
        instance_id="string",
        backup_metas=[{
            "database": "string",
            "tables": ["string"],
        }],
        backup_method="string",
        backup_type="string")
    
    const backupResource = new bytepluscc.rdsmysql.Backup("backupResource", {
        instanceId: "string",
        backupMetas: [{
            database: "string",
            tables: ["string"],
        }],
        backupMethod: "string",
        backupType: "string",
    });
    
    type: bytepluscc:rdsmysql:Backup
    properties:
        backupMetas:
            - database: string
              tables:
                - string
        backupMethod: string
        backupType: string
        instanceId: string
    

    Backup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Backup resource accepts the following input properties:

    InstanceId string
    实例 ID。
    BackupMetas List<Byteplus.BackupBackupMeta>
    BackupMethod string
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    BackupType string
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    InstanceId string
    实例 ID。
    BackupMetas []BackupBackupMetaArgs
    BackupMethod string
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    BackupType string
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    instanceId String
    实例 ID。
    backupMetas List<BackupBackupMeta>
    backupMethod String
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    backupType String
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    instanceId string
    实例 ID。
    backupMetas BackupBackupMeta[]
    backupMethod string
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    backupType string
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    instance_id str
    实例 ID。
    backup_metas Sequence[BackupBackupMetaArgs]
    backup_method str
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    backup_type str
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    instanceId String
    实例 ID。
    backupMetas List<Property Map>
    backupMethod String
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    backupType String
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Backup resource produces the following output properties:

    BackupEndTime string
    备份创建结束时间(UTC)。
    BackupFileName string
    备份文件名。
    BackupFileSize int
    备份文件大小,单位为字节。
    BackupId string
    备份 ID。
    BackupName string
    备份的名称。
    BackupRegion string
    备份所在区域。
    BackupStartTime string
    备份创建开始时间(UTC)。
    BackupStatus string
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    ConsistentTime string
    一致性时间点。
    CreateType string
    备份创建者,取值:System(系统)、User(用户)。
    DbEngineVersion string
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    DbTableInfos List<Byteplus.BackupDbTableInfo>
    DownloadStatus string
    下载状态。
    EngineType string
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    ErrorMessage string
    备份失败的错误信息。
    ExpiredTime string
    备份过期时间(UTC)。
    Id string
    The provider-assigned unique ID for this managed resource.
    IsEncrypted bool
    是否加密。
    IsExpired bool
    是否已过期。
    BackupEndTime string
    备份创建结束时间(UTC)。
    BackupFileName string
    备份文件名。
    BackupFileSize int
    备份文件大小,单位为字节。
    BackupId string
    备份 ID。
    BackupName string
    备份的名称。
    BackupRegion string
    备份所在区域。
    BackupStartTime string
    备份创建开始时间(UTC)。
    BackupStatus string
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    ConsistentTime string
    一致性时间点。
    CreateType string
    备份创建者,取值:System(系统)、User(用户)。
    DbEngineVersion string
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    DbTableInfos []BackupDbTableInfo
    DownloadStatus string
    下载状态。
    EngineType string
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    ErrorMessage string
    备份失败的错误信息。
    ExpiredTime string
    备份过期时间(UTC)。
    Id string
    The provider-assigned unique ID for this managed resource.
    IsEncrypted bool
    是否加密。
    IsExpired bool
    是否已过期。
    backupEndTime String
    备份创建结束时间(UTC)。
    backupFileName String
    备份文件名。
    backupFileSize Integer
    备份文件大小,单位为字节。
    backupId String
    备份 ID。
    backupName String
    备份的名称。
    backupRegion String
    备份所在区域。
    backupStartTime String
    备份创建开始时间(UTC)。
    backupStatus String
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    consistentTime String
    一致性时间点。
    createType String
    备份创建者,取值:System(系统)、User(用户)。
    dbEngineVersion String
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    dbTableInfos List<BackupDbTableInfo>
    downloadStatus String
    下载状态。
    engineType String
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    errorMessage String
    备份失败的错误信息。
    expiredTime String
    备份过期时间(UTC)。
    id String
    The provider-assigned unique ID for this managed resource.
    isEncrypted Boolean
    是否加密。
    isExpired Boolean
    是否已过期。
    backupEndTime string
    备份创建结束时间(UTC)。
    backupFileName string
    备份文件名。
    backupFileSize number
    备份文件大小,单位为字节。
    backupId string
    备份 ID。
    backupName string
    备份的名称。
    backupRegion string
    备份所在区域。
    backupStartTime string
    备份创建开始时间(UTC)。
    backupStatus string
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    consistentTime string
    一致性时间点。
    createType string
    备份创建者,取值:System(系统)、User(用户)。
    dbEngineVersion string
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    dbTableInfos BackupDbTableInfo[]
    downloadStatus string
    下载状态。
    engineType string
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    errorMessage string
    备份失败的错误信息。
    expiredTime string
    备份过期时间(UTC)。
    id string
    The provider-assigned unique ID for this managed resource.
    isEncrypted boolean
    是否加密。
    isExpired boolean
    是否已过期。
    backup_end_time str
    备份创建结束时间(UTC)。
    backup_file_name str
    备份文件名。
    backup_file_size int
    备份文件大小,单位为字节。
    backup_id str
    备份 ID。
    backup_name str
    备份的名称。
    backup_region str
    备份所在区域。
    backup_start_time str
    备份创建开始时间(UTC)。
    backup_status str
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    consistent_time str
    一致性时间点。
    create_type str
    备份创建者,取值:System(系统)、User(用户)。
    db_engine_version str
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    db_table_infos Sequence[BackupDbTableInfo]
    download_status str
    下载状态。
    engine_type str
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    error_message str
    备份失败的错误信息。
    expired_time str
    备份过期时间(UTC)。
    id str
    The provider-assigned unique ID for this managed resource.
    is_encrypted bool
    是否加密。
    is_expired bool
    是否已过期。
    backupEndTime String
    备份创建结束时间(UTC)。
    backupFileName String
    备份文件名。
    backupFileSize Number
    备份文件大小,单位为字节。
    backupId String
    备份 ID。
    backupName String
    备份的名称。
    backupRegion String
    备份所在区域。
    backupStartTime String
    备份创建开始时间(UTC)。
    backupStatus String
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    consistentTime String
    一致性时间点。
    createType String
    备份创建者,取值:System(系统)、User(用户)。
    dbEngineVersion String
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    dbTableInfos List<Property Map>
    downloadStatus String
    下载状态。
    engineType String
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    errorMessage String
    备份失败的错误信息。
    expiredTime String
    备份过期时间(UTC)。
    id String
    The provider-assigned unique ID for this managed resource.
    isEncrypted Boolean
    是否加密。
    isExpired Boolean
    是否已过期。

    Look up Existing Backup Resource

    Get an existing Backup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: BackupState, opts?: CustomResourceOptions): Backup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backup_end_time: Optional[str] = None,
            backup_file_name: Optional[str] = None,
            backup_file_size: Optional[int] = None,
            backup_id: Optional[str] = None,
            backup_metas: Optional[Sequence[BackupBackupMetaArgs]] = None,
            backup_method: Optional[str] = None,
            backup_name: Optional[str] = None,
            backup_region: Optional[str] = None,
            backup_start_time: Optional[str] = None,
            backup_status: Optional[str] = None,
            backup_type: Optional[str] = None,
            consistent_time: Optional[str] = None,
            create_type: Optional[str] = None,
            db_engine_version: Optional[str] = None,
            db_table_infos: Optional[Sequence[BackupDbTableInfoArgs]] = None,
            download_status: Optional[str] = None,
            engine_type: Optional[str] = None,
            error_message: Optional[str] = None,
            expired_time: Optional[str] = None,
            instance_id: Optional[str] = None,
            is_encrypted: Optional[bool] = None,
            is_expired: Optional[bool] = None) -> Backup
    func GetBackup(ctx *Context, name string, id IDInput, state *BackupState, opts ...ResourceOption) (*Backup, error)
    public static Backup Get(string name, Input<string> id, BackupState? state, CustomResourceOptions? opts = null)
    public static Backup get(String name, Output<String> id, BackupState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:rdsmysql:Backup    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BackupEndTime string
    备份创建结束时间(UTC)。
    BackupFileName string
    备份文件名。
    BackupFileSize int
    备份文件大小,单位为字节。
    BackupId string
    备份 ID。
    BackupMetas List<Byteplus.BackupBackupMeta>
    BackupMethod string
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    BackupName string
    备份的名称。
    BackupRegion string
    备份所在区域。
    BackupStartTime string
    备份创建开始时间(UTC)。
    BackupStatus string
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    BackupType string
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    ConsistentTime string
    一致性时间点。
    CreateType string
    备份创建者,取值:System(系统)、User(用户)。
    DbEngineVersion string
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    DbTableInfos List<Byteplus.BackupDbTableInfo>
    DownloadStatus string
    下载状态。
    EngineType string
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    ErrorMessage string
    备份失败的错误信息。
    ExpiredTime string
    备份过期时间(UTC)。
    InstanceId string
    实例 ID。
    IsEncrypted bool
    是否加密。
    IsExpired bool
    是否已过期。
    BackupEndTime string
    备份创建结束时间(UTC)。
    BackupFileName string
    备份文件名。
    BackupFileSize int
    备份文件大小,单位为字节。
    BackupId string
    备份 ID。
    BackupMetas []BackupBackupMetaArgs
    BackupMethod string
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    BackupName string
    备份的名称。
    BackupRegion string
    备份所在区域。
    BackupStartTime string
    备份创建开始时间(UTC)。
    BackupStatus string
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    BackupType string
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    ConsistentTime string
    一致性时间点。
    CreateType string
    备份创建者,取值:System(系统)、User(用户)。
    DbEngineVersion string
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    DbTableInfos []BackupDbTableInfoArgs
    DownloadStatus string
    下载状态。
    EngineType string
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    ErrorMessage string
    备份失败的错误信息。
    ExpiredTime string
    备份过期时间(UTC)。
    InstanceId string
    实例 ID。
    IsEncrypted bool
    是否加密。
    IsExpired bool
    是否已过期。
    backupEndTime String
    备份创建结束时间(UTC)。
    backupFileName String
    备份文件名。
    backupFileSize Integer
    备份文件大小,单位为字节。
    backupId String
    备份 ID。
    backupMetas List<BackupBackupMeta>
    backupMethod String
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    backupName String
    备份的名称。
    backupRegion String
    备份所在区域。
    backupStartTime String
    备份创建开始时间(UTC)。
    backupStatus String
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    backupType String
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    consistentTime String
    一致性时间点。
    createType String
    备份创建者,取值:System(系统)、User(用户)。
    dbEngineVersion String
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    dbTableInfos List<BackupDbTableInfo>
    downloadStatus String
    下载状态。
    engineType String
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    errorMessage String
    备份失败的错误信息。
    expiredTime String
    备份过期时间(UTC)。
    instanceId String
    实例 ID。
    isEncrypted Boolean
    是否加密。
    isExpired Boolean
    是否已过期。
    backupEndTime string
    备份创建结束时间(UTC)。
    backupFileName string
    备份文件名。
    backupFileSize number
    备份文件大小,单位为字节。
    backupId string
    备份 ID。
    backupMetas BackupBackupMeta[]
    backupMethod string
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    backupName string
    备份的名称。
    backupRegion string
    备份所在区域。
    backupStartTime string
    备份创建开始时间(UTC)。
    backupStatus string
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    backupType string
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    consistentTime string
    一致性时间点。
    createType string
    备份创建者,取值:System(系统)、User(用户)。
    dbEngineVersion string
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    dbTableInfos BackupDbTableInfo[]
    downloadStatus string
    下载状态。
    engineType string
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    errorMessage string
    备份失败的错误信息。
    expiredTime string
    备份过期时间(UTC)。
    instanceId string
    实例 ID。
    isEncrypted boolean
    是否加密。
    isExpired boolean
    是否已过期。
    backup_end_time str
    备份创建结束时间(UTC)。
    backup_file_name str
    备份文件名。
    backup_file_size int
    备份文件大小,单位为字节。
    backup_id str
    备份 ID。
    backup_metas Sequence[BackupBackupMetaArgs]
    backup_method str
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    backup_name str
    备份的名称。
    backup_region str
    备份所在区域。
    backup_start_time str
    备份创建开始时间(UTC)。
    backup_status str
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    backup_type str
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    consistent_time str
    一致性时间点。
    create_type str
    备份创建者,取值:System(系统)、User(用户)。
    db_engine_version str
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    db_table_infos Sequence[BackupDbTableInfoArgs]
    download_status str
    下载状态。
    engine_type str
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    error_message str
    备份失败的错误信息。
    expired_time str
    备份过期时间(UTC)。
    instance_id str
    实例 ID。
    is_encrypted bool
    是否加密。
    is_expired bool
    是否已过期。
    backupEndTime String
    备份创建结束时间(UTC)。
    backupFileName String
    备份文件名。
    backupFileSize Number
    备份文件大小,单位为字节。
    backupId String
    备份 ID。
    backupMetas List<Property Map>
    backupMethod String
    备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
    backupName String
    备份的名称。
    backupRegion String
    备份所在区域。
    backupStartTime String
    备份创建开始时间(UTC)。
    backupStatus String
    备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
    backupType String
    备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
    consistentTime String
    一致性时间点。
    createType String
    备份创建者,取值:System(系统)、User(用户)。
    dbEngineVersion String
    兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
    dbTableInfos List<Property Map>
    downloadStatus String
    下载状态。
    engineType String
    数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
    errorMessage String
    备份失败的错误信息。
    expiredTime String
    备份过期时间(UTC)。
    instanceId String
    实例 ID。
    isEncrypted Boolean
    是否加密。
    isExpired Boolean
    是否已过期。

    Supporting Types

    BackupBackupMeta, BackupBackupMetaArgs

    Database string
    数据库名。
    Tables List<string>
    表名列表。
    Database string
    数据库名。
    Tables []string
    表名列表。
    database String
    数据库名。
    tables List<String>
    表名列表。
    database string
    数据库名。
    tables string[]
    表名列表。
    database str
    数据库名。
    tables Sequence[str]
    表名列表。
    database String
    数据库名。
    tables List<String>
    表名列表。

    BackupDbTableInfo, BackupDbTableInfoArgs

    Database string
    数据库名。
    Tables List<string>
    表名列表。
    Database string
    数据库名。
    Tables []string
    表名列表。
    database String
    数据库名。
    tables List<String>
    表名列表。
    database string
    数据库名。
    tables string[]
    表名列表。
    database str
    数据库名。
    tables Sequence[str]
    表名列表。
    database String
    数据库名。
    tables List<String>
    表名列表。

    Import

    $ pulumi import bytepluscc:rdsmysql/backup:Backup example "instance_id|backup_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.16
    published on Monday, Mar 9, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.