tencentcloud.MysqlRollback
Explore with Pulumi AI
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:
- Instance
Id string - Cloud database instance ID.
- Rollback
Time 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<Mysql
Rollback Database> - The database information to be archived, indicating that the entire database is archived.
- Mysql
Rollback stringId - ID of the resource.
- Tables
List<Mysql
Rollback Table> - The database table information to be rolled back, indicating that the file is rolled back by table.
- Instance
Id string - Cloud database instance ID.
- Rollback
Time 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
[]Mysql
Rollback Database Args - The database information to be archived, indicating that the entire database is archived.
- Mysql
Rollback stringId - ID of the resource.
- Tables
[]Mysql
Rollback Table Args - The database table information to be rolled back, indicating that the file is rolled back by table.
- instance
Id String - Cloud database instance ID.
- rollback
Time 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<Mysql
Rollback Database> - The database information to be archived, indicating that the entire database is archived.
- mysql
Rollback StringId - ID of the resource.
- tables
List<Mysql
Rollback Table> - The database table information to be rolled back, indicating that the file is rolled back by table.
- instance
Id string - Cloud database instance ID.
- rollback
Time 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
Mysql
Rollback Database[] - The database information to be archived, indicating that the entire database is archived.
- mysql
Rollback stringId - ID of the resource.
- tables
Mysql
Rollback Table[] - 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[Mysql
Rollback Database Args] - The database information to be archived, indicating that the entire database is archived.
- mysql_
rollback_ strid - ID of the resource.
- tables
Sequence[Mysql
Rollback Table Args] - The database table information to be rolled back, indicating that the file is rolled back by table.
- instance
Id String - Cloud database instance ID.
- rollback
Time 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.
- mysql
Rollback StringId - 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.
- Databases
List<Mysql
Rollback Database> - The database information to be archived, indicating that the entire database is archived.
- Instance
Id string - Cloud database instance ID.
- Mysql
Rollback stringId - ID of the resource.
- Rollback
Time 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<Mysql
Rollback Table> - The database table information to be rolled back, indicating that the file is rolled back by table.
- Databases
[]Mysql
Rollback Database Args - The database information to be archived, indicating that the entire database is archived.
- Instance
Id string - Cloud database instance ID.
- Mysql
Rollback stringId - ID of the resource.
- Rollback
Time 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
[]Mysql
Rollback Table Args - The database table information to be rolled back, indicating that the file is rolled back by table.
- databases
List<Mysql
Rollback Database> - The database information to be archived, indicating that the entire database is archived.
- instance
Id String - Cloud database instance ID.
- mysql
Rollback StringId - ID of the resource.
- rollback
Time 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<Mysql
Rollback Table> - The database table information to be rolled back, indicating that the file is rolled back by table.
- databases
Mysql
Rollback Database[] - The database information to be archived, indicating that the entire database is archived.
- instance
Id string - Cloud database instance ID.
- mysql
Rollback stringId - ID of the resource.
- rollback
Time 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
Mysql
Rollback Table[] - The database table information to be rolled back, indicating that the file is rolled back by table.
- databases
Sequence[Mysql
Rollback Database Args] - The database information to be archived, indicating that the entire database is archived.
- instance_
id str - Cloud database instance ID.
- mysql_
rollback_ strid - 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[Mysql
Rollback Table Args] - 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.
- instance
Id String - Cloud database instance ID.
- mysql
Rollback StringId - ID of the resource.
- rollback
Time 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
- Database
Name string - The original database name before rollback.
- New
Database stringName - The new database name after rollback.
- Database
Name string - The original database name before rollback.
- New
Database stringName - The new database name after rollback.
- database
Name String - The original database name before rollback.
- new
Database StringName - The new database name after rollback.
- database
Name string - The original database name before rollback.
- new
Database stringName - The new database name after rollback.
- database_
name str - The original database name before rollback.
- new_
database_ strname - The new database name after rollback.
- database
Name String - The original database name before rollback.
- new
Database StringName - The new database name after rollback.
MysqlRollbackTable, MysqlRollbackTableArgs
- Database string
- Database name.
- Tables
List<Mysql
Rollback Table Table> - Database table details.
- Database string
- Database name.
- Tables
[]Mysql
Rollback Table Table - Database table details.
- database String
- Database name.
- tables
List<Mysql
Rollback Table Table> - Database table details.
- database string
- Database name.
- tables
Mysql
Rollback Table Table[] - Database table details.
- database str
- Database name.
- tables
Sequence[Mysql
Rollback Table Table] - Database table details.
- database String
- Database name.
- tables List<Property Map>
- Database table details.
MysqlRollbackTableTable, MysqlRollbackTableTableArgs
- New
Table stringName - New database table name after rollback.
- Table
Name string - The original database table name before rollback.
- New
Table stringName - New database table name after rollback.
- Table
Name string - The original database table name before rollback.
- new
Table StringName - New database table name after rollback.
- table
Name String - The original database table name before rollback.
- new
Table stringName - New database table name after rollback.
- table
Name string - The original database table name before rollback.
- new_
table_ strname - New database table name after rollback.
- table_
name str - The original database table name before rollback.
- new
Table StringName - New database table name after rollback.
- table
Name 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.