Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.nas.getFileSystems
Explore with Pulumi AI
This data source provides FileSystems available to the user.
NOTE: Available in 1.35.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const fs = alicloud.nas.getFileSystems({
protocolType: "NFS",
descriptionRegex: foo.description,
});
export const alicloudNasFileSystemsId = fs.then(fs => fs.systems?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
fs = alicloud.nas.get_file_systems(protocol_type="NFS",
description_regex=foo["description"])
pulumi.export("alicloudNasFileSystemsId", fs.systems[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fs, err := nas.GetFileSystems(ctx, &nas.GetFileSystemsArgs{
ProtocolType: pulumi.StringRef("NFS"),
DescriptionRegex: pulumi.StringRef(foo.Description),
}, nil)
if err != nil {
return err
}
ctx.Export("alicloudNasFileSystemsId", fs.Systems[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var fs = AliCloud.Nas.GetFileSystems.Invoke(new()
{
ProtocolType = "NFS",
DescriptionRegex = foo.Description,
});
return new Dictionary<string, object?>
{
["alicloudNasFileSystemsId"] = fs.Apply(getFileSystemsResult => getFileSystemsResult.Systems[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.NasFunctions;
import com.pulumi.alicloud.nas.inputs.GetFileSystemsArgs;
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 fs = NasFunctions.getFileSystems(GetFileSystemsArgs.builder()
.protocolType("NFS")
.descriptionRegex(foo.description())
.build());
ctx.export("alicloudNasFileSystemsId", fs.applyValue(getFileSystemsResult -> getFileSystemsResult.systems()[0].id()));
}
}
variables:
fs:
fn::invoke:
function: alicloud:nas:getFileSystems
arguments:
protocolType: NFS
descriptionRegex: ${foo.description}
outputs:
alicloudNasFileSystemsId: ${fs.systems[0].id}
Using getFileSystems
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 getFileSystems(args: GetFileSystemsArgs, opts?: InvokeOptions): Promise<GetFileSystemsResult>
function getFileSystemsOutput(args: GetFileSystemsOutputArgs, opts?: InvokeOptions): Output<GetFileSystemsResult>
def get_file_systems(description_regex: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
protocol_type: Optional[str] = None,
storage_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFileSystemsResult
def get_file_systems_output(description_regex: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
protocol_type: Optional[pulumi.Input[str]] = None,
storage_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFileSystemsResult]
func GetFileSystems(ctx *Context, args *GetFileSystemsArgs, opts ...InvokeOption) (*GetFileSystemsResult, error)
func GetFileSystemsOutput(ctx *Context, args *GetFileSystemsOutputArgs, opts ...InvokeOption) GetFileSystemsResultOutput
> Note: This function is named GetFileSystems
in the Go SDK.
public static class GetFileSystems
{
public static Task<GetFileSystemsResult> InvokeAsync(GetFileSystemsArgs args, InvokeOptions? opts = null)
public static Output<GetFileSystemsResult> Invoke(GetFileSystemsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFileSystemsResult> getFileSystems(GetFileSystemsArgs args, InvokeOptions options)
public static Output<GetFileSystemsResult> getFileSystems(GetFileSystemsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:nas/getFileSystems:getFileSystems
arguments:
# arguments dictionary
The following arguments are supported:
- Description
Regex Changes to this property will trigger replacement.
- A regex string to filter the results by the :FileSystem description.
- Ids
Changes to this property will trigger replacement.
- A list of FileSystemId.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Protocol
Type Changes to this property will trigger replacement.
- The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - Storage
Type Changes to this property will trigger replacement.
- The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- Description
Regex Changes to this property will trigger replacement.
- A regex string to filter the results by the :FileSystem description.
- Ids
Changes to this property will trigger replacement.
- A list of FileSystemId.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Protocol
Type Changes to this property will trigger replacement.
- The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - Storage
Type Changes to this property will trigger replacement.
- The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- description
Regex Changes to this property will trigger replacement.
- A regex string to filter the results by the :FileSystem description.
- ids
Changes to this property will trigger replacement.
- A list of FileSystemId.
- output
File String - File name where to save data source results (after running
pulumi preview
). - protocol
Type Changes to this property will trigger replacement.
- The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - storage
Type Changes to this property will trigger replacement.
- The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- description
Regex Changes to this property will trigger replacement.
- A regex string to filter the results by the :FileSystem description.
- ids
Changes to this property will trigger replacement.
- A list of FileSystemId.
- output
File string - File name where to save data source results (after running
pulumi preview
). - protocol
Type Changes to this property will trigger replacement.
- The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - storage
Type Changes to this property will trigger replacement.
- The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- description_
regex Changes to this property will trigger replacement.
- A regex string to filter the results by the :FileSystem description.
- ids
Changes to this property will trigger replacement.
- A list of FileSystemId.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - protocol_
type Changes to this property will trigger replacement.
- The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - storage_
type Changes to this property will trigger replacement.
- The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- description
Regex Changes to this property will trigger replacement.
- A regex string to filter the results by the :FileSystem description.
- ids
Changes to this property will trigger replacement.
- A list of FileSystemId.
- output
File String - File name where to save data source results (after running
pulumi preview
). - protocol
Type Changes to this property will trigger replacement.
- The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - storage
Type Changes to this property will trigger replacement.
- The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
getFileSystems Result
The following output properties are available:
- Descriptions List<string>
- A list of FileSystem descriptions.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of FileSystem Id.
- Systems
List<Pulumi.
Ali Cloud. Nas. Outputs. Get File Systems System> - A list of VPCs. Each element contains the following attributes:
- Description
Regex string - Output
File string - Protocol
Type string - ProtocolType block of the FileSystem
- Storage
Type string - StorageType block of the FileSystem.
- Descriptions []string
- A list of FileSystem descriptions.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of FileSystem Id.
- Systems
[]Get
File Systems System - A list of VPCs. Each element contains the following attributes:
- Description
Regex string - Output
File string - Protocol
Type string - ProtocolType block of the FileSystem
- Storage
Type string - StorageType block of the FileSystem.
- descriptions List<String>
- A list of FileSystem descriptions.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of FileSystem Id.
- systems
List<Get
File Systems System> - A list of VPCs. Each element contains the following attributes:
- description
Regex String - output
File String - protocol
Type String - ProtocolType block of the FileSystem
- storage
Type String - StorageType block of the FileSystem.
- descriptions string[]
- A list of FileSystem descriptions.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of FileSystem Id.
- systems
Get
File Systems System[] - A list of VPCs. Each element contains the following attributes:
- description
Regex string - output
File string - protocol
Type string - ProtocolType block of the FileSystem
- storage
Type string - StorageType block of the FileSystem.
- descriptions Sequence[str]
- A list of FileSystem descriptions.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of FileSystem Id.
- systems
Sequence[Get
File Systems System] - A list of VPCs. Each element contains the following attributes:
- description_
regex str - output_
file str - protocol_
type str - ProtocolType block of the FileSystem
- storage_
type str - StorageType block of the FileSystem.
- descriptions List<String>
- A list of FileSystem descriptions.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of FileSystem Id.
- systems List<Property Map>
- A list of VPCs. Each element contains the following attributes:
- description
Regex String - output
File String - protocol
Type String - ProtocolType block of the FileSystem
- storage
Type String - StorageType block of the FileSystem.
Supporting Types
GetFileSystemsSystem
- Capacity
This property is required. int - (Optional, Available in v1.140.0+) The capacity of the file system.
- Create
Time This property is required. string - Time of creation.
- Description
This property is required. string - Description of the FileSystem.
- Encrypt
Type This property is required. int - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- File
System Type This property is required. string - The type of the file system.
Valid values:
standard
(Default),extreme
. - Id
This property is required. string - ID of the FileSystem.
- Kms
Key Id This property is required. string - (Optional, Available in v1.140.0+) The id of the KMS key.
- Metered
Size This property is required. int - MeteredSize of the FileSystem.
- Protocol
Type This property is required. string - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - Region
Id This property is required. string - ID of the region where the FileSystem is located.
- Storage
Type This property is required. string - The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- Zone
Id This property is required. string - (Optional, Available in v1.140.0+) The id of the zone. Each region consists of multiple isolated locations known as zones. Each zone has an independent power supply and network.
- Capacity
This property is required. int - (Optional, Available in v1.140.0+) The capacity of the file system.
- Create
Time This property is required. string - Time of creation.
- Description
This property is required. string - Description of the FileSystem.
- Encrypt
Type This property is required. int - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- File
System Type This property is required. string - The type of the file system.
Valid values:
standard
(Default),extreme
. - Id
This property is required. string - ID of the FileSystem.
- Kms
Key Id This property is required. string - (Optional, Available in v1.140.0+) The id of the KMS key.
- Metered
Size This property is required. int - MeteredSize of the FileSystem.
- Protocol
Type This property is required. string - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - Region
Id This property is required. string - ID of the region where the FileSystem is located.
- Storage
Type This property is required. string - The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- Zone
Id This property is required. string - (Optional, Available in v1.140.0+) The id of the zone. Each region consists of multiple isolated locations known as zones. Each zone has an independent power supply and network.
- capacity
This property is required. Integer - (Optional, Available in v1.140.0+) The capacity of the file system.
- create
Time This property is required. String - Time of creation.
- description
This property is required. String - Description of the FileSystem.
- encrypt
Type This property is required. Integer - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- file
System Type This property is required. String - The type of the file system.
Valid values:
standard
(Default),extreme
. - id
This property is required. String - ID of the FileSystem.
- kms
Key Id This property is required. String - (Optional, Available in v1.140.0+) The id of the KMS key.
- metered
Size This property is required. Integer - MeteredSize of the FileSystem.
- protocol
Type This property is required. String - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - region
Id This property is required. String - ID of the region where the FileSystem is located.
- storage
Type This property is required. String - The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- zone
Id This property is required. String - (Optional, Available in v1.140.0+) The id of the zone. Each region consists of multiple isolated locations known as zones. Each zone has an independent power supply and network.
- capacity
This property is required. number - (Optional, Available in v1.140.0+) The capacity of the file system.
- create
Time This property is required. string - Time of creation.
- description
This property is required. string - Description of the FileSystem.
- encrypt
Type This property is required. number - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- file
System Type This property is required. string - The type of the file system.
Valid values:
standard
(Default),extreme
. - id
This property is required. string - ID of the FileSystem.
- kms
Key Id This property is required. string - (Optional, Available in v1.140.0+) The id of the KMS key.
- metered
Size This property is required. number - MeteredSize of the FileSystem.
- protocol
Type This property is required. string - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - region
Id This property is required. string - ID of the region where the FileSystem is located.
- storage
Type This property is required. string - The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- zone
Id This property is required. string - (Optional, Available in v1.140.0+) The id of the zone. Each region consists of multiple isolated locations known as zones. Each zone has an independent power supply and network.
- capacity
This property is required. int - (Optional, Available in v1.140.0+) The capacity of the file system.
- create_
time This property is required. str - Time of creation.
- description
This property is required. str - Description of the FileSystem.
- encrypt_
type This property is required. int - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- file_
system_ type This property is required. str - The type of the file system.
Valid values:
standard
(Default),extreme
. - id
This property is required. str - ID of the FileSystem.
- kms_
key_ id This property is required. str - (Optional, Available in v1.140.0+) The id of the KMS key.
- metered_
size This property is required. int - MeteredSize of the FileSystem.
- protocol_
type This property is required. str - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - region_
id This property is required. str - ID of the region where the FileSystem is located.
- storage_
type This property is required. str - The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- zone_
id This property is required. str - (Optional, Available in v1.140.0+) The id of the zone. Each region consists of multiple isolated locations known as zones. Each zone has an independent power supply and network.
- capacity
This property is required. Number - (Optional, Available in v1.140.0+) The capacity of the file system.
- create
Time This property is required. String - Time of creation.
- description
This property is required. String - Description of the FileSystem.
- encrypt
Type This property is required. Number - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- file
System Type This property is required. String - The type of the file system.
Valid values:
standard
(Default),extreme
. - id
This property is required. String - ID of the FileSystem.
- kms
Key Id This property is required. String - (Optional, Available in v1.140.0+) The id of the KMS key.
- metered
Size This property is required. Number - MeteredSize of the FileSystem.
- protocol
Type This property is required. String - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - region
Id This property is required. String - ID of the region where the FileSystem is located.
- storage
Type This property is required. String - The storage type of the file system.
- Valid values:
Performance
(Available when thefile_system_type
isstandard
)Capacity
(Available when thefile_system_type
isstandard
)
- zone
Id This property is required. String - (Optional, Available in v1.140.0+) The id of the zone. Each region consists of multiple isolated locations known as zones. Each zone has an independent power supply and network.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.