Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.nas.FileSystems
Explore with Pulumi AI
Use this data source to query detailed information of nas file systems
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.nas.Zones({});
const fooFileSystem: volcengine.nas.FileSystem[] = [];
for (const range = {value: 0}; range.value < 3; range.value++) {
    fooFileSystem.push(new volcengine.nas.FileSystem(`fooFileSystem-${range.value}`, {
        fileSystemName: `acc-test-fs-${range.value}`,
        description: "acc-test",
        zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
        capacity: 103,
        projectName: "default",
        tags: [{
            key: "k1",
            value: "v1",
        }],
    }));
}
const fooFileSystems = volcengine.nas.FileSystemsOutput({
    ids: fooFileSystem.map(__item => __item.id),
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.nas.zones()
foo_file_system = []
for range in [{"value": i} for i in range(0, 3)]:
    foo_file_system.append(volcengine.nas.FileSystem(f"fooFileSystem-{range['value']}",
        file_system_name=f"acc-test-fs-{range['value']}",
        description="acc-test",
        zone_id=foo_zones.zones[0].id,
        capacity=103,
        project_name="default",
        tags=[volcengine.nas.FileSystemTagArgs(
            key="k1",
            value="v1",
        )]))
foo_file_systems = volcengine.nas.file_systems_output(ids=[__item.id for __item in foo_file_system])
package main
import (
	"fmt"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nas"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooZones, err := nas.Zones(ctx, nil, nil);
if err != nil {
return err
}
var fooFileSystem []*nas.FileSystem
for index := 0; index < 3; index++ {
    key0 := index
    val0 := index
__res, err := nas.NewFileSystem(ctx, fmt.Sprintf("fooFileSystem-%v", key0), &nas.FileSystemArgs{
FileSystemName: pulumi.String(fmt.Sprintf("acc-test-fs-%v", val0)),
Description: pulumi.String("acc-test"),
ZoneId: pulumi.String(fooZones.Zones[0].Id),
Capacity: pulumi.Int(103),
ProjectName: pulumi.String("default"),
Tags: nas.FileSystemTagArray{
&nas.FileSystemTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
fooFileSystem = append(fooFileSystem, __res)
}
_ = nas.FileSystemsOutput(ctx, nas.FileSystemsOutputArgs{
Ids: %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-volcengine:nas-fileSystems:FileSystems.pp:18,9-28),
}, nil);
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooZones = Volcengine.Nas.Zones.Invoke();
    var fooFileSystem = new List<Volcengine.Nas.FileSystem>();
    for (var rangeIndex = 0; rangeIndex < 3; rangeIndex++)
    {
        var range = new { Value = rangeIndex };
        fooFileSystem.Add(new Volcengine.Nas.FileSystem($"fooFileSystem-{range.Value}", new()
        {
            FileSystemName = $"acc-test-fs-{range.Value}",
            Description = "acc-test",
            ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
            Capacity = 103,
            ProjectName = "default",
            Tags = new[]
            {
                new Volcengine.Nas.Inputs.FileSystemTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        }));
    }
    var fooFileSystems = Volcengine.Nas.FileSystems.Invoke(new()
    {
        Ids = fooFileSystem.Select(__item => __item.Id).ToList(),
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.nas.NasFunctions;
import com.pulumi.volcengine.nas.inputs.ZonesArgs;
import com.pulumi.volcengine.nas.FileSystem;
import com.pulumi.volcengine.nas.FileSystemArgs;
import com.pulumi.volcengine.nas.inputs.FileSystemTagArgs;
import com.pulumi.volcengine.nas.inputs.FileSystemsArgs;
import com.pulumi.codegen.internal.KeyedValue;
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 fooZones = NasFunctions.Zones();
        for (var i = 0; i < 3; i++) {
            new FileSystem("fooFileSystem-" + i, FileSystemArgs.builder()            
                .fileSystemName(String.format("acc-test-fs-%s", range.value()))
                .description("acc-test")
                .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
                .capacity(103)
                .projectName("default")
                .tags(FileSystemTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .build());
        
}
        final var fooFileSystems = NasFunctions.FileSystems(FileSystemsArgs.builder()
            .ids(fooFileSystem.stream().map(element -> element.id()).collect(toList()))
            .build());
    }
}
Coming soon!
Using FileSystems
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 fileSystems(args: FileSystemsArgs, opts?: InvokeOptions): Promise<FileSystemsResult>
function fileSystemsOutput(args: FileSystemsOutputArgs, opts?: InvokeOptions): Output<FileSystemsResult>def file_systems(charge_type: Optional[str] = None,
                 file_system_name: Optional[str] = None,
                 ids: Optional[Sequence[str]] = None,
                 mount_point_id: Optional[str] = None,
                 name_regex: Optional[str] = None,
                 output_file: Optional[str] = None,
                 permission_group_id: Optional[str] = None,
                 project_name: Optional[str] = None,
                 protocol_type: Optional[str] = None,
                 statuses: Optional[Sequence[str]] = None,
                 storage_type: Optional[str] = None,
                 tags: Optional[Sequence[FileSystemsTag]] = None,
                 zone_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> FileSystemsResult
def file_systems_output(charge_type: Optional[pulumi.Input[str]] = None,
                 file_system_name: Optional[pulumi.Input[str]] = None,
                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 mount_point_id: Optional[pulumi.Input[str]] = None,
                 name_regex: Optional[pulumi.Input[str]] = None,
                 output_file: Optional[pulumi.Input[str]] = None,
                 permission_group_id: Optional[pulumi.Input[str]] = None,
                 project_name: Optional[pulumi.Input[str]] = None,
                 protocol_type: Optional[pulumi.Input[str]] = None,
                 statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 storage_type: Optional[pulumi.Input[str]] = None,
                 tags: Optional[pulumi.Input[Sequence[pulumi.Input[FileSystemsTagArgs]]]] = None,
                 zone_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[FileSystemsResult]func FileSystems(ctx *Context, args *FileSystemsArgs, opts ...InvokeOption) (*FileSystemsResult, error)
func FileSystemsOutput(ctx *Context, args *FileSystemsOutputArgs, opts ...InvokeOption) FileSystemsResultOutputpublic static class FileSystems 
{
    public static Task<FileSystemsResult> InvokeAsync(FileSystemsArgs args, InvokeOptions? opts = null)
    public static Output<FileSystemsResult> Invoke(FileSystemsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<FileSystemsResult> fileSystems(FileSystemsArgs args, InvokeOptions options)
public static Output<FileSystemsResult> fileSystems(FileSystemsArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:nas:FileSystems
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ChargeType string
- The charge type of nas file system.
- FileSystem stringName 
- The name of nas file system. This field supports fuzzy queries.
- Ids List<string>
- A list of nas file system ids.
- MountPoint stringId 
- The mount point id of nas file system.
- NameRegex string
- A Name Regex of Resource.
- OutputFile string
- File name where to save data source results.
- PermissionGroup stringId 
- The permission group id of nas file system.
- ProjectName string
- The project name of nas file system.
- ProtocolType string
- The protocol type of nas file system.
- Statuses List<string>
- The status of nas file system.
- StorageType string
- The storage type of nas file system.
- 
List<FileSystems Tag> 
- Tags.
- ZoneId string
- The zone id of nas file system.
- ChargeType string
- The charge type of nas file system.
- FileSystem stringName 
- The name of nas file system. This field supports fuzzy queries.
- Ids []string
- A list of nas file system ids.
- MountPoint stringId 
- The mount point id of nas file system.
- NameRegex string
- A Name Regex of Resource.
- OutputFile string
- File name where to save data source results.
- PermissionGroup stringId 
- The permission group id of nas file system.
- ProjectName string
- The project name of nas file system.
- ProtocolType string
- The protocol type of nas file system.
- Statuses []string
- The status of nas file system.
- StorageType string
- The storage type of nas file system.
- 
[]FileSystems Tag 
- Tags.
- ZoneId string
- The zone id of nas file system.
- chargeType String
- The charge type of nas file system.
- fileSystem StringName 
- The name of nas file system. This field supports fuzzy queries.
- ids List<String>
- A list of nas file system ids.
- mountPoint StringId 
- The mount point id of nas file system.
- nameRegex String
- A Name Regex of Resource.
- outputFile String
- File name where to save data source results.
- permissionGroup StringId 
- The permission group id of nas file system.
- projectName String
- The project name of nas file system.
- protocolType String
- The protocol type of nas file system.
- statuses List<String>
- The status of nas file system.
- storageType String
- The storage type of nas file system.
- 
List<FileSystems Tag> 
- Tags.
- zoneId String
- The zone id of nas file system.
- chargeType string
- The charge type of nas file system.
- fileSystem stringName 
- The name of nas file system. This field supports fuzzy queries.
- ids string[]
- A list of nas file system ids.
- mountPoint stringId 
- The mount point id of nas file system.
- nameRegex string
- A Name Regex of Resource.
- outputFile string
- File name where to save data source results.
- permissionGroup stringId 
- The permission group id of nas file system.
- projectName string
- The project name of nas file system.
- protocolType string
- The protocol type of nas file system.
- statuses string[]
- The status of nas file system.
- storageType string
- The storage type of nas file system.
- 
FileSystems Tag[] 
- Tags.
- zoneId string
- The zone id of nas file system.
- charge_type str
- The charge type of nas file system.
- file_system_ strname 
- The name of nas file system. This field supports fuzzy queries.
- ids Sequence[str]
- A list of nas file system ids.
- mount_point_ strid 
- The mount point id of nas file system.
- name_regex str
- A Name Regex of Resource.
- output_file str
- File name where to save data source results.
- permission_group_ strid 
- The permission group id of nas file system.
- project_name str
- The project name of nas file system.
- protocol_type str
- The protocol type of nas file system.
- statuses Sequence[str]
- The status of nas file system.
- storage_type str
- The storage type of nas file system.
- 
Sequence[FileSystems Tag] 
- Tags.
- zone_id str
- The zone id of nas file system.
- chargeType String
- The charge type of nas file system.
- fileSystem StringName 
- The name of nas file system. This field supports fuzzy queries.
- ids List<String>
- A list of nas file system ids.
- mountPoint StringId 
- The mount point id of nas file system.
- nameRegex String
- A Name Regex of Resource.
- outputFile String
- File name where to save data source results.
- permissionGroup StringId 
- The permission group id of nas file system.
- projectName String
- The project name of nas file system.
- protocolType String
- The protocol type of nas file system.
- statuses List<String>
- The status of nas file system.
- storageType String
- The storage type of nas file system.
- List<Property Map>
- Tags.
- zoneId String
- The zone id of nas file system.
FileSystems Result
The following output properties are available:
- FileSystems List<FileSystems File System> 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of query.
- ChargeType string
- The charge type of the nas file system.
- FileSystem stringName 
- The name of the nas file system.
- Ids List<string>
- MountPoint stringId 
- NameRegex string
- OutputFile string
- PermissionGroup stringId 
- ProjectName string
- The project name of the nas file system.
- ProtocolType string
- The protocol type of the nas file system.
- Statuses List<string>
- The status of the nas file system.
- StorageType string
- The storage type of the nas file system.
- 
List<FileSystems Tag> 
- Tags of the nas file system.
- ZoneId string
- The zone id of the nas file system.
- FileSystems []FileSystems File System 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of query.
- ChargeType string
- The charge type of the nas file system.
- FileSystem stringName 
- The name of the nas file system.
- Ids []string
- MountPoint stringId 
- NameRegex string
- OutputFile string
- PermissionGroup stringId 
- ProjectName string
- The project name of the nas file system.
- ProtocolType string
- The protocol type of the nas file system.
- Statuses []string
- The status of the nas file system.
- StorageType string
- The storage type of the nas file system.
- 
[]FileSystems Tag 
- Tags of the nas file system.
- ZoneId string
- The zone id of the nas file system.
- fileSystems List<FileSystems File System> 
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Integer
- The total count of query.
- chargeType String
- The charge type of the nas file system.
- fileSystem StringName 
- The name of the nas file system.
- ids List<String>
- mountPoint StringId 
- nameRegex String
- outputFile String
- permissionGroup StringId 
- projectName String
- The project name of the nas file system.
- protocolType String
- The protocol type of the nas file system.
- statuses List<String>
- The status of the nas file system.
- storageType String
- The storage type of the nas file system.
- 
List<FileSystems Tag> 
- Tags of the nas file system.
- zoneId String
- The zone id of the nas file system.
- fileSystems FileSystems File System[] 
- The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- totalCount number
- The total count of query.
- chargeType string
- The charge type of the nas file system.
- fileSystem stringName 
- The name of the nas file system.
- ids string[]
- mountPoint stringId 
- nameRegex string
- outputFile string
- permissionGroup stringId 
- projectName string
- The project name of the nas file system.
- protocolType string
- The protocol type of the nas file system.
- statuses string[]
- The status of the nas file system.
- storageType string
- The storage type of the nas file system.
- 
FileSystems Tag[] 
- Tags of the nas file system.
- zoneId string
- The zone id of the nas file system.
- file_systems Sequence[FileSystems File System] 
- The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_count int
- The total count of query.
- charge_type str
- The charge type of the nas file system.
- file_system_ strname 
- The name of the nas file system.
- ids Sequence[str]
- mount_point_ strid 
- name_regex str
- output_file str
- permission_group_ strid 
- project_name str
- The project name of the nas file system.
- protocol_type str
- The protocol type of the nas file system.
- statuses Sequence[str]
- The status of the nas file system.
- storage_type str
- The storage type of the nas file system.
- 
Sequence[FileSystems Tag] 
- Tags of the nas file system.
- zone_id str
- The zone id of the nas file system.
- fileSystems 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.
- chargeType String
- The charge type of the nas file system.
- fileSystem StringName 
- The name of the nas file system.
- ids List<String>
- mountPoint StringId 
- nameRegex String
- outputFile String
- permissionGroup StringId 
- projectName String
- The project name of the nas file system.
- protocolType String
- The protocol type of the nas file system.
- statuses List<String>
- The status of the nas file system.
- storageType String
- The storage type of the nas file system.
- List<Property Map>
- Tags of the nas file system.
- zoneId String
- The zone id of the nas file system.
Supporting Types
FileSystemsFileSystem   
- Capacities
List<FileSystems File System Capacity> 
- The capacity of the nas file system.
- ChargeType string
- The charge type of nas file system.
- CreateTime string
- The create time of the nas file system.
- Description string
- The description of the nas file system.
- FileSystem stringId 
- The id of the nas file system.
- FileSystem stringName 
- The name of nas file system. This field supports fuzzy queries.
- FileSystem stringType 
- The type of the nas file system.
- Id string
- The id of the nas file system.
- ProjectName string
- The project name of nas file system.
- ProtocolType string
- The protocol type of nas file system.
- RegionId string
- The region id of the nas file system.
- SnapshotCount int
- The snapshot count of the nas file system.
- Status string
- The status of nas file system.
- StorageType string
- The storage type of nas file system.
- 
List<FileSystems File System Tag> 
- Tags.
- UpdateTime string
- The update time of the nas file system.
- Version string
- The version of the nas file system.
- ZoneId string
- The zone id of nas file system.
- ZoneName string
- The zone name of the nas file system.
- Capacities
[]FileSystems File System Capacity 
- The capacity of the nas file system.
- ChargeType string
- The charge type of nas file system.
- CreateTime string
- The create time of the nas file system.
- Description string
- The description of the nas file system.
- FileSystem stringId 
- The id of the nas file system.
- FileSystem stringName 
- The name of nas file system. This field supports fuzzy queries.
- FileSystem stringType 
- The type of the nas file system.
- Id string
- The id of the nas file system.
- ProjectName string
- The project name of nas file system.
- ProtocolType string
- The protocol type of nas file system.
- RegionId string
- The region id of the nas file system.
- SnapshotCount int
- The snapshot count of the nas file system.
- Status string
- The status of nas file system.
- StorageType string
- The storage type of nas file system.
- 
[]FileSystems File System Tag 
- Tags.
- UpdateTime string
- The update time of the nas file system.
- Version string
- The version of the nas file system.
- ZoneId string
- The zone id of nas file system.
- ZoneName string
- The zone name of the nas file system.
- capacities
List<FileSystems File System Capacity> 
- The capacity of the nas file system.
- chargeType String
- The charge type of nas file system.
- createTime String
- The create time of the nas file system.
- description String
- The description of the nas file system.
- fileSystem StringId 
- The id of the nas file system.
- fileSystem StringName 
- The name of nas file system. This field supports fuzzy queries.
- fileSystem StringType 
- The type of the nas file system.
- id String
- The id of the nas file system.
- projectName String
- The project name of nas file system.
- protocolType String
- The protocol type of nas file system.
- regionId String
- The region id of the nas file system.
- snapshotCount Integer
- The snapshot count of the nas file system.
- status String
- The status of nas file system.
- storageType String
- The storage type of nas file system.
- 
List<FileSystems File System Tag> 
- Tags.
- updateTime String
- The update time of the nas file system.
- version String
- The version of the nas file system.
- zoneId String
- The zone id of nas file system.
- zoneName String
- The zone name of the nas file system.
- capacities
FileSystems File System Capacity[] 
- The capacity of the nas file system.
- chargeType string
- The charge type of nas file system.
- createTime string
- The create time of the nas file system.
- description string
- The description of the nas file system.
- fileSystem stringId 
- The id of the nas file system.
- fileSystem stringName 
- The name of nas file system. This field supports fuzzy queries.
- fileSystem stringType 
- The type of the nas file system.
- id string
- The id of the nas file system.
- projectName string
- The project name of nas file system.
- protocolType string
- The protocol type of nas file system.
- regionId string
- The region id of the nas file system.
- snapshotCount number
- The snapshot count of the nas file system.
- status string
- The status of nas file system.
- storageType string
- The storage type of nas file system.
- 
FileSystems File System Tag[] 
- Tags.
- updateTime string
- The update time of the nas file system.
- version string
- The version of the nas file system.
- zoneId string
- The zone id of nas file system.
- zoneName string
- The zone name of the nas file system.
- capacities
Sequence[FileSystems File System Capacity] 
- The capacity of the nas file system.
- charge_type str
- The charge type of nas file system.
- create_time str
- The create time of the nas file system.
- description str
- The description of the nas file system.
- file_system_ strid 
- The id of the nas file system.
- file_system_ strname 
- The name of nas file system. This field supports fuzzy queries.
- file_system_ strtype 
- The type of the nas file system.
- id str
- The id of the nas file system.
- project_name str
- The project name of nas file system.
- protocol_type str
- The protocol type of nas file system.
- region_id str
- The region id of the nas file system.
- snapshot_count int
- The snapshot count of the nas file system.
- status str
- The status of nas file system.
- storage_type str
- The storage type of nas file system.
- 
Sequence[FileSystems File System Tag] 
- Tags.
- update_time str
- The update time of the nas file system.
- version str
- The version of the nas file system.
- zone_id str
- The zone id of nas file system.
- zone_name str
- The zone name of the nas file system.
- capacities List<Property Map>
- The capacity of the nas file system.
- chargeType String
- The charge type of nas file system.
- createTime String
- The create time of the nas file system.
- description String
- The description of the nas file system.
- fileSystem StringId 
- The id of the nas file system.
- fileSystem StringName 
- The name of nas file system. This field supports fuzzy queries.
- fileSystem StringType 
- The type of the nas file system.
- id String
- The id of the nas file system.
- projectName String
- The project name of nas file system.
- protocolType String
- The protocol type of nas file system.
- regionId String
- The region id of the nas file system.
- snapshotCount Number
- The snapshot count of the nas file system.
- status String
- The status of nas file system.
- storageType String
- The storage type of nas file system.
- List<Property Map>
- Tags.
- updateTime String
- The update time of the nas file system.
- version String
- The version of the nas file system.
- zoneId String
- The zone id of nas file system.
- zoneName String
- The zone name of the nas file system.
FileSystemsFileSystemCapacity    
FileSystemsFileSystemTag    
FileSystemsTag  
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.