@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
101 lines • 3.35 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFileSystemsOutput = exports.getFileSystems = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to query detailed information of vepfs file systems
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
* vpcName: "acc-test-vpc",
* cidrBlock: "172.16.0.0/16",
* });
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
* subnetName: "acc-test-subnet",
* cidrBlock: "172.16.0.0/24",
* zoneId: "cn-beijing-a",
* vpcId: fooVpc.id,
* });
* const fooFileSystem = new volcengine.vepfs.FileSystem("fooFileSystem", {
* fileSystemName: "acc-test-file-system",
* subnetId: fooSubnet.id,
* storeType: "Advance_100",
* description: "tf-test",
* capacity: 12,
* project: "default",
* enableRestripe: false,
* tags: [{
* key: "k1",
* value: "v1",
* }],
* });
* const fooFileSystems = volcengine.vepfs.getFileSystemsOutput({
* ids: [fooFileSystem.id],
* });
* ```
*/
function getFileSystems(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:vepfs/getFileSystems:getFileSystems", {
"fileSystemName": args.fileSystemName,
"ids": args.ids,
"nameRegex": args.nameRegex,
"outputFile": args.outputFile,
"project": args.project,
"statuses": args.statuses,
"storeType": args.storeType,
"zoneId": args.zoneId,
}, opts);
}
exports.getFileSystems = getFileSystems;
/**
* Use this data source to query detailed information of vepfs file systems
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
* vpcName: "acc-test-vpc",
* cidrBlock: "172.16.0.0/16",
* });
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
* subnetName: "acc-test-subnet",
* cidrBlock: "172.16.0.0/24",
* zoneId: "cn-beijing-a",
* vpcId: fooVpc.id,
* });
* const fooFileSystem = new volcengine.vepfs.FileSystem("fooFileSystem", {
* fileSystemName: "acc-test-file-system",
* subnetId: fooSubnet.id,
* storeType: "Advance_100",
* description: "tf-test",
* capacity: 12,
* project: "default",
* enableRestripe: false,
* tags: [{
* key: "k1",
* value: "v1",
* }],
* });
* const fooFileSystems = volcengine.vepfs.getFileSystemsOutput({
* ids: [fooFileSystem.id],
* });
* ```
*/
function getFileSystemsOutput(args, opts) {
return pulumi.output(args).apply((a) => getFileSystems(a, opts));
}
exports.getFileSystemsOutput = getFileSystemsOutput;
//# sourceMappingURL=getFileSystems.js.map