Skip to content

RestoreTaskProps

Properties for defining a RestoreTask.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dbs-restoretask

Initializer

using AlibabaCloud.SDK.ROS.CDK.Dbs;
new RestoreTaskProps {
    object BackupPlanId,
    object DestinationEndpointInstanceType,
    object RestoreTaskName,
    object BackupGatewayId = null,
    object BackupSetId = null,
    object DestinationEndpointDatabaseName = null,
    object DestinationEndpointInstanceId = null,
    object DestinationEndpointIp = null,
    object DestinationEndpointOracleSid = null,
    object DestinationEndpointPassword = null,
    object DestinationEndpointPort = null,
    object DestinationEndpointRegion = null,
    object DestinationEndpointUserName = null,
    object DuplicateConflict = null,
    object RestoreDir = null,
    object RestoreHome = null,
    object RestoreObjects = null,
    object RestoreTime = null,
    object StartTask = null
};

Properties

Name Type Description
BackupPlanId object Property backupPlanId: The ID of the backup plan.
DestinationEndpointInstanceType object Property destinationEndpointInstanceType: The type of the destination endpoint.
RestoreTaskName object Property restoreTaskName: The name of the restoration task.
BackupGatewayId object Property backupGatewayId: The ID of the backup gateway.
BackupSetId object Property backupSetId: The ID of the full backup set used for restoration, which is mutually exclusive to RestoreTime.
DestinationEndpointDatabaseName object Property destinationEndpointDatabaseName: The name of the RDS database.
DestinationEndpointInstanceId object Property destinationEndpointInstanceId: The ID of the ApsaraDB RDS instance to query.
DestinationEndpointIp object Property destinationEndpointIp: The endpoint used to connect to the database.
DestinationEndpointOracleSid object Property destinationEndpointOracleSid: The SID of the Oracle instance.
DestinationEndpointPassword object Property destinationEndpointPassword: The password for the destination database account.
DestinationEndpointPort object Property destinationEndpointPort: The port that is used to access the database of the primary MySQL server.
DestinationEndpointRegion object Property destinationEndpointRegion: The region of the database.
DestinationEndpointUserName object Property destinationEndpointUserName: The username for the destination database account.
DuplicateConflict object Property duplicateConflict: The handling method for conflicts between objects with the same name.
RestoreDir object Property restoreDir: The restore directory.
RestoreHome object Property restoreHome: Database Program Directory.
RestoreObjects object Property restoreObjects: The objects to restore.
RestoreTime object Property restoreTime: The point-in-time for the restore, specified as a UNIX timestamp in milliseconds.
StartTask object Property startTask: Start restore task after creating a recovery task.

BackupPlanIdRequired

public object BackupPlanId { get; set; }
  • Type: object

Property backupPlanId: The ID of the backup plan.


DestinationEndpointInstanceTypeRequired

public object DestinationEndpointInstanceType { get; set; }
  • Type: object

Property destinationEndpointInstanceType: The type of the destination endpoint.

Valid values:

  • RDS: an ApsaraDB RDS instance.
  • ECS: a self-managed database hosted on an ECS instance.
  • Express: a database connected over a leased line, VPN Gateway, or Smart Access Gateway.
  • Agent: a database connected via a backup gateway.
  • DDS: an ApsaraDB for MongoDB (DDS) instance.
  • Other: a database connected over the internet by using a public IP address and port.
  • dg: a self-managed database without a public endpoint, connected via Database Gateway.

RestoreTaskNameRequired

public object RestoreTaskName { get; set; }
  • Type: object

Property restoreTaskName: The name of the restoration task.


BackupGatewayIdOptional

public object BackupGatewayId { get; set; }
  • Type: object

Property backupGatewayId: The ID of the backup gateway.

NoteDestinationEndpointInstanceType if you set this parameter to agent, this parameter is required.


BackupSetIdOptional

public object BackupSetId { get; set; }
  • Type: object

Property backupSetId: The ID of the full backup set used for restoration, which is mutually exclusive to RestoreTime.


DestinationEndpointDatabaseNameOptional

public object DestinationEndpointDatabaseName { get; set; }
  • Type: object

Property destinationEndpointDatabaseName: The name of the RDS database.

Note When the database type is PostgreSQL or MongoDB, this parameter is required.


DestinationEndpointInstanceIdOptional

public object DestinationEndpointInstanceId { get; set; }
  • Type: object

Property destinationEndpointInstanceId: The ID of the ApsaraDB RDS instance to query.

NoteDestinationEndpointInstanceType if the value is RDS, ECS, DDS, or Express, this parameter is required.


DestinationEndpointIpOptional

public object DestinationEndpointIp { get; set; }
  • Type: object

Property destinationEndpointIp: The endpoint used to connect to the database.

NoteDestinationEndpointInstanceType is express, agent, or other. This parameter is required.


DestinationEndpointOracleSidOptional

public object DestinationEndpointOracleSid { get; set; }
  • Type: object

Property destinationEndpointOracleSid: The SID of the Oracle instance.

Note This parameter is required if the database type is Oracle.


DestinationEndpointPasswordOptional

public object DestinationEndpointPassword { get; set; }
  • Type: object

Property destinationEndpointPassword: The password for the destination database account.

This parameter is optional if the database engine is Redis, or if DestinationEndpointInstanceType is set to Agent and the database engine is MSSQL. In other scenarios, this parameter is required.


DestinationEndpointPortOptional

public object DestinationEndpointPort { get; set; }
  • Type: object

Property destinationEndpointPort: The port that is used to access the database of the primary MySQL server.

NoteDestinationEndpointInstanceType is in the format of express, agent, other, or ECS. This parameter is required.


DestinationEndpointRegionOptional

public object DestinationEndpointRegion { get; set; }
  • Type: object

Property destinationEndpointRegion: The region of the database.

NoteDestinationEndpointInstanceType for RDS, ECS, DDS, Express, or Agent, this parameter is required.


DestinationEndpointUserNameOptional

public object DestinationEndpointUserName { get; set; }
  • Type: object

Property destinationEndpointUserName: The username for the destination database account.

This parameter is optional if the database engine is Redis, or if DestinationEndpointInstanceType is set to Agent and the database engine is MSSQL. In other scenarios, this parameter is required.


DuplicateConflictOptional

public object DuplicateConflict { get; set; }
  • Type: object

Property duplicateConflict: The handling method for conflicts between objects with the same name.

Valid values: failure: The object with the same name fails (default). renamenew: renames an object with the same name.


RestoreDirOptional

public object RestoreDir { get; set; }
  • Type: object

Property restoreDir: The restore directory.

This parameter is required if DestinationEndpointInstanceType is set to Agent and the database type is MySQL.


RestoreHomeOptional

public object RestoreHome { get; set; }
  • Type: object

Property restoreHome: Database Program Directory.


RestoreObjectsOptional

public object RestoreObjects { get; set; }
  • Type: object

Property restoreObjects: The objects to restore.

  • This parameter is optional if DestinationEndpointInstanceType is set to Agent. In other scenarios, this parameter is required.
  • The value must be a JSON string in the following format: [{ "DBName": "source_database_name", "NewDBName": "destination_database_name" }]

You can use this API operation to restore data only at the database level. To restore data at the table level, log on to the console.


RestoreTimeOptional

public object RestoreTime { get; set; }
  • Type: object

Property restoreTime: The point-in-time for the restore, specified as a UNIX timestamp in milliseconds.


StartTaskOptional

public object StartTask { get; set; }
  • Type: object

Property startTask: Start restore task after creating a recovery task.