alicloud.databasefilesystem.Snapshot
Explore with Pulumi AI
Provides a DBFS Snapshot resource.
For information about DBFS Snapshot and how to use it.
NOTE: Available since v1.156.0.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var zoneId = "cn-hangzhou-i";
var exampleInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
{
AvailabilityZone = zoneId,
InstanceTypeFamily = "ecs.g7se",
});
var exampleImages = AliCloud.Ecs.GetImages.Invoke(new()
{
InstanceType = exampleInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes)[exampleInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes).Length - 1].Id,
NameRegex = "^aliyun_2",
Owners = "system",
});
var exampleNetwork = new AliCloud.Vpc.Network("exampleNetwork", new()
{
VpcName = name,
CidrBlock = "10.4.0.0/16",
});
var exampleSwitch = new AliCloud.Vpc.Switch("exampleSwitch", new()
{
VswitchName = name,
CidrBlock = "10.4.0.0/24",
VpcId = exampleNetwork.Id,
ZoneId = zoneId,
});
var exampleSecurityGroup = new AliCloud.Ecs.SecurityGroup("exampleSecurityGroup", new()
{
VpcId = exampleNetwork.Id,
});
var exampleInstance = new AliCloud.Ecs.Instance("exampleInstance", new()
{
AvailabilityZone = zoneId,
InstanceName = name,
ImageId = exampleImages.Apply(getImagesResult => getImagesResult.Images[1]?.Id),
InstanceType = Output.Tuple(exampleInstanceTypes, exampleInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes).Length).Apply(values =>
{
var exampleInstanceTypes = values.Item1;
var length = values.Item2;
return exampleInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes)[length - 1].Id;
}),
SecurityGroups = new[]
{
exampleSecurityGroup.Id,
},
VswitchId = exampleSwitch.Id,
SystemDiskCategory = "cloud_essd",
});
var exampleDatabasefilesystem_instanceInstance = new AliCloud.DatabaseFilesystem.Instance("exampleDatabasefilesystem/instanceInstance", new()
{
Category = "standard",
ZoneId = zoneId,
PerformanceLevel = "PL1",
InstanceName = name,
Size = 100,
});
var exampleInstanceAttachment = new AliCloud.DatabaseFilesystem.InstanceAttachment("exampleInstanceAttachment", new()
{
EcsId = exampleInstance.Id,
InstanceId = exampleDatabasefilesystem / instanceInstance.Id,
});
var exampleSnapshot = new AliCloud.DatabaseFilesystem.Snapshot("exampleSnapshot", new()
{
InstanceId = exampleInstanceAttachment.InstanceId,
SnapshotName = name,
Description = name,
RetentionDays = 30,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/databasefilesystem"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"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-example"
if param := cfg.Get("name"); param != "" {
name = param
}
zoneId := "cn-hangzhou-i"
exampleInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
AvailabilityZone: pulumi.StringRef(zoneId),
InstanceTypeFamily: pulumi.StringRef("ecs.g7se"),
}, nil)
if err != nil {
return err
}
exampleImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
InstanceType: pulumi.StringRef(exampleInstanceTypes.InstanceTypes[len(exampleInstanceTypes.InstanceTypes)-1].Id),
NameRegex: pulumi.StringRef("^aliyun_2"),
Owners: pulumi.StringRef("system"),
}, nil)
if err != nil {
return err
}
exampleNetwork, err := vpc.NewNetwork(ctx, "exampleNetwork", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
})
if err != nil {
return err
}
exampleSwitch, err := vpc.NewSwitch(ctx, "exampleSwitch", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/24"),
VpcId: exampleNetwork.ID(),
ZoneId: pulumi.String(zoneId),
})
if err != nil {
return err
}
exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "exampleSecurityGroup", &ecs.SecurityGroupArgs{
VpcId: exampleNetwork.ID(),
})
if err != nil {
return err
}
exampleInstance, err := ecs.NewInstance(ctx, "exampleInstance", &ecs.InstanceArgs{
AvailabilityZone: pulumi.String(zoneId),
InstanceName: pulumi.String(name),
ImageId: *pulumi.String(exampleImages.Images[1].Id),
InstanceType: exampleInstanceTypes.InstanceTypes[len(exampleInstanceTypes.InstanceTypes)-1].Id,
SecurityGroups: pulumi.StringArray{
exampleSecurityGroup.ID(),
},
VswitchId: exampleSwitch.ID(),
SystemDiskCategory: pulumi.String("cloud_essd"),
})
if err != nil {
return err
}
_, err = databasefilesystem.NewInstance(ctx, "exampleDatabasefilesystem/instanceInstance", &databasefilesystem.InstanceArgs{
Category: pulumi.String("standard"),
ZoneId: pulumi.String(zoneId),
PerformanceLevel: pulumi.String("PL1"),
InstanceName: pulumi.String(name),
Size: pulumi.Int(100),
})
if err != nil {
return err
}
exampleInstanceAttachment, err := databasefilesystem.NewInstanceAttachment(ctx, "exampleInstanceAttachment", &databasefilesystem.InstanceAttachmentArgs{
EcsId: exampleInstance.ID(),
InstanceId: exampleDatabasefilesystem / instanceInstance.Id,
})
if err != nil {
return err
}
_, err = databasefilesystem.NewSnapshot(ctx, "exampleSnapshot", &databasefilesystem.SnapshotArgs{
InstanceId: exampleInstanceAttachment.InstanceId,
SnapshotName: pulumi.String(name),
Description: pulumi.String(name),
RetentionDays: pulumi.Int(30),
})
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.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ecs.Instance;
import com.pulumi.alicloud.ecs.InstanceArgs;
import com.pulumi.alicloud.databasefilesystem.Instance;
import com.pulumi.alicloud.databasefilesystem.InstanceArgs;
import com.pulumi.alicloud.databasefilesystem.InstanceAttachment;
import com.pulumi.alicloud.databasefilesystem.InstanceAttachmentArgs;
import com.pulumi.alicloud.databasefilesystem.Snapshot;
import com.pulumi.alicloud.databasefilesystem.SnapshotArgs;
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-example");
final var zoneId = "cn-hangzhou-i";
final var exampleInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.availabilityZone(zoneId)
.instanceTypeFamily("ecs.g7se")
.build());
final var exampleImages = EcsFunctions.getImages(GetImagesArgs.builder()
.instanceType(exampleInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes())[exampleInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()).length() - 1].id())
.nameRegex("^aliyun_2")
.owners("system")
.build());
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.4.0.0/24")
.vpcId(exampleNetwork.id())
.zoneId(zoneId)
.build());
var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
.vpcId(exampleNetwork.id())
.build());
var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
.availabilityZone(zoneId)
.instanceName(name)
.imageId(exampleImages.applyValue(getImagesResult -> getImagesResult.images()[1].id()))
.instanceType(exampleInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes())[exampleInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()).length() - 1].id())
.securityGroups(exampleSecurityGroup.id())
.vswitchId(exampleSwitch.id())
.systemDiskCategory("cloud_essd")
.build());
var exampleDatabasefilesystem_instanceInstance = new Instance("exampleDatabasefilesystem/instanceInstance", InstanceArgs.builder()
.category("standard")
.zoneId(zoneId)
.performanceLevel("PL1")
.instanceName(name)
.size(100)
.build());
var exampleInstanceAttachment = new InstanceAttachment("exampleInstanceAttachment", InstanceAttachmentArgs.builder()
.ecsId(exampleInstance.id())
.instanceId(exampleDatabasefilesystem / instanceInstance.id())
.build());
var exampleSnapshot = new Snapshot("exampleSnapshot", SnapshotArgs.builder()
.instanceId(exampleInstanceAttachment.instanceId())
.snapshotName(name)
.description(name)
.retentionDays(30)
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
zone_id = "cn-hangzhou-i"
example_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
instance_type_family="ecs.g7se")
example_images = alicloud.ecs.get_images(instance_type=example_instance_types.instance_types[len(example_instance_types.instance_types) - 1].id,
name_regex="^aliyun_2",
owners="system")
example_network = alicloud.vpc.Network("exampleNetwork",
vpc_name=name,
cidr_block="10.4.0.0/16")
example_switch = alicloud.vpc.Switch("exampleSwitch",
vswitch_name=name,
cidr_block="10.4.0.0/24",
vpc_id=example_network.id,
zone_id=zone_id)
example_security_group = alicloud.ecs.SecurityGroup("exampleSecurityGroup", vpc_id=example_network.id)
example_instance = alicloud.ecs.Instance("exampleInstance",
availability_zone=zone_id,
instance_name=name,
image_id=example_images.images[1].id,
instance_type=example_instance_types.instance_types[len(example_instance_types.instance_types) - 1].id,
security_groups=[example_security_group.id],
vswitch_id=example_switch.id,
system_disk_category="cloud_essd")
example_databasefilesystem_instance_instance = alicloud.databasefilesystem.Instance("exampleDatabasefilesystem/instanceInstance",
category="standard",
zone_id=zone_id,
performance_level="PL1",
instance_name=name,
size=100)
example_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("exampleInstanceAttachment",
ecs_id=example_instance.id,
instance_id=example_databasefilesystem / instance_instance["id"])
example_snapshot = alicloud.databasefilesystem.Snapshot("exampleSnapshot",
instance_id=example_instance_attachment.instance_id,
snapshot_name=name,
description=name,
retention_days=30)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const zoneId = "cn-hangzhou-i";
const exampleInstanceTypes = alicloud.ecs.getInstanceTypes({
availabilityZone: zoneId,
instanceTypeFamily: "ecs.g7se",
});
const exampleImages = Promise.all([exampleInstanceTypes, exampleInstanceTypes.then(exampleInstanceTypes => exampleInstanceTypes.instanceTypes).length]).then(([exampleInstanceTypes, length]) => alicloud.ecs.getImages({
instanceType: exampleInstanceTypes.instanceTypes[length - 1].id,
nameRegex: "^aliyun_2",
owners: "system",
}));
const exampleNetwork = new alicloud.vpc.Network("exampleNetwork", {
vpcName: name,
cidrBlock: "10.4.0.0/16",
});
const exampleSwitch = new alicloud.vpc.Switch("exampleSwitch", {
vswitchName: name,
cidrBlock: "10.4.0.0/24",
vpcId: exampleNetwork.id,
zoneId: zoneId,
});
const exampleSecurityGroup = new alicloud.ecs.SecurityGroup("exampleSecurityGroup", {vpcId: exampleNetwork.id});
const exampleInstance = new alicloud.ecs.Instance("exampleInstance", {
availabilityZone: zoneId,
instanceName: name,
imageId: exampleImages.then(exampleImages => exampleImages.images?.[1]?.id),
instanceType: Promise.all([exampleInstanceTypes, exampleInstanceTypes.then(exampleInstanceTypes => exampleInstanceTypes.instanceTypes).length]).then(([exampleInstanceTypes, length]) => exampleInstanceTypes.instanceTypes[length - 1].id),
securityGroups: [exampleSecurityGroup.id],
vswitchId: exampleSwitch.id,
systemDiskCategory: "cloud_essd",
});
const exampleDatabasefilesystem_instanceInstance = new alicloud.databasefilesystem.Instance("exampleDatabasefilesystem/instanceInstance", {
category: "standard",
zoneId: zoneId,
performanceLevel: "PL1",
instanceName: name,
size: 100,
});
const exampleInstanceAttachment = new alicloud.databasefilesystem.InstanceAttachment("exampleInstanceAttachment", {
ecsId: exampleInstance.id,
instanceId: exampleDatabasefilesystem / instanceInstance.id,
});
const exampleSnapshot = new alicloud.databasefilesystem.Snapshot("exampleSnapshot", {
instanceId: exampleInstanceAttachment.instanceId,
snapshotName: name,
description: name,
retentionDays: 30,
});
Coming soon!
Create Snapshot Resource
new Snapshot(name: string, args: SnapshotArgs, opts?: CustomResourceOptions);
@overload
def Snapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
force: Optional[bool] = None,
instance_id: Optional[str] = None,
retention_days: Optional[int] = None,
snapshot_name: Optional[str] = None)
@overload
def Snapshot(resource_name: str,
args: SnapshotArgs,
opts: Optional[ResourceOptions] = None)
func NewSnapshot(ctx *Context, name string, args SnapshotArgs, opts ...ResourceOption) (*Snapshot, error)
public Snapshot(string name, SnapshotArgs args, CustomResourceOptions? opts = null)
public Snapshot(String name, SnapshotArgs args)
public Snapshot(String name, SnapshotArgs args, CustomResourceOptions options)
type: alicloud:databasefilesystem:Snapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnapshotArgs
- 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 SnapshotArgs
- 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 SnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SnapshotArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Snapshot 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 Snapshot resource accepts the following input properties:
- Instance
Id string The ID of the database file system.
- Description string
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- Force bool
Whether to force deletion of snapshots.
- Retention
Days int The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- Snapshot
Name string The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.
- Instance
Id string The ID of the database file system.
- Description string
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- Force bool
Whether to force deletion of snapshots.
- Retention
Days int The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- Snapshot
Name string The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.
- instance
Id String The ID of the database file system.
- description String
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- force Boolean
Whether to force deletion of snapshots.
- retention
Days Integer The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- snapshot
Name String The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.
- instance
Id string The ID of the database file system.
- description string
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- force boolean
Whether to force deletion of snapshots.
- retention
Days number The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- snapshot
Name string The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.
- instance_
id str The ID of the database file system.
- description str
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- force bool
Whether to force deletion of snapshots.
- retention_
days int The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- snapshot_
name str The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.
- instance
Id String The ID of the database file system.
- description String
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- force Boolean
Whether to force deletion of snapshots.
- retention
Days Number The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- snapshot
Name String The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Snapshot resource produces the following output properties:
Look up Existing Snapshot Resource
Get an existing Snapshot 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?: SnapshotState, opts?: CustomResourceOptions): Snapshot
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
force: Optional[bool] = None,
instance_id: Optional[str] = None,
retention_days: Optional[int] = None,
snapshot_name: Optional[str] = None,
status: Optional[str] = None) -> Snapshot
func GetSnapshot(ctx *Context, name string, id IDInput, state *SnapshotState, opts ...ResourceOption) (*Snapshot, error)
public static Snapshot Get(string name, Input<string> id, SnapshotState? state, CustomResourceOptions? opts = null)
public static Snapshot get(String name, Output<String> id, SnapshotState 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.
- Description string
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- Force bool
Whether to force deletion of snapshots.
- Instance
Id string The ID of the database file system.
- Retention
Days int The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- Snapshot
Name string The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.- Status string
The status of the Snapshot.
- Description string
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- Force bool
Whether to force deletion of snapshots.
- Instance
Id string The ID of the database file system.
- Retention
Days int The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- Snapshot
Name string The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.- Status string
The status of the Snapshot.
- description String
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- force Boolean
Whether to force deletion of snapshots.
- instance
Id String The ID of the database file system.
- retention
Days Integer The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- snapshot
Name String The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.- status String
The status of the Snapshot.
- description string
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- force boolean
Whether to force deletion of snapshots.
- instance
Id string The ID of the database file system.
- retention
Days number The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- snapshot
Name string The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.- status string
The status of the Snapshot.
- description str
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- force bool
Whether to force deletion of snapshots.
- instance_
id str The ID of the database file system.
- retention_
days int The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- snapshot_
name str The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.- status str
The status of the Snapshot.
- description String
Description of the snapshot. The description must be
2
to256
characters in length. It must start with a letter, and cannot start withhttp://
orhttps://
.- force Boolean
Whether to force deletion of snapshots.
- instance
Id String The ID of the database file system.
- retention
Days Number The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values:
1
to65536
.- snapshot
Name String The display name of the snapshot. The length is
2
to128
characters. It must start with a large or small letter or Chinese, and cannot start withhttp://
andhttps://
. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start withauto
.- status String
The status of the Snapshot.
Import
DBFS Snapshot can be imported using the id, e.g.
$ pulumi import alicloud:databasefilesystem/snapshot:Snapshot 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.