NasBackupPlanArgs

data class NasBackupPlanArgs(val backupType: Output<String>? = null, val createTime: Output<String>? = null, val crossAccountRoleName: Output<String>? = null, val crossAccountType: Output<String>? = null, val crossAccountUserId: Output<Int>? = null, val disabled: Output<Boolean>? = null, val fileSystemId: Output<String>? = null, val nasBackupPlanName: Output<String>? = null, val options: Output<String>? = null, val paths: Output<List<String>>? = null, val retention: Output<String>? = null, val schedule: Output<String>? = null, val vaultId: Output<String>? = null) : ConvertibleToJava<NasBackupPlanArgs>

Provides a HBR Nas Backup Plan resource. For information about HBR Nas Backup Plan and how to use it, see What is Nas Backup Plan.

NOTE: Available in v1.132.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.hbr.Vault;
import com.pulumi.alicloud.hbr.VaultArgs;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import com.pulumi.alicloud.hbr.NasBackupPlan;
import com.pulumi.alicloud.hbr.NasBackupPlanArgs;
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) {
var defaultVault = new Vault("defaultVault", VaultArgs.builder()
.vaultName("terraform-example2")
.build());
var defaultFileSystem = new FileSystem("defaultFileSystem", FileSystemArgs.builder()
.protocolType("NFS")
.storageType("Performance")
.description("terraform-example")
.encryptType("1")
.build());
var defaultNasBackupPlan = new NasBackupPlan("defaultNasBackupPlan", NasBackupPlanArgs.builder()
.nasBackupPlanName("terraform-example")
.fileSystemId(defaultFileSystem.id())
.schedule("I|1602673264|PT2H")
.backupType("COMPLETE")
.vaultId(defaultVault.id())
.retention("2")
.paths("/")
.build());
}
}

Import

HBR Nas Backup Plan can be imported using the id, e.g.

$ pulumi import alicloud:hbr/nasBackupPlan:NasBackupPlan example <id>

Constructors

Link copied to clipboard
fun NasBackupPlanArgs(backupType: Output<String>? = null, createTime: Output<String>? = null, crossAccountRoleName: Output<String>? = null, crossAccountType: Output<String>? = null, crossAccountUserId: Output<Int>? = null, disabled: Output<Boolean>? = null, fileSystemId: Output<String>? = null, nasBackupPlanName: Output<String>? = null, options: Output<String>? = null, paths: Output<List<String>>? = null, retention: Output<String>? = null, schedule: Output<String>? = null, vaultId: Output<String>? = null)

Functions

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

Properties

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

Backup type. Valid values: COMPLETE.

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

This field has been deprecated from provider version 1.153.0+. The creation time of NAS file system. Note The time format of the API adopts the ISO 8601, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z.

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 disabled: Output<Boolean>? = null

Whether to disable the backup task. Valid values: true, false.

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

The File System ID of Nas.

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

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

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

This parameter specifies whether to use Windows VSS to define a backup path.

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

List of backup path. Up to 65536 characters. e.g.["/home", "/var"]. Note You should at least specify a backup path, empty array not allowed here.

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

Backup retention days, the minimum is 1.

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

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.

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

The ID of Backup vault.