@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
132 lines (131 loc) • 3.16 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of nas snapshots
* ## Example Usage
*
* ```typescript
* 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",
* ],
* });
* ```
*/
export declare function getSnapshots(args?: GetSnapshotsArgs, opts?: pulumi.InvokeOptions): Promise<GetSnapshotsResult>;
/**
* A collection of arguments for invoking getSnapshots.
*/
export interface GetSnapshotsArgs {
/**
* The ID of file system.
*/
fileSystemId?: string;
/**
* A list of Snapshot IDs.
*/
ids?: string[];
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The name of snapshot.
*/
snapshotName?: string;
/**
* The type of snapshot.
*/
snapshotType?: string;
/**
* The status of snapshot.
*/
status?: string;
}
/**
* A collection of values returned by getSnapshots.
*/
export interface GetSnapshotsResult {
/**
* The id of file system.
*/
readonly fileSystemId?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
readonly outputFile?: string;
/**
* The name of snapshot.
*/
readonly snapshotName?: string;
/**
* The type of snapshot.
*/
readonly snapshotType?: string;
/**
* The collection of query.
*/
readonly snapshots: outputs.nas.GetSnapshotsSnapshot[];
/**
* The status of snapshot.
*/
readonly status?: string;
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of nas snapshots
* ## Example Usage
*
* ```typescript
* 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",
* ],
* });
* ```
*/
export declare function getSnapshotsOutput(args?: GetSnapshotsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSnapshotsResult>;
/**
* A collection of arguments for invoking getSnapshots.
*/
export interface GetSnapshotsOutputArgs {
/**
* The ID of file system.
*/
fileSystemId?: pulumi.Input<string>;
/**
* A list of Snapshot IDs.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The name of snapshot.
*/
snapshotName?: pulumi.Input<string>;
/**
* The type of snapshot.
*/
snapshotType?: pulumi.Input<string>;
/**
* The status of snapshot.
*/
status?: pulumi.Input<string>;
}