get Open Zfs Snapshot
Use this data source to get information about an Amazon FSx for OpenZFS Snapshot for use when provisioning new Volumes.
Example Usage
Root volume Example
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.fsx.FsxFunctions;
import com.pulumi.aws.fsx.inputs.GetOpenZfsSnapshotArgs;
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 example = FsxFunctions.getOpenZfsSnapshot(GetOpenZfsSnapshotArgs.builder()
.filters(GetOpenZfsSnapshotFilterArgs.builder()
.name("volume-id")
.values("fsvol-073a32b6098a73feb")
.build())
.mostRecent(true)
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getOpenZfsSnapshot.
Parameters
argument
A collection of arguments for invoking getOpenZfsSnapshot.
suspend fun getOpenZfsSnapshot(filters: List<GetOpenZfsSnapshotFilter>? = null, mostRecent: Boolean? = null, name: String? = null, snapshotIds: List<String>? = null, tags: Map<String, String>? = null): GetOpenZfsSnapshotResult
Return
A collection of values returned by getOpenZfsSnapshot.
Parameters
filters
One or more name/value pairs to filter off of. The supported names are file-system-id or volume-id.
most Recent
If more than one result is returned, use the most recent snapshot.
name
Name of the snapshot.
snapshot Ids
Returns information on a specific snapshot_id.
tags
List of Tag values, with a maximum of 50 elements.
See also
suspend fun getOpenZfsSnapshot(argument: suspend GetOpenZfsSnapshotPlainArgsBuilder.() -> Unit): GetOpenZfsSnapshotResult
Return
A collection of values returned by getOpenZfsSnapshot.
Parameters
argument
Builder for com.pulumi.aws.fsx.kotlin.inputs.GetOpenZfsSnapshotPlainArgs.