powerscale 1.7.1 published on Wednesday, Apr 30, 2025 by dell
powerscale.getWritableSnapshot
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerscale from "@pulumi/powerscale";
const allSnaps = powerscale.getWritableSnapshot({});
const test = powerscale.getWritableSnapshot({
filter: {
limit: 5,
path: "/ifs/writable_snap",
},
});
import pulumi
import pulumi_powerscale as powerscale
all_snaps = powerscale.get_writable_snapshot()
test = powerscale.get_writable_snapshot(filter={
"limit": 5,
"path": "/ifs/writable_snap",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerscale/powerscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := powerscale.LookupWritableSnapshot(ctx, &powerscale.LookupWritableSnapshotArgs{}, nil)
if err != nil {
return err
}
_, err = powerscale.LookupWritableSnapshot(ctx, &powerscale.LookupWritableSnapshotArgs{
Filter: powerscale.GetWritableSnapshotFilter{
Limit: pulumi.Float64Ref(5),
Path: pulumi.StringRef("/ifs/writable_snap"),
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Powerscale = Pulumi.Powerscale;
return await Deployment.RunAsync(() =>
{
var allSnaps = Powerscale.GetWritableSnapshot.Invoke();
var test = Powerscale.GetWritableSnapshot.Invoke(new()
{
Filter = new Powerscale.Inputs.GetWritableSnapshotFilterInputArgs
{
Limit = 5,
Path = "/ifs/writable_snap",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerscale.PowerscaleFunctions;
import com.pulumi.powerscale.inputs.GetWritableSnapshotArgs;
import com.pulumi.powerscale.inputs.GetWritableSnapshotFilterArgs;
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 allSnaps = PowerscaleFunctions.getWritableSnapshot();
final var test = PowerscaleFunctions.getWritableSnapshot(GetWritableSnapshotArgs.builder()
.filter(GetWritableSnapshotFilterArgs.builder()
.limit(5)
.path("/ifs/writable_snap")
.build())
.build());
}
}
variables:
allSnaps:
fn::invoke:
function: powerscale:getWritableSnapshot
arguments: {}
test:
fn::invoke:
function: powerscale:getWritableSnapshot
arguments:
filter:
limit: 5
path: /ifs/writable_snap
Using getWritableSnapshot
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 getWritableSnapshot(args: GetWritableSnapshotArgs, opts?: InvokeOptions): Promise<GetWritableSnapshotResult>
function getWritableSnapshotOutput(args: GetWritableSnapshotOutputArgs, opts?: InvokeOptions): Output<GetWritableSnapshotResult>
def get_writable_snapshot(filter: Optional[GetWritableSnapshotFilter] = None,
opts: Optional[InvokeOptions] = None) -> GetWritableSnapshotResult
def get_writable_snapshot_output(filter: Optional[pulumi.Input[GetWritableSnapshotFilterArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWritableSnapshotResult]
func LookupWritableSnapshot(ctx *Context, args *LookupWritableSnapshotArgs, opts ...InvokeOption) (*LookupWritableSnapshotResult, error)
func LookupWritableSnapshotOutput(ctx *Context, args *LookupWritableSnapshotOutputArgs, opts ...InvokeOption) LookupWritableSnapshotResultOutput
> Note: This function is named LookupWritableSnapshot
in the Go SDK.
public static class GetWritableSnapshot
{
public static Task<GetWritableSnapshotResult> InvokeAsync(GetWritableSnapshotArgs args, InvokeOptions? opts = null)
public static Output<GetWritableSnapshotResult> Invoke(GetWritableSnapshotInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWritableSnapshotResult> getWritableSnapshot(GetWritableSnapshotArgs args, InvokeOptions options)
public static Output<GetWritableSnapshotResult> getWritableSnapshot(GetWritableSnapshotArgs args, InvokeOptions options)
fn::invoke:
function: powerscale:index/getWritableSnapshot:getWritableSnapshot
arguments:
# arguments dictionary
The following arguments are supported:
getWritableSnapshot Result
The following output properties are available:
- Id string
- Identifier
- Writables
List<Get
Writable Snapshot Writable> - Filter
Get
Writable Snapshot Filter
- Id string
- Identifier
- Writables
[]Get
Writable Snapshot Writable - Filter
Get
Writable Snapshot Filter
- id String
- Identifier
- writables
List<Get
Writable Snapshot Writable> - filter
Get
Writable Snapshot Filter
- id string
- Identifier
- writables
Get
Writable Snapshot Writable[] - filter
Get
Writable Snapshot Filter
- id String
- Identifier
- writables List<Property Map>
- filter Property Map
Supporting Types
GetWritableSnapshotFilter
- Dir string
- The direction of the sort.
- Limit double
- Return no more than this many results at once (see resume).
- Path string
- Only list writable snapshots matching this path.
- Resume string
- Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options).
- Sort string
- The field that will be used for sorting. Choices are path, src name, src path, created, size and state. Default is created.
- State string
- Only list writable snapshots matching this state.
- Dir string
- The direction of the sort.
- Limit float64
- Return no more than this many results at once (see resume).
- Path string
- Only list writable snapshots matching this path.
- Resume string
- Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options).
- Sort string
- The field that will be used for sorting. Choices are path, src name, src path, created, size and state. Default is created.
- State string
- Only list writable snapshots matching this state.
- dir String
- The direction of the sort.
- limit Double
- Return no more than this many results at once (see resume).
- path String
- Only list writable snapshots matching this path.
- resume String
- Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options).
- sort String
- The field that will be used for sorting. Choices are path, src name, src path, created, size and state. Default is created.
- state String
- Only list writable snapshots matching this state.
- dir string
- The direction of the sort.
- limit number
- Return no more than this many results at once (see resume).
- path string
- Only list writable snapshots matching this path.
- resume string
- Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options).
- sort string
- The field that will be used for sorting. Choices are path, src name, src path, created, size and state. Default is created.
- state string
- Only list writable snapshots matching this state.
- dir str
- The direction of the sort.
- limit float
- Return no more than this many results at once (see resume).
- path str
- Only list writable snapshots matching this path.
- resume str
- Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options).
- sort str
- The field that will be used for sorting. Choices are path, src name, src path, created, size and state. Default is created.
- state str
- Only list writable snapshots matching this state.
- dir String
- The direction of the sort.
- limit Number
- Return no more than this many results at once (see resume).
- path String
- Only list writable snapshots matching this path.
- resume String
- Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options).
- sort String
- The field that will be used for sorting. Choices are path, src name, src path, created, size and state. Default is created.
- state String
- Only list writable snapshots matching this state.
GetWritableSnapshotWritable
- Created double
- The Unix Epoch time the writable snapshot was created.
- Dst
Path string - The user supplied /ifs path of writable snapshot.
- Id double
- The system ID given to the writable snapshot. This is useful for debugging.
- Log
Size double - The sum in bytes of logical size of files in this writable snapshot.
- Phys
Size double - The amount of storage in bytes used to store this writable snapshot.
- Src
Id double - The system ID of the user supplied source snapshot. This is useful for debugging.
- Src
Path string - The /ifs path of user supplied source snapshot. This will be null for writable snapshots pending delete.
- Src
Snap string - The user supplied source snapshot name or ID. This will be null for writable snapshots pending delete.
- State string
- Writable Snapshot state.
- Created float64
- The Unix Epoch time the writable snapshot was created.
- Dst
Path string - The user supplied /ifs path of writable snapshot.
- Id float64
- The system ID given to the writable snapshot. This is useful for debugging.
- Log
Size float64 - The sum in bytes of logical size of files in this writable snapshot.
- Phys
Size float64 - The amount of storage in bytes used to store this writable snapshot.
- Src
Id float64 - The system ID of the user supplied source snapshot. This is useful for debugging.
- Src
Path string - The /ifs path of user supplied source snapshot. This will be null for writable snapshots pending delete.
- Src
Snap string - The user supplied source snapshot name or ID. This will be null for writable snapshots pending delete.
- State string
- Writable Snapshot state.
- created Double
- The Unix Epoch time the writable snapshot was created.
- dst
Path String - The user supplied /ifs path of writable snapshot.
- id Double
- The system ID given to the writable snapshot. This is useful for debugging.
- log
Size Double - The sum in bytes of logical size of files in this writable snapshot.
- phys
Size Double - The amount of storage in bytes used to store this writable snapshot.
- src
Id Double - The system ID of the user supplied source snapshot. This is useful for debugging.
- src
Path String - The /ifs path of user supplied source snapshot. This will be null for writable snapshots pending delete.
- src
Snap String - The user supplied source snapshot name or ID. This will be null for writable snapshots pending delete.
- state String
- Writable Snapshot state.
- created number
- The Unix Epoch time the writable snapshot was created.
- dst
Path string - The user supplied /ifs path of writable snapshot.
- id number
- The system ID given to the writable snapshot. This is useful for debugging.
- log
Size number - The sum in bytes of logical size of files in this writable snapshot.
- phys
Size number - The amount of storage in bytes used to store this writable snapshot.
- src
Id number - The system ID of the user supplied source snapshot. This is useful for debugging.
- src
Path string - The /ifs path of user supplied source snapshot. This will be null for writable snapshots pending delete.
- src
Snap string - The user supplied source snapshot name or ID. This will be null for writable snapshots pending delete.
- state string
- Writable Snapshot state.
- created float
- The Unix Epoch time the writable snapshot was created.
- dst_
path str - The user supplied /ifs path of writable snapshot.
- id float
- The system ID given to the writable snapshot. This is useful for debugging.
- log_
size float - The sum in bytes of logical size of files in this writable snapshot.
- phys_
size float - The amount of storage in bytes used to store this writable snapshot.
- src_
id float - The system ID of the user supplied source snapshot. This is useful for debugging.
- src_
path str - The /ifs path of user supplied source snapshot. This will be null for writable snapshots pending delete.
- src_
snap str - The user supplied source snapshot name or ID. This will be null for writable snapshots pending delete.
- state str
- Writable Snapshot state.
- created Number
- The Unix Epoch time the writable snapshot was created.
- dst
Path String - The user supplied /ifs path of writable snapshot.
- id Number
- The system ID given to the writable snapshot. This is useful for debugging.
- log
Size Number - The sum in bytes of logical size of files in this writable snapshot.
- phys
Size Number - The amount of storage in bytes used to store this writable snapshot.
- src
Id Number - The system ID of the user supplied source snapshot. This is useful for debugging.
- src
Path String - The /ifs path of user supplied source snapshot. This will be null for writable snapshots pending delete.
- src
Snap String - The user supplied source snapshot name or ID. This will be null for writable snapshots pending delete.
- state String
- Writable Snapshot state.
Package Details
- Repository
- powerscale dell/terraform-provider-powerscale
- License
- Notes
- This Pulumi package is based on the
powerscale
Terraform Provider.