RestoreJobArgs

data class RestoreJobArgs(val crossAccountRoleName: Output<String>? = null, val crossAccountType: Output<String>? = null, val crossAccountUserId: Output<Int>? = null, val exclude: Output<String>? = null, val include: Output<String>? = null, val options: Output<String>? = null, val otsDetail: Output<RestoreJobOtsDetailArgs>? = null, val restoreJobId: Output<String>? = null, val restoreType: Output<String>? = null, val snapshotHash: Output<String>? = null, val snapshotId: Output<String>? = null, val sourceType: Output<String>? = null, val targetBucket: Output<String>? = null, val targetClientId: Output<String>? = null, val targetCreateTime: Output<String>? = null, val targetDataSourceId: Output<String>? = null, val targetFileSystemId: Output<String>? = null, val targetInstanceId: Output<String>? = null, val targetInstanceName: Output<String>? = null, val targetPath: Output<String>? = null, val targetPrefix: Output<String>? = null, val targetTableName: Output<String>? = null, val targetTime: Output<String>? = null, val udmDetail: Output<String>? = null, val vaultId: Output<String>? = null) : ConvertibleToJava<RestoreJobArgs>

Provides a Hybrid Backup Recovery (HBR) Restore Job resource. For information about Hybrid Backup Recovery (HBR) Restore Job and how to use it, see What is Restore Job.

NOTE: Available since v1.133.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = alicloud.hbr.getEcsBackupPlans({
nameRegex: "plan-tf-used-dont-delete",
});
const defaultGetOssBackupPlans = alicloud.hbr.getOssBackupPlans({
nameRegex: "plan-tf-used-dont-delete",
});
const defaultGetNasBackupPlans = alicloud.hbr.getNasBackupPlans({
nameRegex: "plan-tf-used-dont-delete",
});
const ecsSnapshots = Promise.all([_default, _default])&#46;then(([_default, _default1]) => alicloud.hbr.getSnapshots({
sourceType: "ECS_FILE",
vaultId: _default.plans?.[0]?.vaultId,
instanceId: _default1.plans?.[0]?.instanceId,
}));
const ossSnapshots = Promise.all([defaultGetOssBackupPlans, defaultGetOssBackupPlans])&#46;then(([defaultGetOssBackupPlans, defaultGetOssBackupPlans1]) => alicloud.hbr.getSnapshots({
sourceType: "OSS",
vaultId: defaultGetOssBackupPlans.plans?.[0]?.vaultId,
bucket: defaultGetOssBackupPlans1.plans?.[0]?.bucket,
}));
const nasSnapshots = Promise.all([defaultGetNasBackupPlans, defaultGetNasBackupPlans, defaultGetNasBackupPlans])&#46;then(([defaultGetNasBackupPlans, defaultGetNasBackupPlans1, defaultGetNasBackupPlans2]) => alicloud.hbr.getSnapshots({
sourceType: "NAS",
vaultId: defaultGetNasBackupPlans.plans?.[0]?.vaultId,
fileSystemId: defaultGetNasBackupPlans1.plans?.[0]?.fileSystemId,
createTime: defaultGetNasBackupPlans2.plans?.[0]?.createTime,
}));
const nasJob = new alicloud.hbr.RestoreJob("nasJob", {
snapshotHash: nasSnapshots.then(nasSnapshots => nasSnapshots.snapshots?.[0]?.snapshotHash),
vaultId: defaultGetNasBackupPlans.then(defaultGetNasBackupPlans => defaultGetNasBackupPlans.plans?.[0]?.vaultId),
sourceType: "NAS",
restoreType: "NAS",
snapshotId: nasSnapshots.then(nasSnapshots => nasSnapshots.snapshots?.[0]?.snapshotId),
targetFileSystemId: defaultGetNasBackupPlans.then(defaultGetNasBackupPlans => defaultGetNasBackupPlans.plans?.[0]?.fileSystemId),
targetCreateTime: defaultGetNasBackupPlans.then(defaultGetNasBackupPlans => defaultGetNasBackupPlans.plans?.[0]?.createTime),
targetPath: "/",
options: " {\"includes\":[], \"excludes\":[]}\n",
});
const ossJob = new alicloud.hbr.RestoreJob("ossJob", {
snapshotHash: ossSnapshots.then(ossSnapshots => ossSnapshots.snapshots?.[0]?.snapshotHash),
vaultId: defaultGetOssBackupPlans.then(defaultGetOssBackupPlans => defaultGetOssBackupPlans.plans?.[0]?.vaultId),
sourceType: "OSS",
restoreType: "OSS",
snapshotId: ossSnapshots.then(ossSnapshots => ossSnapshots.snapshots?.[0]?.snapshotId),
targetBucket: defaultGetOssBackupPlans.then(defaultGetOssBackupPlans => defaultGetOssBackupPlans.plans?.[0]?.bucket),
targetPrefix: "",
options: " {\"includes\":[], \"excludes\":[]}\n",
});
const ecsJob = new alicloud.hbr.RestoreJob("ecsJob", {
snapshotHash: ecsSnapshots.then(ecsSnapshots => ecsSnapshots.snapshots?.[0]?.snapshotHash),
vaultId: _default.then(_default => _default.plans?.[0]?.vaultId),
sourceType: "ECS_FILE",
restoreType: "ECS_FILE",
snapshotId: ecsSnapshots.then(ecsSnapshots => ecsSnapshots.snapshots?.[0]?.snapshotId),
targetInstanceId: _default.then(_default => _default.plans?.[0]?.instanceId),
targetPath: "/",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.hbr.get_ecs_backup_plans(name_regex="plan-tf-used-dont-delete")
default_get_oss_backup_plans = alicloud.hbr.get_oss_backup_plans(name_regex="plan-tf-used-dont-delete")
default_get_nas_backup_plans = alicloud.hbr.get_nas_backup_plans(name_regex="plan-tf-used-dont-delete")
ecs_snapshots = alicloud.hbr.get_snapshots(source_type="ECS_FILE",
vault_id=default.plans[0].vault_id,
instance_id=default.plans[0].instance_id)
oss_snapshots = alicloud.hbr.get_snapshots(source_type="OSS",
vault_id=default_get_oss_backup_plans.plans[0].vault_id,
bucket=default_get_oss_backup_plans.plans[0].bucket)
nas_snapshots = alicloud.hbr.get_snapshots(source_type="NAS",
vault_id=default_get_nas_backup_plans.plans[0].vault_id,
file_system_id=default_get_nas_backup_plans.plans[0].file_system_id,
create_time=default_get_nas_backup_plans.plans[0].create_time)
nas_job = alicloud.hbr.RestoreJob("nasJob",
snapshot_hash=nas_snapshots.snapshots[0].snapshot_hash,
vault_id=default_get_nas_backup_plans.plans[0].vault_id,
source_type="NAS",
restore_type="NAS",
snapshot_id=nas_snapshots.snapshots[0].snapshot_id,
target_file_system_id=default_get_nas_backup_plans.plans[0].file_system_id,
target_create_time=default_get_nas_backup_plans.plans[0].create_time,
target_path="/",
options=" {\"includes\":[], \"excludes\":[]}\n")
oss_job = alicloud.hbr.RestoreJob("ossJob",
snapshot_hash=oss_snapshots.snapshots[0].snapshot_hash,
vault_id=default_get_oss_backup_plans.plans[0].vault_id,
source_type="OSS",
restore_type="OSS",
snapshot_id=oss_snapshots.snapshots[0].snapshot_id,
target_bucket=default_get_oss_backup_plans.plans[0].bucket,
target_prefix="",
options=" {\"includes\":[], \"excludes\":[]}\n")
ecs_job = alicloud.hbr.RestoreJob("ecsJob",
snapshot_hash=ecs_snapshots.snapshots[0].snapshot_hash,
vault_id=default.plans[0].vault_id,
source_type="ECS_FILE",
restore_type="ECS_FILE",
snapshot_id=ecs_snapshots.snapshots[0].snapshot_id,
target_instance_id=default.plans[0].instance_id,
target_path="/")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Hbr.GetEcsBackupPlans.Invoke(new()
{
NameRegex = "plan-tf-used-dont-delete",
});
var defaultGetOssBackupPlans = AliCloud.Hbr.GetOssBackupPlans.Invoke(new()
{
NameRegex = "plan-tf-used-dont-delete",
});
var defaultGetNasBackupPlans = AliCloud.Hbr.GetNasBackupPlans.Invoke(new()
{
NameRegex = "plan-tf-used-dont-delete",
});
var ecsSnapshots = AliCloud.Hbr.GetSnapshots.Invoke(new()
{
SourceType = "ECS_FILE",
VaultId = @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.VaultId),
InstanceId = @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.InstanceId),
});
var ossSnapshots = AliCloud.Hbr.GetSnapshots.Invoke(new()
{
SourceType = "OSS",
VaultId = defaultGetOssBackupPlans.Apply(getOssBackupPlansResult => getOssBackupPlansResult.Plans[0]?.VaultId),
Bucket = defaultGetOssBackupPlans.Apply(getOssBackupPlansResult => getOssBackupPlansResult.Plans[0]?.Bucket),
});
var nasSnapshots = AliCloud.Hbr.GetSnapshots.Invoke(new()
{
SourceType = "NAS",
VaultId = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.VaultId),
FileSystemId = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.FileSystemId),
CreateTime = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.CreateTime),
});
var nasJob = new AliCloud.Hbr.RestoreJob("nasJob", new()
{
SnapshotHash = nasSnapshots.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.SnapshotHash),
VaultId = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.VaultId),
SourceType = "NAS",
RestoreType = "NAS",
SnapshotId = nasSnapshots.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.SnapshotId),
TargetFileSystemId = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.FileSystemId),
TargetCreateTime = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.CreateTime),
TargetPath = "/",
Options = @" {""includes"":[], ""excludes"":[]}
",
});
var ossJob = new AliCloud.Hbr.RestoreJob("ossJob", new()
{
SnapshotHash = ossSnapshots.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.SnapshotHash),
VaultId = defaultGetOssBackupPlans.Apply(getOssBackupPlansResult => getOssBackupPlansResult.Plans[0]?.VaultId),
SourceType = "OSS",
RestoreType = "OSS",
SnapshotId = ossSnapshots.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.SnapshotId),
TargetBucket = defaultGetOssBackupPlans.Apply(getOssBackupPlansResult => getOssBackupPlansResult.Plans[0]?.Bucket),
TargetPrefix = "",
Options = @" {""includes"":[], ""excludes"":[]}
",
});
var ecsJob = new AliCloud.Hbr.RestoreJob("ecsJob", new()
{
SnapshotHash = ecsSnapshots.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.SnapshotHash),
VaultId = @default.Apply(@default => @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.VaultId)),
SourceType = "ECS_FILE",
RestoreType = "ECS_FILE",
SnapshotId = ecsSnapshots.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.SnapshotId),
TargetInstanceId = @default.Apply(@default => @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.InstanceId)),
TargetPath = "/",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
}, nil)
if err != nil {
return err
}
defaultGetOssBackupPlans, err := hbr.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
}, nil)
if err != nil {
return err
}
defaultGetNasBackupPlans, err := hbr.GetNasBackupPlans(ctx, &hbr.GetNasBackupPlansArgs{
NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
}, nil)
if err != nil {
return err
}
ecsSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
SourceType: "ECS_FILE",
VaultId: _default.Plans[0].VaultId,
InstanceId: pulumi.StringRef(_default.Plans[0].InstanceId),
}, nil)
if err != nil {
return err
}
ossSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
SourceType: "OSS",
VaultId: defaultGetOssBackupPlans.Plans[0].VaultId,
Bucket: pulumi.StringRef(defaultGetOssBackupPlans.Plans[0].Bucket),
}, nil)
if err != nil {
return err
}
nasSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
SourceType: "NAS",
VaultId: defaultGetNasBackupPlans.Plans[0].VaultId,
FileSystemId: pulumi.StringRef(defaultGetNasBackupPlans.Plans[0].FileSystemId),
CreateTime: pulumi.StringRef(defaultGetNasBackupPlans.Plans[0].CreateTime),
}, nil)
if err != nil {
return err
}
_, err = hbr.NewRestoreJob(ctx, "nasJob", &hbr.RestoreJobArgs{
SnapshotHash: pulumi.String(nasSnapshots.Snapshots[0].SnapshotHash),
VaultId: pulumi.String(defaultGetNasBackupPlans.Plans[0].VaultId),
SourceType: pulumi.String("NAS"),
RestoreType: pulumi.String("NAS"),
SnapshotId: pulumi.String(nasSnapshots.Snapshots[0].SnapshotId),
TargetFileSystemId: pulumi.String(defaultGetNasBackupPlans.Plans[0].FileSystemId),
TargetCreateTime: pulumi.String(defaultGetNasBackupPlans.Plans[0].CreateTime),
TargetPath: pulumi.String("/"),
Options: pulumi.String(" {\"includes\":[], \"excludes\":[]}\n"),
})
if err != nil {
return err
}
_, err = hbr.NewRestoreJob(ctx, "ossJob", &hbr.RestoreJobArgs{
SnapshotHash: pulumi.String(ossSnapshots.Snapshots[0].SnapshotHash),
VaultId: pulumi.String(defaultGetOssBackupPlans.Plans[0].VaultId),
SourceType: pulumi.String("OSS"),
RestoreType: pulumi.String("OSS"),
SnapshotId: pulumi.String(ossSnapshots.Snapshots[0].SnapshotId),
TargetBucket: pulumi.String(defaultGetOssBackupPlans.Plans[0].Bucket),
TargetPrefix: pulumi.String(""),
Options: pulumi.String(" {\"includes\":[], \"excludes\":[]}\n"),
})
if err != nil {
return err
}
_, err = hbr.NewRestoreJob(ctx, "ecsJob", &hbr.RestoreJobArgs{
SnapshotHash: pulumi.String(ecsSnapshots.Snapshots[0].SnapshotHash),
VaultId: pulumi.String(_default.Plans[0].VaultId),
SourceType: pulumi.String("ECS_FILE"),
RestoreType: pulumi.String("ECS_FILE"),
SnapshotId: pulumi.String(ecsSnapshots.Snapshots[0].SnapshotId),
TargetInstanceId: pulumi.String(_default.Plans[0].InstanceId),
TargetPath: pulumi.String("/"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.hbr.HbrFunctions;
import com.pulumi.alicloud.hbr.inputs.GetEcsBackupPlansArgs;
import com.pulumi.alicloud.hbr.inputs.GetOssBackupPlansArgs;
import com.pulumi.alicloud.hbr.inputs.GetNasBackupPlansArgs;
import com.pulumi.alicloud.hbr.inputs.GetSnapshotsArgs;
import com.pulumi.alicloud.hbr.RestoreJob;
import com.pulumi.alicloud.hbr.RestoreJobArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = HbrFunctions.getEcsBackupPlans(GetEcsBackupPlansArgs.builder()
.nameRegex("plan-tf-used-dont-delete")
.build());
final var defaultGetOssBackupPlans = HbrFunctions.getOssBackupPlans(GetOssBackupPlansArgs.builder()
.nameRegex("plan-tf-used-dont-delete")
.build());
final var defaultGetNasBackupPlans = HbrFunctions.getNasBackupPlans(GetNasBackupPlansArgs.builder()
.nameRegex("plan-tf-used-dont-delete")
.build());
final var ecsSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
.sourceType("ECS_FILE")
.vaultId(default_.plans()[0].vaultId())
.instanceId(default_.plans()[0].instanceId())
.build());
final var ossSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
.sourceType("OSS")
.vaultId(defaultGetOssBackupPlans.plans()[0].vaultId())
.bucket(defaultGetOssBackupPlans.plans()[0].bucket())
.build());
final var nasSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
.sourceType("NAS")
.vaultId(defaultGetNasBackupPlans.plans()[0].vaultId())
.fileSystemId(defaultGetNasBackupPlans.plans()[0].fileSystemId())
.createTime(defaultGetNasBackupPlans.plans()[0].createTime())
.build());
var nasJob = new RestoreJob("nasJob", RestoreJobArgs.builder()
.snapshotHash(nasSnapshots.snapshots()[0].snapshotHash())
.vaultId(defaultGetNasBackupPlans.plans()[0].vaultId())
.sourceType("NAS")
.restoreType("NAS")
.snapshotId(nasSnapshots.snapshots()[0].snapshotId())
.targetFileSystemId(defaultGetNasBackupPlans.plans()[0].fileSystemId())
.targetCreateTime(defaultGetNasBackupPlans.plans()[0].createTime())
.targetPath("/")
.options("""
{"includes":[], "excludes":[]}
""")
.build());
var ossJob = new RestoreJob("ossJob", RestoreJobArgs.builder()
.snapshotHash(ossSnapshots.snapshots()[0].snapshotHash())
.vaultId(defaultGetOssBackupPlans.plans()[0].vaultId())
.sourceType("OSS")
.restoreType("OSS")
.snapshotId(ossSnapshots.snapshots()[0].snapshotId())
.targetBucket(defaultGetOssBackupPlans.plans()[0].bucket())
.targetPrefix("")
.options("""
{"includes":[], "excludes":[]}
""")
.build());
var ecsJob = new RestoreJob("ecsJob", RestoreJobArgs.builder()
.snapshotHash(ecsSnapshots.snapshots()[0].snapshotHash())
.vaultId(default_.plans()[0].vaultId())
.sourceType("ECS_FILE")
.restoreType("ECS_FILE")
.snapshotId(ecsSnapshots.snapshots()[0].snapshotId())
.targetInstanceId(default_.plans()[0].instanceId())
.targetPath("/")
.build());
}
}
resources:
nasJob:
type: alicloud:hbr:RestoreJob
properties:
snapshotHash: ${nasSnapshots.snapshots[0].snapshotHash}
vaultId: ${defaultGetNasBackupPlans.plans[0].vaultId}
sourceType: NAS
restoreType: NAS
snapshotId: ${nasSnapshots.snapshots[0].snapshotId}
targetFileSystemId: ${defaultGetNasBackupPlans.plans[0].fileSystemId}
targetCreateTime: ${defaultGetNasBackupPlans.plans[0].createTime}
targetPath: /
options: |2
{"includes":[], "excludes":[]}
ossJob:
type: alicloud:hbr:RestoreJob
properties:
snapshotHash: ${ossSnapshots.snapshots[0].snapshotHash}
vaultId: ${defaultGetOssBackupPlans.plans[0].vaultId}
sourceType: OSS
restoreType: OSS
snapshotId: ${ossSnapshots.snapshots[0].snapshotId}
targetBucket: ${defaultGetOssBackupPlans.plans[0].bucket}
targetPrefix: ""
options: |2
{"includes":[], "excludes":[]}
ecsJob:
type: alicloud:hbr:RestoreJob
properties:
snapshotHash: ${ecsSnapshots.snapshots[0].snapshotHash}
vaultId: ${default.plans[0].vaultId}
sourceType: ECS_FILE
restoreType: ECS_FILE
snapshotId: ${ecsSnapshots.snapshots[0].snapshotId}
targetInstanceId: ${default.plans[0].instanceId}
targetPath: /
variables:
default:
fn::invoke:
function: alicloud:hbr:getEcsBackupPlans
arguments:
nameRegex: plan-tf-used-dont-delete
defaultGetOssBackupPlans:
fn::invoke:
function: alicloud:hbr:getOssBackupPlans
arguments:
nameRegex: plan-tf-used-dont-delete
defaultGetNasBackupPlans:
fn::invoke:
function: alicloud:hbr:getNasBackupPlans
arguments:
nameRegex: plan-tf-used-dont-delete
ecsSnapshots:
fn::invoke:
function: alicloud:hbr:getSnapshots
arguments:
sourceType: ECS_FILE
vaultId: ${default.plans[0].vaultId}
instanceId: ${default.plans[0].instanceId}
ossSnapshots:
fn::invoke:
function: alicloud:hbr:getSnapshots
arguments:
sourceType: OSS
vaultId: ${defaultGetOssBackupPlans.plans[0].vaultId}
bucket: ${defaultGetOssBackupPlans.plans[0].bucket}
nasSnapshots:
fn::invoke:
function: alicloud:hbr:getSnapshots
arguments:
sourceType: NAS
vaultId: ${defaultGetNasBackupPlans.plans[0].vaultId}
fileSystemId: ${defaultGetNasBackupPlans.plans[0].fileSystemId}
createTime: ${defaultGetNasBackupPlans.plans[0].createTime}

NOTE: This resource can only be created, cannot be modified or deleted. Therefore, any modification of the resource attribute will not affect exist resource.

Import

Hybrid Backup Recovery (HBR) Restore Job can be imported using the id. Format to <restore_job_id>:<restore_type>, e.g.

$ pulumi import alicloud:hbr/restoreJob:RestoreJob example your_restore_job_id:your_restore_type

Constructors

Link copied to clipboard
constructor(crossAccountRoleName: Output<String>? = null, crossAccountType: Output<String>? = null, crossAccountUserId: Output<Int>? = null, exclude: Output<String>? = null, include: Output<String>? = null, options: Output<String>? = null, otsDetail: Output<RestoreJobOtsDetailArgs>? = null, restoreJobId: Output<String>? = null, restoreType: Output<String>? = null, snapshotHash: Output<String>? = null, snapshotId: Output<String>? = null, sourceType: Output<String>? = null, targetBucket: Output<String>? = null, targetClientId: Output<String>? = null, targetCreateTime: Output<String>? = null, targetDataSourceId: Output<String>? = null, targetFileSystemId: Output<String>? = null, targetInstanceId: Output<String>? = null, targetInstanceName: Output<String>? = null, targetPath: Output<String>? = null, targetPrefix: Output<String>? = null, targetTableName: Output<String>? = null, targetTime: Output<String>? = null, udmDetail: Output<String>? = null, vaultId: Output<String>? = null)

Properties

Link copied to clipboard
val crossAccountRoleName: Output<String>? = null

The role name created in the original account RAM backup by the cross account managed by the current account.

Link copied to clipboard
val crossAccountType: Output<String>? = null

The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.

Link copied to clipboard
val crossAccountUserId: Output<Int>? = null

The original account ID of the cross account backup managed by the current account.

Link copied to clipboard
val exclude: Output<String>? = null

The exclude path. NOTE: Invalid while source_type equals OSS or NAS. It's a json string with format:["/excludePath], up to 255 characters. WARNING: If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

Link copied to clipboard
val include: Output<String>? = null

The include path. NOTE: Invalid while source_type equals OSS or NAS. It's a json string with format:["/includePath"], Up to 255 characters. WARNING: The field is required while source_type equals OTS_TABLE which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

Link copied to clipboard
val options: Output<String>? = null

Recovery options. NOTE: Required while source_type equals OSS or NAS, invalid while source_type equals ECS_FILE. It's a json string with format:"{"includes":[],"excludes":[]}",. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: {"UI_TargetTime":1650032529018}.

Link copied to clipboard
val otsDetail: Output<RestoreJobOtsDetailArgs>? = null

The details about the Tablestore instance. See the following Block ots_detail.

Link copied to clipboard
val restoreJobId: Output<String>? = null

Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.

Link copied to clipboard
val restoreType: Output<String>? = null

The type of recovery destination. Valid values: ECS_FILE, NAS, OSS,OTS_TABLE,UDM_ECS_ROLLBACK. Note: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.

Link copied to clipboard
val snapshotHash: Output<String>? = null

The hashcode of Snapshot.

Link copied to clipboard
val snapshotId: Output<String>? = null

The ID of Snapshot.

Link copied to clipboard
val sourceType: Output<String>? = null

The type of data source. Valid values: ECS_FILE, NAS, OSS,OTS_TABLE,UDM_ECS.

Link copied to clipboard
val targetBucket: Output<String>? = null

The target name of OSS bucket. NOTE: Required while source_type equals OSS,

Link copied to clipboard
val targetClientId: Output<String>? = null

The target client ID.

Link copied to clipboard
val targetCreateTime: Output<String>? = null

The creation time of destination File System. NOTE: While source_type equals NAS, this parameter must be set. Note: The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z.

Link copied to clipboard
val targetDataSourceId: Output<String>? = null

The target data source ID.

Link copied to clipboard
val targetFileSystemId: Output<String>? = null

The ID of destination File System. NOTE: Required while source_type equals NAS

Link copied to clipboard
val targetInstanceId: Output<String>? = null

The target ID of ECS instance. NOTE: Required while source_type equals ECS_FILE

Link copied to clipboard
val targetInstanceName: Output<String>? = null

The name of the Table store instance to which you want to restore data.WARNING: Required while source_type equals OTS_TABLE.

Link copied to clipboard
val targetPath: Output<String>? = null

The target file path of (ECS) instance. WARNING: Required while source_type equals NAS or ECS_FILE, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

Link copied to clipboard
val targetPrefix: Output<String>? = null

The target prefix of the OSS object. WARNING: Required while source_type equals OSS. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

Link copied to clipboard
val targetTableName: Output<String>? = null

The name of the table that stores the restored data. WARNING: Required while source_type equals OTS_TABLE.

Link copied to clipboard
val targetTime: Output<String>? = null

The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. WARNING: Required while source_type equals OTS_TABLE. Note: The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.

Link copied to clipboard
val udmDetail: Output<String>? = null

The full machine backup details.

Link copied to clipboard
val vaultId: Output<String>? = null

The ID of backup vault.

Functions

Link copied to clipboard
open override fun toJava(): RestoreJobArgs