Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of nas snapshots
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.nas.getSnapshots({
fileSystemId: "enas-cnbj5c18f02afe0e",
ids: [
"snap-022c648fed8b",
"snap-e53591b05fbd",
],
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.nas.get_snapshots(file_system_id="enas-cnbj5c18f02afe0e",
ids=[
"snap-022c648fed8b",
"snap-e53591b05fbd",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nas"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nas.GetSnapshots(ctx, &nas.GetSnapshotsArgs{
FileSystemId: pulumi.StringRef("enas-cnbj5c18f02afe0e"),
Ids: []string{
"snap-022c648fed8b",
"snap-e53591b05fbd",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Nas.GetSnapshots.Invoke(new()
{
FileSystemId = "enas-cnbj5c18f02afe0e",
Ids = new[]
{
"snap-022c648fed8b",
"snap-e53591b05fbd",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.nas.NasFunctions;
import com.pulumi.volcengine.nas.inputs.GetSnapshotsArgs;
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 default = NasFunctions.getSnapshots(GetSnapshotsArgs.builder()
.fileSystemId("enas-cnbj5c18f02afe0e")
.ids(
"snap-022c648fed8b",
"snap-e53591b05fbd")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:nas:getSnapshots
Arguments:
fileSystemId: enas-cnbj5c18f02afe0e
ids:
- snap-022c648fed8b
- snap-e53591b05fbd
Using getSnapshots
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSnapshots(args: GetSnapshotsArgs, opts?: InvokeOptions): Promise<GetSnapshotsResult>
function getSnapshotsOutput(args: GetSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetSnapshotsResult>def get_snapshots(file_system_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
snapshot_name: Optional[str] = None,
snapshot_type: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSnapshotsResult
def get_snapshots_output(file_system_id: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
snapshot_name: Optional[pulumi.Input[str]] = None,
snapshot_type: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSnapshotsResult]func GetSnapshots(ctx *Context, args *GetSnapshotsArgs, opts ...InvokeOption) (*GetSnapshotsResult, error)
func GetSnapshotsOutput(ctx *Context, args *GetSnapshotsOutputArgs, opts ...InvokeOption) GetSnapshotsResultOutput> Note: This function is named GetSnapshots in the Go SDK.
public static class GetSnapshots
{
public static Task<GetSnapshotsResult> InvokeAsync(GetSnapshotsArgs args, InvokeOptions? opts = null)
public static Output<GetSnapshotsResult> Invoke(GetSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSnapshotsResult> getSnapshots(GetSnapshotsArgs args, InvokeOptions options)
public static Output<GetSnapshotsResult> getSnapshots(GetSnapshotsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:nas/getSnapshots:getSnapshots
arguments:
# arguments dictionaryThe following arguments are supported:
- File
System stringId - The ID of file system.
- Ids List<string>
- A list of Snapshot IDs.
- Output
File string - File name where to save data source results.
- Snapshot
Name string - The name of snapshot.
- Snapshot
Type string - The type of snapshot.
- Status string
- The status of snapshot.
- File
System stringId - The ID of file system.
- Ids []string
- A list of Snapshot IDs.
- Output
File string - File name where to save data source results.
- Snapshot
Name string - The name of snapshot.
- Snapshot
Type string - The type of snapshot.
- Status string
- The status of snapshot.
- file
System StringId - The ID of file system.
- ids List<String>
- A list of Snapshot IDs.
- output
File String - File name where to save data source results.
- snapshot
Name String - The name of snapshot.
- snapshot
Type String - The type of snapshot.
- status String
- The status of snapshot.
- file
System stringId - The ID of file system.
- ids string[]
- A list of Snapshot IDs.
- output
File string - File name where to save data source results.
- snapshot
Name string - The name of snapshot.
- snapshot
Type string - The type of snapshot.
- status string
- The status of snapshot.
- file_
system_ strid - The ID of file system.
- ids Sequence[str]
- A list of Snapshot IDs.
- output_
file str - File name where to save data source results.
- snapshot_
name str - The name of snapshot.
- snapshot_
type str - The type of snapshot.
- status str
- The status of snapshot.
- file
System StringId - The ID of file system.
- ids List<String>
- A list of Snapshot IDs.
- output
File String - File name where to save data source results.
- snapshot
Name String - The name of snapshot.
- snapshot
Type String - The type of snapshot.
- status String
- The status of snapshot.
getSnapshots Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Snapshots
List<Get
Snapshots Snapshot> - The collection of query.
- Total
Count int - The total count of query.
- File
System stringId - The id of file system.
- Ids List<string>
- Output
File string - Snapshot
Name string - The name of snapshot.
- Snapshot
Type string - The type of snapshot.
- Status string
- The status of snapshot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Snapshots
[]Get
Snapshots Snapshot - The collection of query.
- Total
Count int - The total count of query.
- File
System stringId - The id of file system.
- Ids []string
- Output
File string - Snapshot
Name string - The name of snapshot.
- Snapshot
Type string - The type of snapshot.
- Status string
- The status of snapshot.
- id String
- The provider-assigned unique ID for this managed resource.
- snapshots
List<Get
Snapshots Snapshot> - The collection of query.
- total
Count Integer - The total count of query.
- file
System StringId - The id of file system.
- ids List<String>
- output
File String - snapshot
Name String - The name of snapshot.
- snapshot
Type String - The type of snapshot.
- status String
- The status of snapshot.
- id string
- The provider-assigned unique ID for this managed resource.
- snapshots
Get
Snapshots Snapshot[] - The collection of query.
- total
Count number - The total count of query.
- file
System stringId - The id of file system.
- ids string[]
- output
File string - snapshot
Name string - The name of snapshot.
- snapshot
Type string - The type of snapshot.
- status string
- The status of snapshot.
- id str
- The provider-assigned unique ID for this managed resource.
- snapshots
Sequence[Get
Snapshots Snapshot] - The collection of query.
- total_
count int - The total count of query.
- file_
system_ strid - The id of file system.
- ids Sequence[str]
- output_
file str - snapshot_
name str - The name of snapshot.
- snapshot_
type str - The type of snapshot.
- status str
- The status of snapshot.
- id String
- The provider-assigned unique ID for this managed resource.
- snapshots List<Property Map>
- The collection of query.
- total
Count Number - The total count of query.
- file
System StringId - The id of file system.
- ids List<String>
- output
File String - snapshot
Name String - The name of snapshot.
- snapshot
Type String - The type of snapshot.
- status String
- The status of snapshot.
Supporting Types
GetSnapshotsSnapshot
- Create
Time string - The create time of snapshot.
- Description string
- The description of snapshot.
- File
System stringId - The ID of file system.
- File
System stringName - The name of file system.
- Id string
- The ID of snapshot.
- Is
Encrypt bool - Whether is encrypt.
- Progress string
- The progress of snapshot.
- Retention
Days int - The retention days of snapshot.
- Snapshot
Id string - The ID of snapshot.
- Snapshot
Name string - The name of snapshot.
- Snapshot
Type string - The type of snapshot.
- Source
Size int - The size of source.
- Source
Version string - The source version info.
- Status string
- The status of snapshot.
- Zone
Id string - The ID of zone.
- Create
Time string - The create time of snapshot.
- Description string
- The description of snapshot.
- File
System stringId - The ID of file system.
- File
System stringName - The name of file system.
- Id string
- The ID of snapshot.
- Is
Encrypt bool - Whether is encrypt.
- Progress string
- The progress of snapshot.
- Retention
Days int - The retention days of snapshot.
- Snapshot
Id string - The ID of snapshot.
- Snapshot
Name string - The name of snapshot.
- Snapshot
Type string - The type of snapshot.
- Source
Size int - The size of source.
- Source
Version string - The source version info.
- Status string
- The status of snapshot.
- Zone
Id string - The ID of zone.
- create
Time String - The create time of snapshot.
- description String
- The description of snapshot.
- file
System StringId - The ID of file system.
- file
System StringName - The name of file system.
- id String
- The ID of snapshot.
- is
Encrypt Boolean - Whether is encrypt.
- progress String
- The progress of snapshot.
- retention
Days Integer - The retention days of snapshot.
- snapshot
Id String - The ID of snapshot.
- snapshot
Name String - The name of snapshot.
- snapshot
Type String - The type of snapshot.
- source
Size Integer - The size of source.
- source
Version String - The source version info.
- status String
- The status of snapshot.
- zone
Id String - The ID of zone.
- create
Time string - The create time of snapshot.
- description string
- The description of snapshot.
- file
System stringId - The ID of file system.
- file
System stringName - The name of file system.
- id string
- The ID of snapshot.
- is
Encrypt boolean - Whether is encrypt.
- progress string
- The progress of snapshot.
- retention
Days number - The retention days of snapshot.
- snapshot
Id string - The ID of snapshot.
- snapshot
Name string - The name of snapshot.
- snapshot
Type string - The type of snapshot.
- source
Size number - The size of source.
- source
Version string - The source version info.
- status string
- The status of snapshot.
- zone
Id string - The ID of zone.
- create_
time str - The create time of snapshot.
- description str
- The description of snapshot.
- file_
system_ strid - The ID of file system.
- file_
system_ strname - The name of file system.
- id str
- The ID of snapshot.
- is_
encrypt bool - Whether is encrypt.
- progress str
- The progress of snapshot.
- retention_
days int - The retention days of snapshot.
- snapshot_
id str - The ID of snapshot.
- snapshot_
name str - The name of snapshot.
- snapshot_
type str - The type of snapshot.
- source_
size int - The size of source.
- source_
version str - The source version info.
- status str
- The status of snapshot.
- zone_
id str - The ID of zone.
- create
Time String - The create time of snapshot.
- description String
- The description of snapshot.
- file
System StringId - The ID of file system.
- file
System StringName - The name of file system.
- id String
- The ID of snapshot.
- is
Encrypt Boolean - Whether is encrypt.
- progress String
- The progress of snapshot.
- retention
Days Number - The retention days of snapshot.
- snapshot
Id String - The ID of snapshot.
- snapshot
Name String - The name of snapshot.
- snapshot
Type String - The type of snapshot.
- source
Size Number - The size of source.
- source
Version String - The source version info.
- status String
- The status of snapshot.
- zone
Id String - The ID of zone.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
