1. Packages
  2. Volcengine
  3. API Docs
  4. vepfs
  5. Filesets
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.vepfs.Filesets

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

Use this data source to query detailed information of vepfs filesets

Example Usage

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func Filesets(ctx *Context, args *FilesetsArgs, opts ...InvokeOption) (*FilesetsResult, error)
func FilesetsOutput(ctx *Context, args *FilesetsOutputArgs, opts ...InvokeOption) FilesetsResultOutput
Copy
public static class Filesets 
{
    public static Task<FilesetsResult> InvokeAsync(FilesetsArgs args, InvokeOptions? opts = null)
    public static Output<FilesetsResult> Invoke(FilesetsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<FilesetsResult> filesets(FilesetsArgs args, InvokeOptions options)
public static Output<FilesetsResult> filesets(FilesetsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:vepfs:Filesets
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FileSystemId This property is required. string
The id of Vepfs File System.
FilesetId string
The id of Vepfs Fileset.
FilesetName string
The name of Vepfs Fileset. This field support fuzzy query.
FilesetPath string
The path of Vepfs Fileset. This field support fuzzy query.
NameRegex string
A Name Regex of Resource.
OutputFile string
File name where to save data source results.
Statuses List<string>
The query status list of Vepfs Fileset.
FileSystemId This property is required. string
The id of Vepfs File System.
FilesetId string
The id of Vepfs Fileset.
FilesetName string
The name of Vepfs Fileset. This field support fuzzy query.
FilesetPath string
The path of Vepfs Fileset. This field support fuzzy query.
NameRegex string
A Name Regex of Resource.
OutputFile string
File name where to save data source results.
Statuses []string
The query status list of Vepfs Fileset.
fileSystemId This property is required. String
The id of Vepfs File System.
filesetId String
The id of Vepfs Fileset.
filesetName String
The name of Vepfs Fileset. This field support fuzzy query.
filesetPath String
The path of Vepfs Fileset. This field support fuzzy query.
nameRegex String
A Name Regex of Resource.
outputFile String
File name where to save data source results.
statuses List<String>
The query status list of Vepfs Fileset.
fileSystemId This property is required. string
The id of Vepfs File System.
filesetId string
The id of Vepfs Fileset.
filesetName string
The name of Vepfs Fileset. This field support fuzzy query.
filesetPath string
The path of Vepfs Fileset. This field support fuzzy query.
nameRegex string
A Name Regex of Resource.
outputFile string
File name where to save data source results.
statuses string[]
The query status list of Vepfs Fileset.
file_system_id This property is required. str
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.
fileSystemId This property is required. String
The id of Vepfs File System.
filesetId String
The id of Vepfs Fileset.
filesetName String
The name of Vepfs Fileset. This field support fuzzy query.
filesetPath String
The path of Vepfs Fileset. This field support fuzzy query.
nameRegex String
A Name Regex of Resource.
outputFile 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:

FileSystemId string
Filesets List<FilesetsFileset>
The collection of query.
Id string
The provider-assigned unique ID for this managed resource.
TotalCount int
The total count of query.
FilesetId string
The id of the vepfs fileset.
FilesetName string
The name of the vepfs fileset.
FilesetPath string
The path of the vepfs fileset.
NameRegex string
OutputFile string
Statuses List<string>
The status of the vepfs fileset.
FileSystemId string
Filesets []FilesetsFileset
The collection of query.
Id string
The provider-assigned unique ID for this managed resource.
TotalCount int
The total count of query.
FilesetId string
The id of the vepfs fileset.
FilesetName string
The name of the vepfs fileset.
FilesetPath string
The path of the vepfs fileset.
NameRegex string
OutputFile string
Statuses []string
The status of the vepfs fileset.
fileSystemId String
filesets List<FilesetsFileset>
The collection of query.
id String
The provider-assigned unique ID for this managed resource.
totalCount Integer
The total count of query.
filesetId String
The id of the vepfs fileset.
filesetName String
The name of the vepfs fileset.
filesetPath String
The path of the vepfs fileset.
nameRegex String
outputFile String
statuses List<String>
The status of the vepfs fileset.
fileSystemId string
filesets FilesetsFileset[]
The collection of query.
id string
The provider-assigned unique ID for this managed resource.
totalCount number
The total count of query.
filesetId string
The id of the vepfs fileset.
filesetName string
The name of the vepfs fileset.
filesetPath string
The path of the vepfs fileset.
nameRegex string
outputFile string
statuses string[]
The status of the vepfs fileset.
file_system_id str
filesets Sequence[FilesetsFileset]
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.
fileSystemId String
filesets List<Property Map>
The collection of query.
id String
The provider-assigned unique ID for this managed resource.
totalCount Number
The total count of query.
filesetId String
The id of the vepfs fileset.
filesetName String
The name of the vepfs fileset.
filesetPath String
The path of the vepfs fileset.
nameRegex String
outputFile String
statuses List<String>
The status of the vepfs fileset.

Supporting Types

FilesetsFileset

BandwidthQos This property is required. int
The bandwidth Qos of the vepfs fileset.
CapacityLimit This property is required. int
The capacity limit of the vepfs fileset. Unit: GiB.
CapacityUsed This property is required. int
The used capacity of the vepfs fileset. Unit: GiB.
CreateTime This property is required. string
The create time of the vepfs fileset.
FileLimit This property is required. 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.
FileUsed This property is required. int
The used file number of the vepfs fileset.
FilesetId This property is required. string
The id of Vepfs Fileset.
FilesetName This property is required. string
The name of Vepfs Fileset. This field support fuzzy query.
FilesetPath This property is required. string
The path of Vepfs Fileset. This field support fuzzy query.
Id This property is required. string
The id of the vepfs fileset.
IopsQos This property is required. int
The IOPS Qos of the vepfs fileset.
MaxInodeNum This property is required. int
The max number of inode in the vepfs fileset.
Status This property is required. string
The query status list of Vepfs Fileset.
BandwidthQos This property is required. int
The bandwidth Qos of the vepfs fileset.
CapacityLimit This property is required. int
The capacity limit of the vepfs fileset. Unit: GiB.
CapacityUsed This property is required. int
The used capacity of the vepfs fileset. Unit: GiB.
CreateTime This property is required. string
The create time of the vepfs fileset.
FileLimit This property is required. 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.
FileUsed This property is required. int
The used file number of the vepfs fileset.
FilesetId This property is required. string
The id of Vepfs Fileset.
FilesetName This property is required. string
The name of Vepfs Fileset. This field support fuzzy query.
FilesetPath This property is required. string
The path of Vepfs Fileset. This field support fuzzy query.
Id This property is required. string
The id of the vepfs fileset.
IopsQos This property is required. int
The IOPS Qos of the vepfs fileset.
MaxInodeNum This property is required. int
The max number of inode in the vepfs fileset.
Status This property is required. string
The query status list of Vepfs Fileset.
bandwidthQos This property is required. Integer
The bandwidth Qos of the vepfs fileset.
capacityLimit This property is required. Integer
The capacity limit of the vepfs fileset. Unit: GiB.
capacityUsed This property is required. Integer
The used capacity of the vepfs fileset. Unit: GiB.
createTime This property is required. String
The create time of the vepfs fileset.
fileLimit This property is required. 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.
fileUsed This property is required. Integer
The used file number of the vepfs fileset.
filesetId This property is required. String
The id of Vepfs Fileset.
filesetName This property is required. String
The name of Vepfs Fileset. This field support fuzzy query.
filesetPath This property is required. String
The path of Vepfs Fileset. This field support fuzzy query.
id This property is required. String
The id of the vepfs fileset.
iopsQos This property is required. Integer
The IOPS Qos of the vepfs fileset.
maxInodeNum This property is required. Integer
The max number of inode in the vepfs fileset.
status This property is required. String
The query status list of Vepfs Fileset.
bandwidthQos This property is required. number
The bandwidth Qos of the vepfs fileset.
capacityLimit This property is required. number
The capacity limit of the vepfs fileset. Unit: GiB.
capacityUsed This property is required. number
The used capacity of the vepfs fileset. Unit: GiB.
createTime This property is required. string
The create time of the vepfs fileset.
fileLimit This property is required. 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.
fileUsed This property is required. number
The used file number of the vepfs fileset.
filesetId This property is required. string
The id of Vepfs Fileset.
filesetName This property is required. string
The name of Vepfs Fileset. This field support fuzzy query.
filesetPath This property is required. string
The path of Vepfs Fileset. This field support fuzzy query.
id This property is required. string
The id of the vepfs fileset.
iopsQos This property is required. number
The IOPS Qos of the vepfs fileset.
maxInodeNum This property is required. number
The max number of inode in the vepfs fileset.
status This property is required. string
The query status list of Vepfs Fileset.
bandwidth_qos This property is required. int
The bandwidth Qos of the vepfs fileset.
capacity_limit This property is required. int
The capacity limit of the vepfs fileset. Unit: GiB.
capacity_used This property is required. int
The used capacity of the vepfs fileset. Unit: GiB.
create_time This property is required. str
The create time of the vepfs fileset.
file_limit This property is required. 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 This property is required. int
The used file number of the vepfs fileset.
fileset_id This property is required. str
The id of Vepfs Fileset.
fileset_name This property is required. str
The name of Vepfs Fileset. This field support fuzzy query.
fileset_path This property is required. str
The path of Vepfs Fileset. This field support fuzzy query.
id This property is required. str
The id of the vepfs fileset.
iops_qos This property is required. int
The IOPS Qos of the vepfs fileset.
max_inode_num This property is required. int
The max number of inode in the vepfs fileset.
status This property is required. str
The query status list of Vepfs Fileset.
bandwidthQos This property is required. Number
The bandwidth Qos of the vepfs fileset.
capacityLimit This property is required. Number
The capacity limit of the vepfs fileset. Unit: GiB.
capacityUsed This property is required. Number
The used capacity of the vepfs fileset. Unit: GiB.
createTime This property is required. String
The create time of the vepfs fileset.
fileLimit This property is required. 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.
fileUsed This property is required. Number
The used file number of the vepfs fileset.
filesetId This property is required. String
The id of Vepfs Fileset.
filesetName This property is required. String
The name of Vepfs Fileset. This field support fuzzy query.
filesetPath This property is required. String
The path of Vepfs Fileset. This field support fuzzy query.
id This property is required. String
The id of the vepfs fileset.
iopsQos This property is required. Number
The IOPS Qos of the vepfs fileset.
maxInodeNum This property is required. Number
The max number of inode in the vepfs fileset.
status This property is required. 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.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine