Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.nas.Snapshots
Explore with Pulumi AI
Use this data source to query detailed information of nas snapshots
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var @default = Volcengine.Nas.Snapshots.Invoke(new()
    {
        FileSystemId = "enas-cnbj5c18f02afe0e",
        Ids = new[]
        {
            "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.Snapshots(ctx, &nas.SnapshotsArgs{
			FileSystemId: pulumi.StringRef("enas-cnbj5c18f02afe0e"),
			Ids: []string{
				"snap-022c648fed8b",
				"snap-e53591b05fbd",
			},
		}, nil)
		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.volcengine.nas.NasFunctions;
import com.pulumi.volcengine.nas.inputs.SnapshotsArgs;
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.Snapshots(SnapshotsArgs.builder()
            .fileSystemId("enas-cnbj5c18f02afe0e")
            .ids(            
                "snap-022c648fed8b",
                "snap-e53591b05fbd")
            .build());
    }
}
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.nas.snapshots(file_system_id="enas-cnbj5c18f02afe0e",
    ids=[
        "snap-022c648fed8b",
        "snap-e53591b05fbd",
    ])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.nas.Snapshots({
    fileSystemId: "enas-cnbj5c18f02afe0e",
    ids: [
        "snap-022c648fed8b",
        "snap-e53591b05fbd",
    ],
});
variables:
  default:
    fn::invoke:
      Function: volcengine:nas:Snapshots
      Arguments:
        fileSystemId: enas-cnbj5c18f02afe0e
        ids:
          - snap-022c648fed8b
          - snap-e53591b05fbd
Using Snapshots
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 snapshots(args: SnapshotsArgs, opts?: InvokeOptions): Promise<SnapshotsResult>
function snapshotsOutput(args: SnapshotsOutputArgs, opts?: InvokeOptions): Output<SnapshotsResult>def 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) -> SnapshotsResult
def 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[SnapshotsResult]func Snapshots(ctx *Context, args *SnapshotsArgs, opts ...InvokeOption) (*SnapshotsResult, error)
func SnapshotsOutput(ctx *Context, args *SnapshotsOutputArgs, opts ...InvokeOption) SnapshotsResultOutputpublic static class Snapshots 
{
    public static Task<SnapshotsResult> InvokeAsync(SnapshotsArgs args, InvokeOptions? opts = null)
    public static Output<SnapshotsResult> Invoke(SnapshotsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<SnapshotsResult> snapshots(SnapshotsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: volcengine:nas:Snapshots
  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.
 
Snapshots Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Snapshots
List<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
[]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<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
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[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
SnapshotsSnapshot 
- 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.