published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
A snapshot is a backup method. Each snapshot is a backup of file storage at a specific point in time. If data is lost or a failure occurs, you can use snapshots to restore file storage and recover lost data
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const fileNASSnapshotDemo = new volcenginecc.filenas.Snapshot("FileNASSnapshotDemo", {
fileSystemId: "enas-apse1a059****",
snapshotName: "FileNASSnapshotDemo",
description: "FileNASSnapshotDemo description",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
file_nas_snapshot_demo = volcenginecc.filenas.Snapshot("FileNASSnapshotDemo",
file_system_id="enas-apse1a059****",
snapshot_name="FileNASSnapshotDemo",
description="FileNASSnapshotDemo description")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/filenas"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := filenas.NewSnapshot(ctx, "FileNASSnapshotDemo", &filenas.SnapshotArgs{
FileSystemId: pulumi.String("enas-apse1a059****"),
SnapshotName: pulumi.String("FileNASSnapshotDemo"),
Description: pulumi.String("FileNASSnapshotDemo description"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var fileNASSnapshotDemo = new Volcenginecc.Filenas.Snapshot("FileNASSnapshotDemo", new()
{
FileSystemId = "enas-apse1a059****",
SnapshotName = "FileNASSnapshotDemo",
Description = "FileNASSnapshotDemo description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.filenas.Snapshot;
import com.volcengine.volcenginecc.filenas.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) {
var fileNASSnapshotDemo = new Snapshot("fileNASSnapshotDemo", SnapshotArgs.builder()
.fileSystemId("enas-apse1a059****")
.snapshotName("FileNASSnapshotDemo")
.description("FileNASSnapshotDemo description")
.build());
}
}
resources:
fileNASSnapshotDemo:
type: volcenginecc:filenas:Snapshot
name: FileNASSnapshotDemo
properties:
fileSystemId: enas-apse1a059****
snapshotName: FileNASSnapshotDemo
description: FileNASSnapshotDemo description
Create Snapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Snapshot(name: string, args: SnapshotArgs, opts?: CustomResourceOptions);@overload
def Snapshot(resource_name: str,
args: SnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Snapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None,
snapshot_name: Optional[str] = None,
description: Optional[str] = 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: volcenginecc:filenas:Snapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var snapshotResource = new Volcenginecc.Filenas.Snapshot("snapshotResource", new()
{
FileSystemId = "string",
SnapshotName = "string",
Description = "string",
});
example, err := filenas.NewSnapshot(ctx, "snapshotResource", &filenas.SnapshotArgs{
FileSystemId: pulumi.String("string"),
SnapshotName: pulumi.String("string"),
Description: pulumi.String("string"),
})
var snapshotResource = new com.volcengine.volcenginecc.filenas.Snapshot("snapshotResource", com.volcengine.volcenginecc.filenas.SnapshotArgs.builder()
.fileSystemId("string")
.snapshotName("string")
.description("string")
.build());
snapshot_resource = volcenginecc.filenas.Snapshot("snapshotResource",
file_system_id="string",
snapshot_name="string",
description="string")
const snapshotResource = new volcenginecc.filenas.Snapshot("snapshotResource", {
fileSystemId: "string",
snapshotName: "string",
description: "string",
});
type: volcenginecc:filenas:Snapshot
properties:
description: string
fileSystemId: string
snapshotName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Snapshot resource accepts the following input properties:
- File
System stringId - File System ID
- Snapshot
Name string - Snapshot Name
- Description string
- Snapshot Description
- File
System stringId - File System ID
- Snapshot
Name string - Snapshot Name
- Description string
- Snapshot Description
- file
System StringId - File System ID
- snapshot
Name String - Snapshot Name
- description String
- Snapshot Description
- file
System stringId - File System ID
- snapshot
Name string - Snapshot Name
- description string
- Snapshot Description
- file_
system_ strid - File System ID
- snapshot_
name str - Snapshot Name
- description str
- Snapshot Description
- file
System StringId - File System ID
- snapshot
Name String - Snapshot Name
- description String
- Snapshot Description
Outputs
All input properties are implicitly available as output properties. Additionally, the Snapshot resource produces the following output properties:
- Created
Time string - Snapshot Creation Time
- File
System stringName - File System Name
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Encrypt bool - Is encryption enabled. Currently only false is supported (not encrypted)
- Progress string
- Snapshot Creation Progress
- Retention
Days int - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- Snapshot
Id string - Snapshot ID
- Snapshot
Type string - Snapshot Type. Default is Manual (manual snapshot)
- Source
Size int - File System Capacity (GiB)
- Source
Version string - File System Version
- Status string
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- Zone
Id string - Availability Zone ID
- Created
Time string - Snapshot Creation Time
- File
System stringName - File System Name
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Encrypt bool - Is encryption enabled. Currently only false is supported (not encrypted)
- Progress string
- Snapshot Creation Progress
- Retention
Days int - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- Snapshot
Id string - Snapshot ID
- Snapshot
Type string - Snapshot Type. Default is Manual (manual snapshot)
- Source
Size int - File System Capacity (GiB)
- Source
Version string - File System Version
- Status string
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- Zone
Id string - Availability Zone ID
- created
Time String - Snapshot Creation Time
- file
System StringName - File System Name
- id String
- The provider-assigned unique ID for this managed resource.
- is
Encrypt Boolean - Is encryption enabled. Currently only false is supported (not encrypted)
- progress String
- Snapshot Creation Progress
- retention
Days Integer - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- snapshot
Id String - Snapshot ID
- snapshot
Type String - Snapshot Type. Default is Manual (manual snapshot)
- source
Size Integer - File System Capacity (GiB)
- source
Version String - File System Version
- status String
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- zone
Id String - Availability Zone ID
- created
Time string - Snapshot Creation Time
- file
System stringName - File System Name
- id string
- The provider-assigned unique ID for this managed resource.
- is
Encrypt boolean - Is encryption enabled. Currently only false is supported (not encrypted)
- progress string
- Snapshot Creation Progress
- retention
Days number - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- snapshot
Id string - Snapshot ID
- snapshot
Type string - Snapshot Type. Default is Manual (manual snapshot)
- source
Size number - File System Capacity (GiB)
- source
Version string - File System Version
- status string
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- zone
Id string - Availability Zone ID
- created_
time str - Snapshot Creation Time
- file_
system_ strname - File System Name
- id str
- The provider-assigned unique ID for this managed resource.
- is_
encrypt bool - Is encryption enabled. Currently only false is supported (not encrypted)
- progress str
- Snapshot Creation Progress
- retention_
days int - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- snapshot_
id str - Snapshot ID
- snapshot_
type str - Snapshot Type. Default is Manual (manual snapshot)
- source_
size int - File System Capacity (GiB)
- source_
version str - File System Version
- status str
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- zone_
id str - Availability Zone ID
- created
Time String - Snapshot Creation Time
- file
System StringName - File System Name
- id String
- The provider-assigned unique ID for this managed resource.
- is
Encrypt Boolean - Is encryption enabled. Currently only false is supported (not encrypted)
- progress String
- Snapshot Creation Progress
- retention
Days Number - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- snapshot
Id String - Snapshot ID
- snapshot
Type String - Snapshot Type. Default is Manual (manual snapshot)
- source
Size Number - File System Capacity (GiB)
- source
Version String - File System Version
- status String
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- zone
Id String - Availability Zone ID
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,
created_time: Optional[str] = None,
description: Optional[str] = None,
file_system_id: Optional[str] = None,
file_system_name: Optional[str] = None,
is_encrypt: Optional[bool] = None,
progress: Optional[str] = None,
retention_days: Optional[int] = None,
snapshot_id: Optional[str] = None,
snapshot_name: Optional[str] = None,
snapshot_type: Optional[str] = None,
source_size: Optional[int] = None,
source_version: Optional[str] = None,
status: Optional[str] = None,
zone_id: Optional[str] = None) -> Snapshotfunc 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)resources: _: type: volcenginecc:filenas:Snapshot get: id: ${id}- 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.
- Created
Time string - Snapshot Creation Time
- Description string
- Snapshot Description
- File
System stringId - File System ID
- File
System stringName - File System Name
- Is
Encrypt bool - Is encryption enabled. Currently only false is supported (not encrypted)
- Progress string
- Snapshot Creation Progress
- Retention
Days int - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- Snapshot
Id string - Snapshot ID
- Snapshot
Name string - Snapshot Name
- Snapshot
Type string - Snapshot Type. Default is Manual (manual snapshot)
- Source
Size int - File System Capacity (GiB)
- Source
Version string - File System Version
- Status string
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- Zone
Id string - Availability Zone ID
- Created
Time string - Snapshot Creation Time
- Description string
- Snapshot Description
- File
System stringId - File System ID
- File
System stringName - File System Name
- Is
Encrypt bool - Is encryption enabled. Currently only false is supported (not encrypted)
- Progress string
- Snapshot Creation Progress
- Retention
Days int - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- Snapshot
Id string - Snapshot ID
- Snapshot
Name string - Snapshot Name
- Snapshot
Type string - Snapshot Type. Default is Manual (manual snapshot)
- Source
Size int - File System Capacity (GiB)
- Source
Version string - File System Version
- Status string
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- Zone
Id string - Availability Zone ID
- created
Time String - Snapshot Creation Time
- description String
- Snapshot Description
- file
System StringId - File System ID
- file
System StringName - File System Name
- is
Encrypt Boolean - Is encryption enabled. Currently only false is supported (not encrypted)
- progress String
- Snapshot Creation Progress
- retention
Days Integer - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- snapshot
Id String - Snapshot ID
- snapshot
Name String - Snapshot Name
- snapshot
Type String - Snapshot Type. Default is Manual (manual snapshot)
- source
Size Integer - File System Capacity (GiB)
- source
Version String - File System Version
- status String
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- zone
Id String - Availability Zone ID
- created
Time string - Snapshot Creation Time
- description string
- Snapshot Description
- file
System stringId - File System ID
- file
System stringName - File System Name
- is
Encrypt boolean - Is encryption enabled. Currently only false is supported (not encrypted)
- progress string
- Snapshot Creation Progress
- retention
Days number - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- snapshot
Id string - Snapshot ID
- snapshot
Name string - Snapshot Name
- snapshot
Type string - Snapshot Type. Default is Manual (manual snapshot)
- source
Size number - File System Capacity (GiB)
- source
Version string - File System Version
- status string
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- zone
Id string - Availability Zone ID
- created_
time str - Snapshot Creation Time
- description str
- Snapshot Description
- file_
system_ strid - File System ID
- file_
system_ strname - File System Name
- is_
encrypt bool - Is encryption enabled. Currently only false is supported (not encrypted)
- progress str
- Snapshot Creation Progress
- retention_
days int - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- snapshot_
id str - Snapshot ID
- snapshot_
name str - Snapshot Name
- snapshot_
type str - Snapshot Type. Default is Manual (manual snapshot)
- source_
size int - File System Capacity (GiB)
- source_
version str - File System Version
- status str
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- zone_
id str - Availability Zone ID
- created
Time String - Snapshot Creation Time
- description String
- Snapshot Description
- file
System StringId - File System ID
- file
System StringName - File System Name
- is
Encrypt Boolean - Is encryption enabled. Currently only false is supported (not encrypted)
- progress String
- Snapshot Creation Progress
- retention
Days Number - Snapshot Retention Period. Default is 2147483647 (permanent retention)
- snapshot
Id String - Snapshot ID
- snapshot
Name String - Snapshot Name
- snapshot
Type String - Snapshot Type. Default is Manual (manual snapshot)
- source
Size Number - File System Capacity (GiB)
- source
Version String - File System Version
- status String
- Snapshot Status. Details: Progressing: Creating. Accomplished: Created successfully. Failed: Creation failed
- zone
Id String - Availability Zone ID
Import
$ pulumi import volcenginecc:filenas/snapshot:Snapshot example "snapshot_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
