Skip to content

RestoreTaskProps

Properties for defining a RestoreTask.

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

Initializer

import { RestoreTaskProps } from '@alicloud/ros-cdk-dbs'
const restoreTaskProps: RestoreTaskProps = { ... }

Properties

Name Type Description
backupPlanId string | @alicloud/ros-cdk-core.IResolvable Property backupPlanId: The ID of the backup plan.
destinationEndpointInstanceType string | @alicloud/ros-cdk-core.IResolvable Property destinationEndpointInstanceType: The type of the destination endpoint.
restoreTaskName string | @alicloud/ros-cdk-core.IResolvable Property restoreTaskName: The name of the restoration task.
backupGatewayId number | @alicloud/ros-cdk-core.IResolvable Property backupGatewayId: The ID of the backup gateway.
backupSetId string | @alicloud/ros-cdk-core.IResolvable Property backupSetId: The ID of the full backup set used for restoration, which is mutually exclusive to RestoreTime.
destinationEndpointDatabaseName string | @alicloud/ros-cdk-core.IResolvable Property destinationEndpointDatabaseName: The name of the RDS database.
destinationEndpointInstanceId string | @alicloud/ros-cdk-core.IResolvable Property destinationEndpointInstanceId: The ID of the ApsaraDB RDS instance to query.
destinationEndpointIp string | @alicloud/ros-cdk-core.IResolvable Property destinationEndpointIp: The endpoint used to connect to the database.
destinationEndpointOracleSid string | @alicloud/ros-cdk-core.IResolvable Property destinationEndpointOracleSid: The SID of the Oracle instance.
destinationEndpointPassword string | @alicloud/ros-cdk-core.IResolvable Property destinationEndpointPassword: The password for the destination database account.
destinationEndpointPort number | @alicloud/ros-cdk-core.IResolvable Property destinationEndpointPort: The port that is used to access the database of the primary MySQL server.
destinationEndpointRegion string | @alicloud/ros-cdk-core.IResolvable Property destinationEndpointRegion: The region of the database.
destinationEndpointUserName string | @alicloud/ros-cdk-core.IResolvable Property destinationEndpointUserName: The username for the destination database account.
duplicateConflict string | @alicloud/ros-cdk-core.IResolvable Property duplicateConflict: The handling method for conflicts between objects with the same name.
restoreDir string | @alicloud/ros-cdk-core.IResolvable Property restoreDir: The restore directory.
restoreHome string | @alicloud/ros-cdk-core.IResolvable Property restoreHome: Database Program Directory.
restoreObjects string | @alicloud/ros-cdk-core.IResolvable Property restoreObjects: The objects to restore.
restoreTime number | @alicloud/ros-cdk-core.IResolvable Property restoreTime: The point-in-time for the restore, specified as a UNIX timestamp in milliseconds.
startTask boolean | @alicloud/ros-cdk-core.IResolvable Property startTask: Start restore task after creating a recovery task.

backupPlanIdRequired

public readonly backupPlanId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property backupPlanId: The ID of the backup plan.


destinationEndpointInstanceTypeRequired

public readonly destinationEndpointInstanceType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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 readonly restoreTaskName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property restoreTaskName: The name of the restoration task.


backupGatewayIdOptional

public readonly backupGatewayId: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property backupGatewayId: The ID of the backup gateway.

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


backupSetIdOptional

public readonly backupSetId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


destinationEndpointDatabaseNameOptional

public readonly destinationEndpointDatabaseName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property destinationEndpointDatabaseName: The name of the RDS database.

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


destinationEndpointInstanceIdOptional

public readonly destinationEndpointInstanceId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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 readonly destinationEndpointIp: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

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


destinationEndpointOracleSidOptional

public readonly destinationEndpointOracleSid: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property destinationEndpointOracleSid: The SID of the Oracle instance.

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


destinationEndpointPasswordOptional

public readonly destinationEndpointPassword: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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 readonly destinationEndpointPort: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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 readonly destinationEndpointRegion: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property destinationEndpointRegion: The region of the database.

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


destinationEndpointUserNameOptional

public readonly destinationEndpointUserName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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 readonly duplicateConflict: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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 readonly restoreDir: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property restoreDir: The restore directory.

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


restoreHomeOptional

public readonly restoreHome: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property restoreHome: Database Program Directory.


restoreObjectsOptional

public readonly restoreObjects: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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 readonly restoreTime: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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


startTaskOptional

public readonly startTask: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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