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

tencentcloud.MysqlRollback

Explore with Pulumi AI

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

    Provides a resource to create a mysql rollback

    Create MysqlRollback Resource

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

    Constructor syntax

    new MysqlRollback(name: string, args: MysqlRollbackArgs, opts?: CustomResourceOptions);
    @overload
    def MysqlRollback(resource_name: str,
                      args: MysqlRollbackArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def MysqlRollback(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      instance_id: Optional[str] = None,
                      rollback_time: Optional[str] = None,
                      strategy: Optional[str] = None,
                      databases: Optional[Sequence[MysqlRollbackDatabaseArgs]] = None,
                      mysql_rollback_id: Optional[str] = None,
                      tables: Optional[Sequence[MysqlRollbackTableArgs]] = None)
    func NewMysqlRollback(ctx *Context, name string, args MysqlRollbackArgs, opts ...ResourceOption) (*MysqlRollback, error)
    public MysqlRollback(string name, MysqlRollbackArgs args, CustomResourceOptions? opts = null)
    public MysqlRollback(String name, MysqlRollbackArgs args)
    public MysqlRollback(String name, MysqlRollbackArgs args, CustomResourceOptions options)
    
    type: tencentcloud:MysqlRollback
    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 MysqlRollbackArgs
    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 MysqlRollbackArgs
    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 MysqlRollbackArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MysqlRollbackArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MysqlRollbackArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    MysqlRollback 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 MysqlRollback resource accepts the following input properties:

    InstanceId string
    Cloud database instance ID.
    RollbackTime string
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    Strategy string
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    Databases List<MysqlRollbackDatabase>
    The database information to be archived, indicating that the entire database is archived.
    MysqlRollbackId string
    ID of the resource.
    Tables List<MysqlRollbackTable>
    The database table information to be rolled back, indicating that the file is rolled back by table.
    InstanceId string
    Cloud database instance ID.
    RollbackTime string
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    Strategy string
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    Databases []MysqlRollbackDatabaseArgs
    The database information to be archived, indicating that the entire database is archived.
    MysqlRollbackId string
    ID of the resource.
    Tables []MysqlRollbackTableArgs
    The database table information to be rolled back, indicating that the file is rolled back by table.
    instanceId String
    Cloud database instance ID.
    rollbackTime String
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    strategy String
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    databases List<MysqlRollbackDatabase>
    The database information to be archived, indicating that the entire database is archived.
    mysqlRollbackId String
    ID of the resource.
    tables List<MysqlRollbackTable>
    The database table information to be rolled back, indicating that the file is rolled back by table.
    instanceId string
    Cloud database instance ID.
    rollbackTime string
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    strategy string
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    databases MysqlRollbackDatabase[]
    The database information to be archived, indicating that the entire database is archived.
    mysqlRollbackId string
    ID of the resource.
    tables MysqlRollbackTable[]
    The database table information to be rolled back, indicating that the file is rolled back by table.
    instance_id str
    Cloud database instance ID.
    rollback_time str
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    strategy str
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    databases Sequence[MysqlRollbackDatabaseArgs]
    The database information to be archived, indicating that the entire database is archived.
    mysql_rollback_id str
    ID of the resource.
    tables Sequence[MysqlRollbackTableArgs]
    The database table information to be rolled back, indicating that the file is rolled back by table.
    instanceId String
    Cloud database instance ID.
    rollbackTime String
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    strategy String
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    databases List<Property Map>
    The database information to be archived, indicating that the entire database is archived.
    mysqlRollbackId String
    ID of the resource.
    tables List<Property Map>
    The database table information to be rolled back, indicating that the file is rolled back by table.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MysqlRollback Resource

    Get an existing MysqlRollback 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?: MysqlRollbackState, opts?: CustomResourceOptions): MysqlRollback
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            databases: Optional[Sequence[MysqlRollbackDatabaseArgs]] = None,
            instance_id: Optional[str] = None,
            mysql_rollback_id: Optional[str] = None,
            rollback_time: Optional[str] = None,
            strategy: Optional[str] = None,
            tables: Optional[Sequence[MysqlRollbackTableArgs]] = None) -> MysqlRollback
    func GetMysqlRollback(ctx *Context, name string, id IDInput, state *MysqlRollbackState, opts ...ResourceOption) (*MysqlRollback, error)
    public static MysqlRollback Get(string name, Input<string> id, MysqlRollbackState? state, CustomResourceOptions? opts = null)
    public static MysqlRollback get(String name, Output<String> id, MysqlRollbackState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MysqlRollback    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:
    Databases List<MysqlRollbackDatabase>
    The database information to be archived, indicating that the entire database is archived.
    InstanceId string
    Cloud database instance ID.
    MysqlRollbackId string
    ID of the resource.
    RollbackTime string
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    Strategy string
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    Tables List<MysqlRollbackTable>
    The database table information to be rolled back, indicating that the file is rolled back by table.
    Databases []MysqlRollbackDatabaseArgs
    The database information to be archived, indicating that the entire database is archived.
    InstanceId string
    Cloud database instance ID.
    MysqlRollbackId string
    ID of the resource.
    RollbackTime string
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    Strategy string
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    Tables []MysqlRollbackTableArgs
    The database table information to be rolled back, indicating that the file is rolled back by table.
    databases List<MysqlRollbackDatabase>
    The database information to be archived, indicating that the entire database is archived.
    instanceId String
    Cloud database instance ID.
    mysqlRollbackId String
    ID of the resource.
    rollbackTime String
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    strategy String
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    tables List<MysqlRollbackTable>
    The database table information to be rolled back, indicating that the file is rolled back by table.
    databases MysqlRollbackDatabase[]
    The database information to be archived, indicating that the entire database is archived.
    instanceId string
    Cloud database instance ID.
    mysqlRollbackId string
    ID of the resource.
    rollbackTime string
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    strategy string
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    tables MysqlRollbackTable[]
    The database table information to be rolled back, indicating that the file is rolled back by table.
    databases Sequence[MysqlRollbackDatabaseArgs]
    The database information to be archived, indicating that the entire database is archived.
    instance_id str
    Cloud database instance ID.
    mysql_rollback_id str
    ID of the resource.
    rollback_time str
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    strategy str
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    tables Sequence[MysqlRollbackTableArgs]
    The database table information to be rolled back, indicating that the file is rolled back by table.
    databases List<Property Map>
    The database information to be archived, indicating that the entire database is archived.
    instanceId String
    Cloud database instance ID.
    mysqlRollbackId String
    ID of the resource.
    rollbackTime String
    Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss.
    strategy String
    Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate.
    tables List<Property Map>
    The database table information to be rolled back, indicating that the file is rolled back by table.

    Supporting Types

    MysqlRollbackDatabase, MysqlRollbackDatabaseArgs

    DatabaseName string
    The original database name before rollback.
    NewDatabaseName string
    The new database name after rollback.
    DatabaseName string
    The original database name before rollback.
    NewDatabaseName string
    The new database name after rollback.
    databaseName String
    The original database name before rollback.
    newDatabaseName String
    The new database name after rollback.
    databaseName string
    The original database name before rollback.
    newDatabaseName string
    The new database name after rollback.
    database_name str
    The original database name before rollback.
    new_database_name str
    The new database name after rollback.
    databaseName String
    The original database name before rollback.
    newDatabaseName String
    The new database name after rollback.

    MysqlRollbackTable, MysqlRollbackTableArgs

    Database string
    Database name.
    Tables List<MysqlRollbackTableTable>
    Database table details.
    Database string
    Database name.
    Tables []MysqlRollbackTableTable
    Database table details.
    database String
    Database name.
    tables List<MysqlRollbackTableTable>
    Database table details.
    database string
    Database name.
    tables MysqlRollbackTableTable[]
    Database table details.
    database str
    Database name.
    tables Sequence[MysqlRollbackTableTable]
    Database table details.
    database String
    Database name.
    tables List<Property Map>
    Database table details.

    MysqlRollbackTableTable, MysqlRollbackTableTableArgs

    NewTableName string
    New database table name after rollback.
    TableName string
    The original database table name before rollback.
    NewTableName string
    New database table name after rollback.
    TableName string
    The original database table name before rollback.
    newTableName String
    New database table name after rollback.
    tableName String
    The original database table name before rollback.
    newTableName string
    New database table name after rollback.
    tableName string
    The original database table name before rollback.
    new_table_name str
    New database table name after rollback.
    table_name str
    The original database table name before rollback.
    newTableName String
    New database table name after rollback.
    tableName String
    The original database table name before rollback.

    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