Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.vepfs.Filesets
Explore with Pulumi AI
Use this data source to query detailed information of vepfs filesets
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-vpc",
CidrBlock = "172.16.0.0/16",
});
var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.0.0/24",
ZoneId = "cn-beijing-a",
VpcId = fooVpc.Id,
});
var fooFileSystem = new Volcengine.Vepfs.FileSystem("fooFileSystem", new()
{
FileSystemName = "acc-test-file-system",
SubnetId = fooSubnet.Id,
StoreType = "Advance_100",
Description = "tf-test",
Capacity = 12,
Project = "default",
EnableRestripe = false,
Tags = new[]
{
new Volcengine.Vepfs.Inputs.FileSystemTagArgs
{
Key = "k1",
Value = "v1",
},
},
});
var fooFileset = new Volcengine.Vepfs.Fileset("fooFileset", new()
{
FileSystemId = fooFileSystem.Id,
FilesetName = "acc-test-fileset",
FilesetPath = "/tf-test/",
MaxIops = 100,
MaxBandwidth = 10,
FileLimit = 20,
CapacityLimit = 30,
});
var fooFilesets = Volcengine.Vepfs.Filesets.Invoke(new()
{
FileSystemId = fooFileSystem.Id,
FilesetId = fooFileset.Id,
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vepfs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String("cn-beijing-a"),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
fooFileSystem, err := vepfs.NewFileSystem(ctx, "fooFileSystem", &vepfs.FileSystemArgs{
FileSystemName: pulumi.String("acc-test-file-system"),
SubnetId: fooSubnet.ID(),
StoreType: pulumi.String("Advance_100"),
Description: pulumi.String("tf-test"),
Capacity: pulumi.Int(12),
Project: pulumi.String("default"),
EnableRestripe: pulumi.Bool(false),
Tags: vepfs.FileSystemTagArray{
&vepfs.FileSystemTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
fooFileset, err := vepfs.NewFileset(ctx, "fooFileset", &vepfs.FilesetArgs{
FileSystemId: fooFileSystem.ID(),
FilesetName: pulumi.String("acc-test-fileset"),
FilesetPath: pulumi.String("/tf-test/"),
MaxIops: pulumi.Int(100),
MaxBandwidth: pulumi.Int(10),
FileLimit: pulumi.Int(20),
CapacityLimit: pulumi.Int(30),
})
if err != nil {
return err
}
_ = vepfs.FilesetsOutput(ctx, vepfs.FilesetsOutputArgs{
FileSystemId: fooFileSystem.ID(),
FilesetId: fooFileset.ID(),
}, nil)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.vepfs.FileSystem;
import com.pulumi.volcengine.vepfs.FileSystemArgs;
import com.pulumi.volcengine.vepfs.inputs.FileSystemTagArgs;
import com.pulumi.volcengine.vepfs.Fileset;
import com.pulumi.volcengine.vepfs.FilesetArgs;
import com.pulumi.volcengine.vepfs.VepfsFunctions;
import com.pulumi.volcengine.vepfs.inputs.FilesetsArgs;
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) {
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.0.0/24")
.zoneId("cn-beijing-a")
.vpcId(fooVpc.id())
.build());
var fooFileSystem = new FileSystem("fooFileSystem", FileSystemArgs.builder()
.fileSystemName("acc-test-file-system")
.subnetId(fooSubnet.id())
.storeType("Advance_100")
.description("tf-test")
.capacity(12)
.project("default")
.enableRestripe(false)
.tags(FileSystemTagArgs.builder()
.key("k1")
.value("v1")
.build())
.build());
var fooFileset = new Fileset("fooFileset", FilesetArgs.builder()
.fileSystemId(fooFileSystem.id())
.filesetName("acc-test-fileset")
.filesetPath("/tf-test/")
.maxIops(100)
.maxBandwidth(10)
.fileLimit(20)
.capacityLimit(30)
.build());
final var fooFilesets = VepfsFunctions.Filesets(FilesetsArgs.builder()
.fileSystemId(fooFileSystem.id())
.filesetId(fooFileset.id())
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-vpc",
cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
subnet_name="acc-test-subnet",
cidr_block="172.16.0.0/24",
zone_id="cn-beijing-a",
vpc_id=foo_vpc.id)
foo_file_system = volcengine.vepfs.FileSystem("fooFileSystem",
file_system_name="acc-test-file-system",
subnet_id=foo_subnet.id,
store_type="Advance_100",
description="tf-test",
capacity=12,
project="default",
enable_restripe=False,
tags=[volcengine.vepfs.FileSystemTagArgs(
key="k1",
value="v1",
)])
foo_fileset = volcengine.vepfs.Fileset("fooFileset",
file_system_id=foo_file_system.id,
fileset_name="acc-test-fileset",
fileset_path="/tf-test/",
max_iops=100,
max_bandwidth=10,
file_limit=20,
capacity_limit=30)
foo_filesets = volcengine.vepfs.filesets_output(file_system_id=foo_file_system.id,
fileset_id=foo_fileset.id)
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 fooFileset = new volcengine.vepfs.Fileset("fooFileset", {
fileSystemId: fooFileSystem.id,
filesetName: "acc-test-fileset",
filesetPath: "/tf-test/",
maxIops: 100,
maxBandwidth: 10,
fileLimit: 20,
capacityLimit: 30,
});
const fooFilesets = volcengine.vepfs.FilesetsOutput({
fileSystemId: fooFileSystem.id,
filesetId: fooFileset.id,
});
resources:
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc
cidrBlock: 172.16.0.0/16
fooSubnet:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.0.0/24
zoneId: cn-beijing-a
vpcId: ${fooVpc.id}
fooFileSystem:
type: volcengine:vepfs:FileSystem
properties:
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
fooFileset:
type: volcengine:vepfs:Fileset
properties:
fileSystemId: ${fooFileSystem.id}
filesetName: acc-test-fileset
filesetPath: /tf-test/
maxIops: 100
maxBandwidth: 10
fileLimit: 20
capacityLimit: 30
variables:
fooFilesets:
fn::invoke:
Function: volcengine:vepfs:Filesets
Arguments:
fileSystemId: ${fooFileSystem.id}
filesetId: ${fooFileset.id}
Using Filesets
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 filesets(args: FilesetsArgs, opts?: InvokeOptions): Promise<FilesetsResult>
function filesetsOutput(args: FilesetsOutputArgs, opts?: InvokeOptions): Output<FilesetsResult>
def filesets(file_system_id: Optional[str] = None,
fileset_id: Optional[str] = None,
fileset_name: Optional[str] = None,
fileset_path: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
statuses: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> FilesetsResult
def filesets_output(file_system_id: Optional[pulumi.Input[str]] = None,
fileset_id: Optional[pulumi.Input[str]] = None,
fileset_name: Optional[pulumi.Input[str]] = None,
fileset_path: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[FilesetsResult]
func Filesets(ctx *Context, args *FilesetsArgs, opts ...InvokeOption) (*FilesetsResult, error)
func FilesetsOutput(ctx *Context, args *FilesetsOutputArgs, opts ...InvokeOption) FilesetsResultOutput
public static class Filesets
{
public static Task<FilesetsResult> InvokeAsync(FilesetsArgs args, InvokeOptions? opts = null)
public static Output<FilesetsResult> Invoke(FilesetsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<FilesetsResult> filesets(FilesetsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:vepfs:Filesets
arguments:
# arguments dictionary
The following arguments are supported:
- File
System stringId - The id of Vepfs File System.
- Fileset
Id string - The id of Vepfs Fileset.
- Fileset
Name string - The name of Vepfs Fileset. This field support fuzzy query.
- Fileset
Path string - The path of Vepfs Fileset. This field support fuzzy query.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Statuses List<string>
- The query status list of Vepfs Fileset.
- File
System stringId - The id of Vepfs File System.
- Fileset
Id string - The id of Vepfs Fileset.
- Fileset
Name string - The name of Vepfs Fileset. This field support fuzzy query.
- Fileset
Path string - The path of Vepfs Fileset. This field support fuzzy query.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Statuses []string
- The query status list of Vepfs Fileset.
- file
System StringId - The id of Vepfs File System.
- fileset
Id String - The id of Vepfs Fileset.
- fileset
Name String - The name of Vepfs Fileset. This field support fuzzy query.
- fileset
Path String - The path of Vepfs Fileset. This field support fuzzy query.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- statuses List<String>
- The query status list of Vepfs Fileset.
- file
System stringId - The id of Vepfs File System.
- fileset
Id string - The id of Vepfs Fileset.
- fileset
Name string - The name of Vepfs Fileset. This field support fuzzy query.
- fileset
Path string - The path of Vepfs Fileset. This field support fuzzy query.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- statuses string[]
- The query status list of Vepfs Fileset.
- file_
system_ strid - The id of Vepfs File System.
- fileset_
id str - The id of Vepfs Fileset.
- fileset_
name str - The name of Vepfs Fileset. This field support fuzzy query.
- fileset_
path str - The path of Vepfs Fileset. This field support fuzzy query.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- statuses Sequence[str]
- The query status list of Vepfs Fileset.
- file
System StringId - The id of Vepfs File System.
- fileset
Id String - The id of Vepfs Fileset.
- fileset
Name String - The name of Vepfs Fileset. This field support fuzzy query.
- fileset
Path String - The path of Vepfs Fileset. This field support fuzzy query.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- statuses List<String>
- The query status list of Vepfs Fileset.
Filesets Result
The following output properties are available:
- File
System stringId - Filesets
List<Filesets
Fileset> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Fileset
Id string - The id of the vepfs fileset.
- Fileset
Name string - The name of the vepfs fileset.
- Fileset
Path string - The path of the vepfs fileset.
- Name
Regex string - Output
File string - Statuses List<string>
- The status of the vepfs fileset.
- File
System stringId - Filesets
[]Filesets
Fileset - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Fileset
Id string - The id of the vepfs fileset.
- Fileset
Name string - The name of the vepfs fileset.
- Fileset
Path string - The path of the vepfs fileset.
- Name
Regex string - Output
File string - Statuses []string
- The status of the vepfs fileset.
- file
System StringId - filesets
List<Filesets
Fileset> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- fileset
Id String - The id of the vepfs fileset.
- fileset
Name String - The name of the vepfs fileset.
- fileset
Path String - The path of the vepfs fileset.
- name
Regex String - output
File String - statuses List<String>
- The status of the vepfs fileset.
- file
System stringId - filesets
Filesets
Fileset[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- fileset
Id string - The id of the vepfs fileset.
- fileset
Name string - The name of the vepfs fileset.
- fileset
Path string - The path of the vepfs fileset.
- name
Regex string - output
File string - statuses string[]
- The status of the vepfs fileset.
- file_
system_ strid - filesets
Sequence[Filesets
Fileset] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- fileset_
id str - The id of the vepfs fileset.
- fileset_
name str - The name of the vepfs fileset.
- fileset_
path str - The path of the vepfs fileset.
- name_
regex str - output_
file str - statuses Sequence[str]
- The status of the vepfs fileset.
- file
System StringId - filesets List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- fileset
Id String - The id of the vepfs fileset.
- fileset
Name String - The name of the vepfs fileset.
- fileset
Path String - The path of the vepfs fileset.
- name
Regex String - output
File String - statuses List<String>
- The status of the vepfs fileset.
Supporting Types
FilesetsFileset
- Bandwidth
Qos int - The bandwidth Qos of the vepfs fileset.
- Capacity
Limit int - The capacity limit of the vepfs fileset. Unit: GiB.
- Capacity
Used int - The used capacity of the vepfs fileset. Unit: GiB.
- Create
Time string - The create time of the vepfs fileset.
- File
Limit int - Quota for the number of files or directories. A return of 0 indicates that there is no quota limit set for the number of directories after the file.
- File
Used int - The used file number of the vepfs fileset.
- Fileset
Id string - The id of Vepfs Fileset.
- Fileset
Name string - The name of Vepfs Fileset. This field support fuzzy query.
- Fileset
Path string - The path of Vepfs Fileset. This field support fuzzy query.
- Id string
- The id of the vepfs fileset.
- Iops
Qos int - The IOPS Qos of the vepfs fileset.
- Max
Inode intNum - The max number of inode in the vepfs fileset.
- Status string
- The query status list of Vepfs Fileset.
- Bandwidth
Qos int - The bandwidth Qos of the vepfs fileset.
- Capacity
Limit int - The capacity limit of the vepfs fileset. Unit: GiB.
- Capacity
Used int - The used capacity of the vepfs fileset. Unit: GiB.
- Create
Time string - The create time of the vepfs fileset.
- File
Limit int - Quota for the number of files or directories. A return of 0 indicates that there is no quota limit set for the number of directories after the file.
- File
Used int - The used file number of the vepfs fileset.
- Fileset
Id string - The id of Vepfs Fileset.
- Fileset
Name string - The name of Vepfs Fileset. This field support fuzzy query.
- Fileset
Path string - The path of Vepfs Fileset. This field support fuzzy query.
- Id string
- The id of the vepfs fileset.
- Iops
Qos int - The IOPS Qos of the vepfs fileset.
- Max
Inode intNum - The max number of inode in the vepfs fileset.
- Status string
- The query status list of Vepfs Fileset.
- bandwidth
Qos Integer - The bandwidth Qos of the vepfs fileset.
- capacity
Limit Integer - The capacity limit of the vepfs fileset. Unit: GiB.
- capacity
Used Integer - The used capacity of the vepfs fileset. Unit: GiB.
- create
Time String - The create time of the vepfs fileset.
- file
Limit Integer - Quota for the number of files or directories. A return of 0 indicates that there is no quota limit set for the number of directories after the file.
- file
Used Integer - The used file number of the vepfs fileset.
- fileset
Id String - The id of Vepfs Fileset.
- fileset
Name String - The name of Vepfs Fileset. This field support fuzzy query.
- fileset
Path String - The path of Vepfs Fileset. This field support fuzzy query.
- id String
- The id of the vepfs fileset.
- iops
Qos Integer - The IOPS Qos of the vepfs fileset.
- max
Inode IntegerNum - The max number of inode in the vepfs fileset.
- status String
- The query status list of Vepfs Fileset.
- bandwidth
Qos number - The bandwidth Qos of the vepfs fileset.
- capacity
Limit number - The capacity limit of the vepfs fileset. Unit: GiB.
- capacity
Used number - The used capacity of the vepfs fileset. Unit: GiB.
- create
Time string - The create time of the vepfs fileset.
- file
Limit number - Quota for the number of files or directories. A return of 0 indicates that there is no quota limit set for the number of directories after the file.
- file
Used number - The used file number of the vepfs fileset.
- fileset
Id string - The id of Vepfs Fileset.
- fileset
Name string - The name of Vepfs Fileset. This field support fuzzy query.
- fileset
Path string - The path of Vepfs Fileset. This field support fuzzy query.
- id string
- The id of the vepfs fileset.
- iops
Qos number - The IOPS Qos of the vepfs fileset.
- max
Inode numberNum - The max number of inode in the vepfs fileset.
- status string
- The query status list of Vepfs Fileset.
- bandwidth_
qos int - The bandwidth Qos of the vepfs fileset.
- capacity_
limit int - The capacity limit of the vepfs fileset. Unit: GiB.
- capacity_
used int - The used capacity of the vepfs fileset. Unit: GiB.
- create_
time str - The create time of the vepfs fileset.
- file_
limit int - Quota for the number of files or directories. A return of 0 indicates that there is no quota limit set for the number of directories after the file.
- file_
used int - The used file number of the vepfs fileset.
- fileset_
id str - The id of Vepfs Fileset.
- fileset_
name str - The name of Vepfs Fileset. This field support fuzzy query.
- fileset_
path str - The path of Vepfs Fileset. This field support fuzzy query.
- id str
- The id of the vepfs fileset.
- iops_
qos int - The IOPS Qos of the vepfs fileset.
- max_
inode_ intnum - The max number of inode in the vepfs fileset.
- status str
- The query status list of Vepfs Fileset.
- bandwidth
Qos Number - The bandwidth Qos of the vepfs fileset.
- capacity
Limit Number - The capacity limit of the vepfs fileset. Unit: GiB.
- capacity
Used Number - The used capacity of the vepfs fileset. Unit: GiB.
- create
Time String - The create time of the vepfs fileset.
- file
Limit Number - Quota for the number of files or directories. A return of 0 indicates that there is no quota limit set for the number of directories after the file.
- file
Used Number - The used file number of the vepfs fileset.
- fileset
Id String - The id of Vepfs Fileset.
- fileset
Name String - The name of Vepfs Fileset. This field support fuzzy query.
- fileset
Path String - The path of Vepfs Fileset. This field support fuzzy query.
- id String
- The id of the vepfs fileset.
- iops
Qos Number - The IOPS Qos of the vepfs fileset.
- max
Inode NumberNum - The max number of inode in the vepfs fileset.
- status String
- The query status list of Vepfs Fileset.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.