Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

NasBackupPlan

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

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-testAccHBRNas";
        var defaultVault = new AliCloud.Hbr.Vault("defaultVault", new AliCloud.Hbr.VaultArgs
        {
            VaultName = name,
        });
        var defaultFileSystem = new AliCloud.Nas.FileSystem("defaultFileSystem", new AliCloud.Nas.FileSystemArgs
        {
            ProtocolType = "NFS",
            StorageType = "Performance",
            Description = name,
            EncryptType = 1,
        });
        var defaultFileSystems = defaultFileSystem.Description.Apply(description => AliCloud.Nas.GetFileSystems.Invoke(new AliCloud.Nas.GetFileSystemsInvokeArgs
        {
            ProtocolType = "NFS",
            DescriptionRegex = description,
        }));
        var defaultNasBackupPlan = new AliCloud.Hbr.NasBackupPlan("defaultNasBackupPlan", new AliCloud.Hbr.NasBackupPlanArgs
        {
            NasBackupPlanName = name,
            FileSystemId = defaultFileSystem.Id,
            Schedule = "I|1602673264|PT2H",
            BackupType = "COMPLETE",
            VaultId = defaultVault.Id,
            CreateTime = defaultFileSystems.Apply(defaultFileSystems => defaultFileSystems.Systems?[0]?.CreateTime),
            Retention = "2",
            Paths = 
            {
                "/",
            },
        }, new CustomResourceOptions
        {
            DependsOn = 
            {
                "alicloud_nas_file_system.default",
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-testAccHBRNas"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultVault, err := hbr.NewVault(ctx, "defaultVault", &hbr.VaultArgs{
			VaultName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultFileSystem, err := nas.NewFileSystem(ctx, "defaultFileSystem", &nas.FileSystemArgs{
			ProtocolType: pulumi.String("NFS"),
			StorageType:  pulumi.String("Performance"),
			Description:  pulumi.String(name),
			EncryptType:  pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewNasBackupPlan(ctx, "defaultNasBackupPlan", &hbr.NasBackupPlanArgs{
			NasBackupPlanName: pulumi.String(name),
			FileSystemId:      defaultFileSystem.ID(),
			Schedule:          pulumi.String("I|1602673264|PT2H"),
			BackupType:        pulumi.String("COMPLETE"),
			VaultId:           defaultVault.ID(),
			CreateTime: defaultFileSystems.ApplyT(func(defaultFileSystems nas.GetFileSystemsResult) (string, error) {
				return defaultFileSystems.Systems[0].CreateTime, nil
			}).(pulumi.StringOutput),
			Retention: pulumi.String("2"),
			Paths: pulumi.StringArray{
				pulumi.String("/"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			pulumi.Resource("alicloud_nas_file_system.default"),
		}))
		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.Vault;
import com.pulumi.alicloud.hbr.VaultArgs;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import com.pulumi.alicloud.nas.NasFunctions;
import com.pulumi.alicloud.dfs.inputs.GetFileSystemsArgs;
import com.pulumi.alicloud.hbr.NasBackupPlan;
import com.pulumi.alicloud.hbr.NasBackupPlanArgs;
import com.pulumi.resources.CustomResourceOptions;
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 config = ctx.config();
        final var name = config.get("name").orElse("tf-testAccHBRNas");
        var defaultVault = new Vault("defaultVault", VaultArgs.builder()        
            .vaultName(name)
            .build());

        var defaultFileSystem = new FileSystem("defaultFileSystem", FileSystemArgs.builder()        
            .protocolType("NFS")
            .storageType("Performance")
            .description(name)
            .encryptType("1")
            .build());

        final var defaultFileSystems = NasFunctions.getFileSystems(GetFileSystemsArgs.builder()
            .protocolType("NFS")
            .descriptionRegex(defaultFileSystem.description())
            .build());

        var defaultNasBackupPlan = new NasBackupPlan("defaultNasBackupPlan", NasBackupPlanArgs.builder()        
            .nasBackupPlanName(name)
            .fileSystemId(defaultFileSystem.id())
            .schedule("I|1602673264|PT2H")
            .backupType("COMPLETE")
            .vaultId(defaultVault.id())
            .createTime(defaultFileSystems.applyValue(getFileSystemsResult -> getFileSystemsResult).applyValue(defaultFileSystems -> defaultFileSystems.applyValue(getFileSystemsResult -> getFileSystemsResult.systems()[0].createTime())))
            .retention("2")
            .paths("/")
            .build(), CustomResourceOptions.builder()
                .dependsOn("alicloud_nas_file_system.default")
                .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-testAccHBRNas"
default_vault = alicloud.hbr.Vault("defaultVault", vault_name=name)
default_file_system = alicloud.nas.FileSystem("defaultFileSystem",
    protocol_type="NFS",
    storage_type="Performance",
    description=name,
    encrypt_type=1)
default_file_systems = default_file_system.description.apply(lambda description: alicloud.nas.get_file_systems_output(protocol_type="NFS",
    description_regex=description))
default_nas_backup_plan = alicloud.hbr.NasBackupPlan("defaultNasBackupPlan",
    nas_backup_plan_name=name,
    file_system_id=default_file_system.id,
    schedule="I|1602673264|PT2H",
    backup_type="COMPLETE",
    vault_id=default_vault.id,
    create_time=default_file_systems.systems[0].create_time,
    retention="2",
    paths=["/"],
    opts=pulumi.ResourceOptions(depends_on=["alicloud_nas_file_system.default"]))
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "tf-testAccHBRNas";
const defaultVault = new alicloud.hbr.Vault("defaultVault", {vaultName: name});
const defaultFileSystem = new alicloud.nas.FileSystem("defaultFileSystem", {
    protocolType: "NFS",
    storageType: "Performance",
    description: name,
    encryptType: 1,
});
const defaultFileSystems = defaultFileSystem.description.apply(description => alicloud.nas.getFileSystemsOutput({
    protocolType: "NFS",
    descriptionRegex: description,
}));
const defaultNasBackupPlan = new alicloud.hbr.NasBackupPlan("defaultNasBackupPlan", {
    nasBackupPlanName: name,
    fileSystemId: defaultFileSystem.id,
    schedule: "I|1602673264|PT2H",
    backupType: "COMPLETE",
    vaultId: defaultVault.id,
    createTime: defaultFileSystems.apply(defaultFileSystems => defaultFileSystems.systems?[0]?.createTime),
    retention: "2",
    paths: ["/"],
}, {
    dependsOn: ["alicloud_nas_file_system.default"],
});
configuration:
  name:
    type: string
    default: tf-testAccHBRNas
resources:
  defaultVault:
    type: alicloud:hbr:Vault
    properties:
      vaultName: ${name}
  defaultFileSystem:
    type: alicloud:nas:FileSystem
    properties:
      protocolType: NFS
      storageType: Performance
      description: ${name}
      encryptType: 1
  defaultNasBackupPlan:
    type: alicloud:hbr:NasBackupPlan
    properties:
      nasBackupPlanName: ${name}
      fileSystemId: ${defaultFileSystem.id}
      schedule: I|1602673264|PT2H
      backupType: COMPLETE
      vaultId: ${defaultVault.id}
      createTime: ${defaultFileSystems.systems[0].createTime}
      retention: 2
      paths:
        - /
    options:
      dependson:
        - alicloud_nas_file_system.default
variables:
  defaultFileSystems:
    Fn::Invoke:
      Function: alicloud:nas:getFileSystems
      Arguments:
        protocolType: NFS
        descriptionRegex: ${defaultFileSystem.description}

Create a NasBackupPlan Resource

new NasBackupPlan(name: string, args: NasBackupPlanArgs, opts?: CustomResourceOptions);
@overload
def NasBackupPlan(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  backup_type: Optional[str] = None,
                  create_time: Optional[str] = None,
                  disabled: Optional[bool] = None,
                  file_system_id: Optional[str] = None,
                  nas_backup_plan_name: Optional[str] = None,
                  options: Optional[str] = None,
                  paths: Optional[Sequence[str]] = None,
                  retention: Optional[str] = None,
                  schedule: Optional[str] = None,
                  vault_id: Optional[str] = None)
@overload
def NasBackupPlan(resource_name: str,
                  args: NasBackupPlanArgs,
                  opts: Optional[ResourceOptions] = None)
func NewNasBackupPlan(ctx *Context, name string, args NasBackupPlanArgs, opts ...ResourceOption) (*NasBackupPlan, error)
public NasBackupPlan(string name, NasBackupPlanArgs args, CustomResourceOptions? opts = null)
public NasBackupPlan(String name, NasBackupPlanArgs args)
public NasBackupPlan(String name, NasBackupPlanArgs args, CustomResourceOptions options)
type: alicloud:hbr:NasBackupPlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NasBackupPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args NasBackupPlanArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args NasBackupPlanArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NasBackupPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NasBackupPlanArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

NasBackupPlan Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The NasBackupPlan resource accepts the following input properties:

BackupType string

Backup type. Valid values: COMPLETE.

FileSystemId string

The File System ID of Nas.

NasBackupPlanName string

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.

Paths List<string>

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.

Retention string

Backup retention days, the minimum is 1.

Schedule string

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.

VaultId string

The ID of Backup vault.

CreateTime string

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

Disabled bool

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

Options string
BackupType string

Backup type. Valid values: COMPLETE.

FileSystemId string

The File System ID of Nas.

NasBackupPlanName string

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.

Paths []string

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.

Retention string

Backup retention days, the minimum is 1.

Schedule string

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.

VaultId string

The ID of Backup vault.

CreateTime string

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

Disabled bool

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

Options string
backupType String

Backup type. Valid values: COMPLETE.

fileSystemId String

The File System ID of Nas.

nasBackupPlanName String

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.

paths List<String>

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.

retention String

Backup retention days, the minimum is 1.

schedule String

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.

vaultId String

The ID of Backup vault.

createTime String

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

disabled Boolean

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

options String
backupType string

Backup type. Valid values: COMPLETE.

fileSystemId string

The File System ID of Nas.

nasBackupPlanName string

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.

paths string[]

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.

retention string

Backup retention days, the minimum is 1.

schedule string

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.

vaultId string

The ID of Backup vault.

createTime string

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

disabled boolean

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

options string
backup_type str

Backup type. Valid values: COMPLETE.

file_system_id str

The File System ID of Nas.

nas_backup_plan_name str

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.

paths Sequence[str]

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.

retention str

Backup retention days, the minimum is 1.

schedule str

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.

vault_id str

The ID of Backup vault.

create_time str

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

disabled bool

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

options str
backupType String

Backup type. Valid values: COMPLETE.

fileSystemId String

The File System ID of Nas.

nasBackupPlanName String

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.

paths List<String>

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.

retention String

Backup retention days, the minimum is 1.

schedule String

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.

vaultId String

The ID of Backup vault.

createTime String

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

disabled Boolean

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

options String

Outputs

All input properties are implicitly available as output properties. Additionally, the NasBackupPlan resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing NasBackupPlan Resource

Get an existing NasBackupPlan resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: NasBackupPlanState, opts?: CustomResourceOptions): NasBackupPlan
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backup_type: Optional[str] = None,
        create_time: Optional[str] = None,
        disabled: Optional[bool] = None,
        file_system_id: Optional[str] = None,
        nas_backup_plan_name: Optional[str] = None,
        options: Optional[str] = None,
        paths: Optional[Sequence[str]] = None,
        retention: Optional[str] = None,
        schedule: Optional[str] = None,
        vault_id: Optional[str] = None) -> NasBackupPlan
func GetNasBackupPlan(ctx *Context, name string, id IDInput, state *NasBackupPlanState, opts ...ResourceOption) (*NasBackupPlan, error)
public static NasBackupPlan Get(string name, Input<string> id, NasBackupPlanState? state, CustomResourceOptions? opts = null)
public static NasBackupPlan get(String name, Output<String> id, NasBackupPlanState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BackupType string

Backup type. Valid values: COMPLETE.

CreateTime string

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

Disabled bool

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

FileSystemId string

The File System ID of Nas.

NasBackupPlanName string

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.

Options string
Paths List<string>

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.

Retention string

Backup retention days, the minimum is 1.

Schedule string

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.

VaultId string

The ID of Backup vault.

BackupType string

Backup type. Valid values: COMPLETE.

CreateTime string

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

Disabled bool

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

FileSystemId string

The File System ID of Nas.

NasBackupPlanName string

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.

Options string
Paths []string

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.

Retention string

Backup retention days, the minimum is 1.

Schedule string

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.

VaultId string

The ID of Backup vault.

backupType String

Backup type. Valid values: COMPLETE.

createTime String

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

disabled Boolean

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

fileSystemId String

The File System ID of Nas.

nasBackupPlanName String

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.

options String
paths List<String>

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.

retention String

Backup retention days, the minimum is 1.

schedule String

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.

vaultId String

The ID of Backup vault.

backupType string

Backup type. Valid values: COMPLETE.

createTime string

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

disabled boolean

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

fileSystemId string

The File System ID of Nas.

nasBackupPlanName string

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.

options string
paths string[]

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.

retention string

Backup retention days, the minimum is 1.

schedule string

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.

vaultId string

The ID of Backup vault.

backup_type str

Backup type. Valid values: COMPLETE.

create_time str

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

disabled bool

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

file_system_id str

The File System ID of Nas.

nas_backup_plan_name str

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.

options str
paths Sequence[str]

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.

retention str

Backup retention days, the minimum is 1.

schedule str

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.

vault_id str

The ID of Backup vault.

backupType String

Backup type. Valid values: COMPLETE.

createTime String

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.

Deprecated:

Field 'create_time' has been deprecated from provider version 1.153.0.

disabled Boolean

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

fileSystemId String

The File System ID of Nas.

nasBackupPlanName String

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.

options String
paths List<String>

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.

retention String

Backup retention days, the minimum is 1.

schedule String

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.

vaultId String

The ID of Backup vault.

Import

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

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

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.