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) FileSystemsResultOutput
public 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 dictionary
The following arguments are supported:
- Charge
Type string - The charge type of nas file system.
- File
System stringName - The name of nas file system. This field supports fuzzy queries.
- Ids List<string>
- A list of nas file system ids.
- Mount
Point stringId - The mount point id of nas file system.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Permission
Group stringId - The permission group id of nas file system.
- Project
Name string - The project name of nas file system.
- Protocol
Type string - The protocol type of nas file system.
- Statuses List<string>
- The status of nas file system.
- Storage
Type string - The storage type of nas file system.
- List<File
Systems Tag> - Tags.
- Zone
Id string - The zone id of nas file system.
- Charge
Type string - The charge type of nas file system.
- File
System stringName - The name of nas file system. This field supports fuzzy queries.
- Ids []string
- A list of nas file system ids.
- Mount
Point stringId - The mount point id of nas file system.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Permission
Group stringId - The permission group id of nas file system.
- Project
Name string - The project name of nas file system.
- Protocol
Type string - The protocol type of nas file system.
- Statuses []string
- The status of nas file system.
- Storage
Type string - The storage type of nas file system.
- []File
Systems Tag - Tags.
- Zone
Id string - The zone id of nas file system.
- charge
Type String - The charge type of nas file system.
- file
System StringName - The name of nas file system. This field supports fuzzy queries.
- ids List<String>
- A list of nas file system ids.
- mount
Point StringId - The mount point id of nas file system.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- permission
Group StringId - The permission group id of nas file system.
- project
Name String - The project name of nas file system.
- protocol
Type String - The protocol type of nas file system.
- statuses List<String>
- The status of nas file system.
- storage
Type String - The storage type of nas file system.
- List<File
Systems Tag> - Tags.
- zone
Id String - The zone id of nas file system.
- charge
Type string - The charge type of nas file system.
- file
System stringName - The name of nas file system. This field supports fuzzy queries.
- ids string[]
- A list of nas file system ids.
- mount
Point stringId - The mount point id of nas file system.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- permission
Group stringId - The permission group id of nas file system.
- project
Name string - The project name of nas file system.
- protocol
Type string - The protocol type of nas file system.
- statuses string[]
- The status of nas file system.
- storage
Type string - The storage type of nas file system.
- File
Systems Tag[] - Tags.
- zone
Id 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[File
Systems Tag] - Tags.
- zone_
id str - The zone id of nas file system.
- charge
Type String - The charge type of nas file system.
- file
System StringName - The name of nas file system. This field supports fuzzy queries.
- ids List<String>
- A list of nas file system ids.
- mount
Point StringId - The mount point id of nas file system.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- permission
Group StringId - The permission group id of nas file system.
- project
Name String - The project name of nas file system.
- protocol
Type String - The protocol type of nas file system.
- statuses List<String>
- The status of nas file system.
- storage
Type String - The storage type of nas file system.
- List<Property Map>
- Tags.
- zone
Id String - The zone id of nas file system.
FileSystems Result
The following output properties are available:
- File
Systems List<FileSystems File System> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Charge
Type string - The charge type of the nas file system.
- File
System stringName - The name of the nas file system.
- Ids List<string>
- Mount
Point stringId - Name
Regex string - Output
File string - Permission
Group stringId - Project
Name string - The project name of the nas file system.
- Protocol
Type string - The protocol type of the nas file system.
- Statuses List<string>
- The status of the nas file system.
- Storage
Type string - The storage type of the nas file system.
- List<File
Systems Tag> - Tags of the nas file system.
- Zone
Id string - The zone id of the nas file system.
- File
Systems []FileSystems File System - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Charge
Type string - The charge type of the nas file system.
- File
System stringName - The name of the nas file system.
- Ids []string
- Mount
Point stringId - Name
Regex string - Output
File string - Permission
Group stringId - Project
Name string - The project name of the nas file system.
- Protocol
Type string - The protocol type of the nas file system.
- Statuses []string
- The status of the nas file system.
- Storage
Type string - The storage type of the nas file system.
- []File
Systems Tag - Tags of the nas file system.
- Zone
Id string - The zone id of the nas file system.
- file
Systems List<FileSystems File System> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- charge
Type String - The charge type of the nas file system.
- file
System StringName - The name of the nas file system.
- ids List<String>
- mount
Point StringId - name
Regex String - output
File String - permission
Group StringId - project
Name String - The project name of the nas file system.
- protocol
Type String - The protocol type of the nas file system.
- statuses List<String>
- The status of the nas file system.
- storage
Type String - The storage type of the nas file system.
- List<File
Systems Tag> - Tags of the nas file system.
- zone
Id String - The zone id of the nas file system.
- file
Systems FileSystems File System[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- charge
Type string - The charge type of the nas file system.
- file
System stringName - The name of the nas file system.
- ids string[]
- mount
Point stringId - name
Regex string - output
File string - permission
Group stringId - project
Name string - The project name of the nas file system.
- protocol
Type string - The protocol type of the nas file system.
- statuses string[]
- The status of the nas file system.
- storage
Type string - The storage type of the nas file system.
- File
Systems Tag[] - Tags of the nas file system.
- zone
Id 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[File
Systems Tag] - Tags of the nas file system.
- zone_
id str - The zone id of the nas file system.
- file
Systems 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.
- charge
Type String - The charge type of the nas file system.
- file
System StringName - The name of the nas file system.
- ids List<String>
- mount
Point StringId - name
Regex String - output
File String - permission
Group StringId - project
Name String - The project name of the nas file system.
- protocol
Type String - The protocol type of the nas file system.
- statuses List<String>
- The status of the nas file system.
- storage
Type String - The storage type of the nas file system.
- List<Property Map>
- Tags of the nas file system.
- zone
Id String - The zone id of the nas file system.
Supporting Types
FileSystemsFileSystem
- Capacities
List<File
Systems File System Capacity> - The capacity of the nas file system.
- Charge
Type string - The charge type of nas file system.
- Create
Time string - The create time of the nas file system.
- Description string
- The description of the nas file system.
- File
System stringId - The id of the nas file system.
- File
System stringName - The name of nas file system. This field supports fuzzy queries.
- File
System stringType - The type of the nas file system.
- Id string
- The id of the nas file system.
- Project
Name string - The project name of nas file system.
- Protocol
Type string - The protocol type of nas file system.
- Region
Id string - The region id of the nas file system.
- Snapshot
Count int - The snapshot count of the nas file system.
- Status string
- The status of nas file system.
- Storage
Type string - The storage type of nas file system.
- List<File
Systems File System Tag> - Tags.
- Update
Time string - The update time of the nas file system.
- Version string
- The version of the nas file system.
- Zone
Id string - The zone id of nas file system.
- Zone
Name string - The zone name of the nas file system.
- Capacities
[]File
Systems File System Capacity - The capacity of the nas file system.
- Charge
Type string - The charge type of nas file system.
- Create
Time string - The create time of the nas file system.
- Description string
- The description of the nas file system.
- File
System stringId - The id of the nas file system.
- File
System stringName - The name of nas file system. This field supports fuzzy queries.
- File
System stringType - The type of the nas file system.
- Id string
- The id of the nas file system.
- Project
Name string - The project name of nas file system.
- Protocol
Type string - The protocol type of nas file system.
- Region
Id string - The region id of the nas file system.
- Snapshot
Count int - The snapshot count of the nas file system.
- Status string
- The status of nas file system.
- Storage
Type string - The storage type of nas file system.
- []File
Systems File System Tag - Tags.
- Update
Time string - The update time of the nas file system.
- Version string
- The version of the nas file system.
- Zone
Id string - The zone id of nas file system.
- Zone
Name string - The zone name of the nas file system.
- capacities
List<File
Systems File System Capacity> - The capacity of the nas file system.
- charge
Type String - The charge type of nas file system.
- create
Time String - The create time of the nas file system.
- description String
- The description of the nas file system.
- file
System StringId - The id of the nas file system.
- file
System StringName - The name of nas file system. This field supports fuzzy queries.
- file
System StringType - The type of the nas file system.
- id String
- The id of the nas file system.
- project
Name String - The project name of nas file system.
- protocol
Type String - The protocol type of nas file system.
- region
Id String - The region id of the nas file system.
- snapshot
Count Integer - The snapshot count of the nas file system.
- status String
- The status of nas file system.
- storage
Type String - The storage type of nas file system.
- List<File
Systems File System Tag> - Tags.
- update
Time String - The update time of the nas file system.
- version String
- The version of the nas file system.
- zone
Id String - The zone id of nas file system.
- zone
Name String - The zone name of the nas file system.
- capacities
File
Systems File System Capacity[] - The capacity of the nas file system.
- charge
Type string - The charge type of nas file system.
- create
Time string - The create time of the nas file system.
- description string
- The description of the nas file system.
- file
System stringId - The id of the nas file system.
- file
System stringName - The name of nas file system. This field supports fuzzy queries.
- file
System stringType - The type of the nas file system.
- id string
- The id of the nas file system.
- project
Name string - The project name of nas file system.
- protocol
Type string - The protocol type of nas file system.
- region
Id string - The region id of the nas file system.
- snapshot
Count number - The snapshot count of the nas file system.
- status string
- The status of nas file system.
- storage
Type string - The storage type of nas file system.
- File
Systems File System Tag[] - Tags.
- update
Time string - The update time of the nas file system.
- version string
- The version of the nas file system.
- zone
Id string - The zone id of nas file system.
- zone
Name string - The zone name of the nas file system.
- capacities
Sequence[File
Systems 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[File
Systems 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.
- charge
Type String - The charge type of nas file system.
- create
Time String - The create time of the nas file system.
- description String
- The description of the nas file system.
- file
System StringId - The id of the nas file system.
- file
System StringName - The name of nas file system. This field supports fuzzy queries.
- file
System StringType - The type of the nas file system.
- id String
- The id of the nas file system.
- project
Name String - The project name of nas file system.
- protocol
Type String - The protocol type of nas file system.
- region
Id String - The region id of the nas file system.
- snapshot
Count Number - The snapshot count of the nas file system.
- status String
- The status of nas file system.
- storage
Type String - The storage type of nas file system.
- List<Property Map>
- Tags.
- update
Time String - The update time of the nas file system.
- version String
- The version of the nas file system.
- zone
Id String - The zone id of nas file system.
- zone
Name 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
volcengine
Terraform Provider.