1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getCfsFileSystems
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getCfsFileSystems

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query the detail information of cloud file systems(CFS).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const fileSystems = tencentcloud.getCfsFileSystems({
        availabilityZone: "ap-guangzhou-3",
        fileSystemId: "cfs-6hgquxmj",
        name: "test",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    file_systems = tencentcloud.get_cfs_file_systems(availability_zone="ap-guangzhou-3",
        file_system_id="cfs-6hgquxmj",
        name="test")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetCfsFileSystems(ctx, &tencentcloud.GetCfsFileSystemsArgs{
    			AvailabilityZone: pulumi.StringRef("ap-guangzhou-3"),
    			FileSystemId:     pulumi.StringRef("cfs-6hgquxmj"),
    			Name:             pulumi.StringRef("test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var fileSystems = Tencentcloud.GetCfsFileSystems.Invoke(new()
        {
            AvailabilityZone = "ap-guangzhou-3",
            FileSystemId = "cfs-6hgquxmj",
            Name = "test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetCfsFileSystemsArgs;
    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 fileSystems = TencentcloudFunctions.getCfsFileSystems(GetCfsFileSystemsArgs.builder()
                .availabilityZone("ap-guangzhou-3")
                .fileSystemId("cfs-6hgquxmj")
                .name("test")
                .build());
    
        }
    }
    
    variables:
      fileSystems:
        fn::invoke:
          function: tencentcloud:getCfsFileSystems
          arguments:
            availabilityZone: ap-guangzhou-3
            fileSystemId: cfs-6hgquxmj
            name: test
    

    Using getCfsFileSystems

    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 getCfsFileSystems(args: GetCfsFileSystemsArgs, opts?: InvokeOptions): Promise<GetCfsFileSystemsResult>
    function getCfsFileSystemsOutput(args: GetCfsFileSystemsOutputArgs, opts?: InvokeOptions): Output<GetCfsFileSystemsResult>
    def get_cfs_file_systems(availability_zone: Optional[str] = None,
                             file_system_id: Optional[str] = None,
                             id: Optional[str] = None,
                             name: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             subnet_id: Optional[str] = None,
                             vpc_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetCfsFileSystemsResult
    def get_cfs_file_systems_output(availability_zone: Optional[pulumi.Input[str]] = None,
                             file_system_id: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             subnet_id: Optional[pulumi.Input[str]] = None,
                             vpc_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetCfsFileSystemsResult]
    func GetCfsFileSystems(ctx *Context, args *GetCfsFileSystemsArgs, opts ...InvokeOption) (*GetCfsFileSystemsResult, error)
    func GetCfsFileSystemsOutput(ctx *Context, args *GetCfsFileSystemsOutputArgs, opts ...InvokeOption) GetCfsFileSystemsResultOutput

    > Note: This function is named GetCfsFileSystems in the Go SDK.

    public static class GetCfsFileSystems 
    {
        public static Task<GetCfsFileSystemsResult> InvokeAsync(GetCfsFileSystemsArgs args, InvokeOptions? opts = null)
        public static Output<GetCfsFileSystemsResult> Invoke(GetCfsFileSystemsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCfsFileSystemsResult> getCfsFileSystems(GetCfsFileSystemsArgs args, InvokeOptions options)
    public static Output<GetCfsFileSystemsResult> getCfsFileSystems(GetCfsFileSystemsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCfsFileSystems:getCfsFileSystems
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AvailabilityZone string
    The available zone that the file system locates at.
    FileSystemId string
    A specified file system ID used to query.
    Id string
    Name string
    A file system name used to query.
    ResultOutputFile string
    Used to save results.
    SubnetId string
    ID of a vpc subnet.
    VpcId string
    ID of the vpc to be queried.
    AvailabilityZone string
    The available zone that the file system locates at.
    FileSystemId string
    A specified file system ID used to query.
    Id string
    Name string
    A file system name used to query.
    ResultOutputFile string
    Used to save results.
    SubnetId string
    ID of a vpc subnet.
    VpcId string
    ID of the vpc to be queried.
    availabilityZone String
    The available zone that the file system locates at.
    fileSystemId String
    A specified file system ID used to query.
    id String
    name String
    A file system name used to query.
    resultOutputFile String
    Used to save results.
    subnetId String
    ID of a vpc subnet.
    vpcId String
    ID of the vpc to be queried.
    availabilityZone string
    The available zone that the file system locates at.
    fileSystemId string
    A specified file system ID used to query.
    id string
    name string
    A file system name used to query.
    resultOutputFile string
    Used to save results.
    subnetId string
    ID of a vpc subnet.
    vpcId string
    ID of the vpc to be queried.
    availability_zone str
    The available zone that the file system locates at.
    file_system_id str
    A specified file system ID used to query.
    id str
    name str
    A file system name used to query.
    result_output_file str
    Used to save results.
    subnet_id str
    ID of a vpc subnet.
    vpc_id str
    ID of the vpc to be queried.
    availabilityZone String
    The available zone that the file system locates at.
    fileSystemId String
    A specified file system ID used to query.
    id String
    name String
    A file system name used to query.
    resultOutputFile String
    Used to save results.
    subnetId String
    ID of a vpc subnet.
    vpcId String
    ID of the vpc to be queried.

    getCfsFileSystems Result

    The following output properties are available:

    FileSystemLists List<GetCfsFileSystemsFileSystemList>
    An information list of cloud file system. Each element contains the following attributes:
    Id string
    AvailabilityZone string
    The available zone that the file system locates at.
    FileSystemId string
    ID of the file system.
    Name string
    Name of the file system.
    ResultOutputFile string
    SubnetId string
    VpcId string
    FileSystemLists []GetCfsFileSystemsFileSystemList
    An information list of cloud file system. Each element contains the following attributes:
    Id string
    AvailabilityZone string
    The available zone that the file system locates at.
    FileSystemId string
    ID of the file system.
    Name string
    Name of the file system.
    ResultOutputFile string
    SubnetId string
    VpcId string
    fileSystemLists List<GetCfsFileSystemsFileSystemList>
    An information list of cloud file system. Each element contains the following attributes:
    id String
    availabilityZone String
    The available zone that the file system locates at.
    fileSystemId String
    ID of the file system.
    name String
    Name of the file system.
    resultOutputFile String
    subnetId String
    vpcId String
    fileSystemLists GetCfsFileSystemsFileSystemList[]
    An information list of cloud file system. Each element contains the following attributes:
    id string
    availabilityZone string
    The available zone that the file system locates at.
    fileSystemId string
    ID of the file system.
    name string
    Name of the file system.
    resultOutputFile string
    subnetId string
    vpcId string
    file_system_lists Sequence[GetCfsFileSystemsFileSystemList]
    An information list of cloud file system. Each element contains the following attributes:
    id str
    availability_zone str
    The available zone that the file system locates at.
    file_system_id str
    ID of the file system.
    name str
    Name of the file system.
    result_output_file str
    subnet_id str
    vpc_id str
    fileSystemLists List<Property Map>
    An information list of cloud file system. Each element contains the following attributes:
    id String
    availabilityZone String
    The available zone that the file system locates at.
    fileSystemId String
    ID of the file system.
    name String
    Name of the file system.
    resultOutputFile String
    subnetId String
    vpcId String

    Supporting Types

    GetCfsFileSystemsFileSystemList

    AccessGroupId string
    ID of the access group.
    AvailabilityZone string
    The available zone that the file system locates at.
    CreateTime string
    Creation time of the file system.
    FileSystemId string
    A specified file system ID used to query.
    FsId string
    Mount root-directory.
    MountIp string
    IP of the file system.
    Name string
    A file system name used to query.
    Protocol string
    Protocol of the file system.
    SizeLimit double
    Size limit of the file system.
    SizeUsed double
    Size used of the file system.
    Status string
    Status of the file system.
    StorageType string
    Storage type of the file system.
    AccessGroupId string
    ID of the access group.
    AvailabilityZone string
    The available zone that the file system locates at.
    CreateTime string
    Creation time of the file system.
    FileSystemId string
    A specified file system ID used to query.
    FsId string
    Mount root-directory.
    MountIp string
    IP of the file system.
    Name string
    A file system name used to query.
    Protocol string
    Protocol of the file system.
    SizeLimit float64
    Size limit of the file system.
    SizeUsed float64
    Size used of the file system.
    Status string
    Status of the file system.
    StorageType string
    Storage type of the file system.
    accessGroupId String
    ID of the access group.
    availabilityZone String
    The available zone that the file system locates at.
    createTime String
    Creation time of the file system.
    fileSystemId String
    A specified file system ID used to query.
    fsId String
    Mount root-directory.
    mountIp String
    IP of the file system.
    name String
    A file system name used to query.
    protocol String
    Protocol of the file system.
    sizeLimit Double
    Size limit of the file system.
    sizeUsed Double
    Size used of the file system.
    status String
    Status of the file system.
    storageType String
    Storage type of the file system.
    accessGroupId string
    ID of the access group.
    availabilityZone string
    The available zone that the file system locates at.
    createTime string
    Creation time of the file system.
    fileSystemId string
    A specified file system ID used to query.
    fsId string
    Mount root-directory.
    mountIp string
    IP of the file system.
    name string
    A file system name used to query.
    protocol string
    Protocol of the file system.
    sizeLimit number
    Size limit of the file system.
    sizeUsed number
    Size used of the file system.
    status string
    Status of the file system.
    storageType string
    Storage type of the file system.
    access_group_id str
    ID of the access group.
    availability_zone str
    The available zone that the file system locates at.
    create_time str
    Creation time of the file system.
    file_system_id str
    A specified file system ID used to query.
    fs_id str
    Mount root-directory.
    mount_ip str
    IP of the file system.
    name str
    A file system name used to query.
    protocol str
    Protocol of the file system.
    size_limit float
    Size limit of the file system.
    size_used float
    Size used of the file system.
    status str
    Status of the file system.
    storage_type str
    Storage type of the file system.
    accessGroupId String
    ID of the access group.
    availabilityZone String
    The available zone that the file system locates at.
    createTime String
    Creation time of the file system.
    fileSystemId String
    A specified file system ID used to query.
    fsId String
    Mount root-directory.
    mountIp String
    IP of the file system.
    name String
    A file system name used to query.
    protocol String
    Protocol of the file system.
    sizeLimit Number
    Size limit of the file system.
    sizeUsed Number
    Size used of the file system.
    status String
    Status of the file system.
    storageType String
    Storage type of the file system.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack