Skip to content

RestoreTaskProps

Properties for defining a RestoreTask.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkdbs"
&alicloudroscdkdbs.RestoreTaskProps {
    BackupPlanId: interface{},
    DestinationEndpointInstanceType: interface{},
    RestoreTaskName: interface{},
    BackupGatewayId: interface{},
    BackupSetId: interface{},
    DestinationEndpointDatabaseName: interface{},
    DestinationEndpointInstanceId: interface{},
    DestinationEndpointIp: interface{},
    DestinationEndpointOracleSid: interface{},
    DestinationEndpointPassword: interface{},
    DestinationEndpointPort: interface{},
    DestinationEndpointRegion: interface{},
    DestinationEndpointUserName: interface{},
    DuplicateConflict: interface{},
    RestoreDir: interface{},
    RestoreHome: interface{},
    RestoreObjects: interface{},
    RestoreTime: interface{},
    StartTask: interface{},
}

Properties

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

BackupPlanIdRequired

BackupPlanId interface{}
  • Type: interface{}

Property backupPlanId: The ID of the backup plan.


DestinationEndpointInstanceTypeRequired

DestinationEndpointInstanceType interface{}
  • Type: interface{}

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

RestoreTaskName interface{}
  • Type: interface{}

Property restoreTaskName: The name of the restoration task.


BackupGatewayIdOptional

BackupGatewayId interface{}
  • Type: interface{}

Property backupGatewayId: The ID of the backup gateway.

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


BackupSetIdOptional

BackupSetId interface{}
  • Type: interface{}

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


DestinationEndpointDatabaseNameOptional

DestinationEndpointDatabaseName interface{}
  • Type: interface{}

Property destinationEndpointDatabaseName: The name of the RDS database.

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


DestinationEndpointInstanceIdOptional

DestinationEndpointInstanceId interface{}
  • Type: interface{}

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

DestinationEndpointIp interface{}
  • Type: interface{}

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

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


DestinationEndpointOracleSidOptional

DestinationEndpointOracleSid interface{}
  • Type: interface{}

Property destinationEndpointOracleSid: The SID of the Oracle instance.

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


DestinationEndpointPasswordOptional

DestinationEndpointPassword interface{}
  • Type: interface{}

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

DestinationEndpointPort interface{}
  • Type: interface{}

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

DestinationEndpointRegion interface{}
  • Type: interface{}

Property destinationEndpointRegion: The region of the database.

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


DestinationEndpointUserNameOptional

DestinationEndpointUserName interface{}
  • Type: interface{}

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

DuplicateConflict interface{}
  • Type: interface{}

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

RestoreDir interface{}
  • Type: interface{}

Property restoreDir: The restore directory.

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


RestoreHomeOptional

RestoreHome interface{}
  • Type: interface{}

Property restoreHome: Database Program Directory.


RestoreObjectsOptional

RestoreObjects interface{}
  • Type: interface{}

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

RestoreTime interface{}
  • Type: interface{}

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


StartTaskOptional

StartTask interface{}
  • Type: interface{}

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