alicloud.hbr.NasBackupPlan
Explore with Pulumi AI
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
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var defaultVault = new AliCloud.Hbr.Vault("defaultVault", new()
{
VaultName = "terraform-example2",
});
var defaultFileSystem = new AliCloud.Nas.FileSystem("defaultFileSystem", new()
{
ProtocolType = "NFS",
StorageType = "Performance",
Description = "terraform-example",
EncryptType = 1,
});
var defaultNasBackupPlan = new AliCloud.Hbr.NasBackupPlan("defaultNasBackupPlan", new()
{
NasBackupPlanName = "terraform-example",
FileSystemId = defaultFileSystem.Id,
Schedule = "I|1602673264|PT2H",
BackupType = "COMPLETE",
VaultId = defaultVault.Id,
Retention = "2",
Paths = new[]
{
"/",
},
});
});
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"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultVault, err := hbr.NewVault(ctx, "defaultVault", &hbr.VaultArgs{
VaultName: pulumi.String("terraform-example2"),
})
if err != nil {
return err
}
defaultFileSystem, err := nas.NewFileSystem(ctx, "defaultFileSystem", &nas.FileSystemArgs{
ProtocolType: pulumi.String("NFS"),
StorageType: pulumi.String("Performance"),
Description: pulumi.String("terraform-example"),
EncryptType: pulumi.Int(1),
})
if err != nil {
return err
}
_, err = hbr.NewNasBackupPlan(ctx, "defaultNasBackupPlan", &hbr.NasBackupPlanArgs{
NasBackupPlanName: pulumi.String("terraform-example"),
FileSystemId: defaultFileSystem.ID(),
Schedule: pulumi.String("I|1602673264|PT2H"),
BackupType: pulumi.String("COMPLETE"),
VaultId: defaultVault.ID(),
Retention: pulumi.String("2"),
Paths: pulumi.StringArray{
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.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 pulumi
import pulumi_alicloud as alicloud
default_vault = alicloud.hbr.Vault("defaultVault", vault_name="terraform-example2")
default_file_system = alicloud.nas.FileSystem("defaultFileSystem",
protocol_type="NFS",
storage_type="Performance",
description="terraform-example",
encrypt_type=1)
default_nas_backup_plan = alicloud.hbr.NasBackupPlan("defaultNasBackupPlan",
nas_backup_plan_name="terraform-example",
file_system_id=default_file_system.id,
schedule="I|1602673264|PT2H",
backup_type="COMPLETE",
vault_id=default_vault.id,
retention="2",
paths=["/"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultVault = new alicloud.hbr.Vault("defaultVault", {vaultName: "terraform-example2"});
const defaultFileSystem = new alicloud.nas.FileSystem("defaultFileSystem", {
protocolType: "NFS",
storageType: "Performance",
description: "terraform-example",
encryptType: 1,
});
const defaultNasBackupPlan = new alicloud.hbr.NasBackupPlan("defaultNasBackupPlan", {
nasBackupPlanName: "terraform-example",
fileSystemId: defaultFileSystem.id,
schedule: "I|1602673264|PT2H",
backupType: "COMPLETE",
vaultId: defaultVault.id,
retention: "2",
paths: ["/"],
});
resources:
defaultVault:
type: alicloud:hbr:Vault
properties:
vaultName: terraform-example2
defaultFileSystem:
type: alicloud:nas:FileSystem
properties:
protocolType: NFS
storageType: Performance
description: terraform-example
encryptType: '1'
defaultNasBackupPlan:
type: alicloud:hbr:NasBackupPlan
properties:
nasBackupPlanName: terraform-example
fileSystemId: ${defaultFileSystem.id}
schedule: I|1602673264|PT2H
backupType: COMPLETE
vaultId: ${defaultVault.id}
retention: '2'
paths:
- /
Create 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,
cross_account_role_name: Optional[str] = None,
cross_account_type: Optional[str] = None,
cross_account_user_id: Optional[int] = 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:
- Backup
Type string Backup type. Valid values:
COMPLETE
.- File
System stringId The File System ID of Nas.
- Nas
Backup stringPlan Name 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.- Vault
Id string The ID of Backup vault.
- Create
Time 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- Cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- Cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- Cross
Account intUser Id The original account ID of the cross account backup managed by the current account.
- Disabled bool
Whether to disable the backup task. Valid values:
true
,false
.- Options string
This parameter specifies whether to use Windows VSS to define a backup path.
- Backup
Type string Backup type. Valid values:
COMPLETE
.- File
System stringId The File System ID of Nas.
- Nas
Backup stringPlan Name 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.- Vault
Id string The ID of Backup vault.
- Create
Time 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- Cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- Cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- Cross
Account intUser Id The original account ID of the cross account backup managed by the current account.
- Disabled bool
Whether to disable the backup task. Valid values:
true
,false
.- Options string
This parameter specifies whether to use Windows VSS to define a backup path.
- backup
Type String Backup type. Valid values:
COMPLETE
.- file
System StringId The File System ID of Nas.
- nas
Backup StringPlan Name 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.- vault
Id String The ID of Backup vault.
- create
Time 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- cross
Account StringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- cross
Account StringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account IntegerUser Id The original account ID of the cross account backup managed by the current account.
- disabled Boolean
Whether to disable the backup task. Valid values:
true
,false
.- options String
This parameter specifies whether to use Windows VSS to define a backup path.
- backup
Type string Backup type. Valid values:
COMPLETE
.- file
System stringId The File System ID of Nas.
- nas
Backup stringPlan Name 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.- vault
Id string The ID of Backup vault.
- create
Time 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account numberUser Id The original account ID of the cross account backup managed by the current account.
- disabled boolean
Whether to disable the backup task. Valid values:
true
,false
.- options string
This parameter specifies whether to use Windows VSS to define a backup path.
- backup_
type str Backup type. Valid values:
COMPLETE
.- file_
system_ strid The File System ID of Nas.
- nas_
backup_ strplan_ name 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- cross_
account_ strrole_ name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- cross_
account_ strtype The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross_
account_ intuser_ id The original account ID of the cross account backup managed by the current account.
- disabled bool
Whether to disable the backup task. Valid values:
true
,false
.- options str
This parameter specifies whether to use Windows VSS to define a backup path.
- backup
Type String Backup type. Valid values:
COMPLETE
.- file
System StringId The File System ID of Nas.
- nas
Backup StringPlan Name 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.- vault
Id String The ID of Backup vault.
- create
Time 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- cross
Account StringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- cross
Account StringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account NumberUser Id The original account ID of the cross account backup managed by the current account.
- disabled Boolean
Whether to disable the backup task. Valid values:
true
,false
.- options String
This parameter specifies whether to use Windows VSS to define a backup path.
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 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,
cross_account_role_name: Optional[str] = None,
cross_account_type: Optional[str] = None,
cross_account_user_id: Optional[int] = 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.
- Backup
Type string Backup type. Valid values:
COMPLETE
.- Create
Time 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- Cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- Cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- Cross
Account intUser Id The original account ID of the cross account backup managed by the current account.
- Disabled bool
Whether to disable the backup task. Valid values:
true
,false
.- File
System stringId The File System ID of Nas.
- Nas
Backup stringPlan Name 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
This parameter specifies whether to use Windows VSS to define a backup path.
- 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.- Vault
Id string The ID of Backup vault.
- Backup
Type string Backup type. Valid values:
COMPLETE
.- Create
Time 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- Cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- Cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- Cross
Account intUser Id The original account ID of the cross account backup managed by the current account.
- Disabled bool
Whether to disable the backup task. Valid values:
true
,false
.- File
System stringId The File System ID of Nas.
- Nas
Backup stringPlan Name 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
This parameter specifies whether to use Windows VSS to define a backup path.
- 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.- Vault
Id string The ID of Backup vault.
- backup
Type String Backup type. Valid values:
COMPLETE
.- create
Time 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- cross
Account StringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- cross
Account StringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account IntegerUser Id The original account ID of the cross account backup managed by the current account.
- disabled Boolean
Whether to disable the backup task. Valid values:
true
,false
.- file
System StringId The File System ID of Nas.
- nas
Backup StringPlan Name 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
This parameter specifies whether to use Windows VSS to define a backup path.
- 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.- vault
Id String The ID of Backup vault.
- backup
Type string Backup type. Valid values:
COMPLETE
.- create
Time 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account numberUser Id The original account ID of the cross account backup managed by the current account.
- disabled boolean
Whether to disable the backup task. Valid values:
true
,false
.- file
System stringId The File System ID of Nas.
- nas
Backup stringPlan Name 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
This parameter specifies whether to use Windows VSS to define a backup path.
- 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.- vault
Id 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- cross_
account_ strrole_ name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- cross_
account_ strtype The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross_
account_ intuser_ id The original account ID of the cross account backup managed by the current account.
- disabled bool
Whether to disable the backup task. Valid values:
true
,false
.- file_
system_ strid The File System ID of Nas.
- nas_
backup_ strplan_ name 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
This parameter specifies whether to use Windows VSS to define a backup path.
- 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.
- backup
Type String Backup type. Valid values:
COMPLETE
.- create
Time 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
or2021-07-09T07:45:30Z
.Field 'create_time' has been deprecated from provider version 1.153.0.
- cross
Account StringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
Note
alicloud.hbr.NasBackupPlan
depends on thealicloud.nas.FileSystem
and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.- cross
Account StringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account NumberUser Id The original account ID of the cross account backup managed by the current account.
- disabled Boolean
Whether to disable the backup task. Valid values:
true
,false
.- file
System StringId The File System ID of Nas.
- nas
Backup StringPlan Name 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
This parameter specifies whether to use Windows VSS to define a backup path.
- 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.- vault
Id 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
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.