GetFileSystems
This data source provides FileSystems available to the user.
NOTE: Available in 1.35.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var fs = Output.Create(AliCloud.Nas.GetFileSystems.InvokeAsync(new AliCloud.Nas.GetFileSystemsArgs
{
Description = alicloud_nas_file_system.Foo.Description,
ProtocolType = "NFS",
}));
this.AlicloudNasFileSystemsId = fs.Apply(fs => fs.Systems[0].Id);
}
[Output("alicloudNasFileSystemsId")]
public Output<string> AlicloudNasFileSystemsId { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
fs = alicloud.nas.get_file_systems(description=alicloud_nas_file_system["foo"]["description"],
protocol_type="NFS")
pulumi.export("alicloudNasFileSystemsId", fs.systems[0]["id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const fs = alicloud_nas_file_system_foo.description.apply(description => alicloud.nas.getFileSystems({
description: description,
protocolType: "NFS",
}, { async: true }));
export const alicloudNasFileSystemsId = fs.systems[0].id;Using GetFileSystems
function getFileSystems(args: GetFileSystemsArgs, opts?: InvokeOptions): Promise<GetFileSystemsResult>function get_file_systems(description_regex=None, ids=None, output_file=None, protocol_type=None, storage_type=None, opts=None)func GetFileSystems(ctx *Context, args *GetFileSystemsArgs, opts ...InvokeOption) (*GetFileSystemsResult, error)public static class GetFileSystems {
public static Task<GetFileSystemsResult> InvokeAsync(GetFileSystemsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Description
Regex string A regex string to filter the results by the :FileSystem description.
- Ids List<string>
A list of FileSystemId.
- Output
File string - Protocol
Type string Filter results by a specific ProtocolType.
- Storage
Type string Filter results by a specific StorageType.
- Description
Regex string A regex string to filter the results by the :FileSystem description.
- Ids []string
A list of FileSystemId.
- Output
File string - Protocol
Type string Filter results by a specific ProtocolType.
- Storage
Type string Filter results by a specific StorageType.
- description
Regex string A regex string to filter the results by the :FileSystem description.
- ids string[]
A list of FileSystemId.
- output
File string - protocol
Type string Filter results by a specific ProtocolType.
- storage
Type string Filter results by a specific StorageType.
- description_
regex str A regex string to filter the results by the :FileSystem description.
- ids List[str]
A list of FileSystemId.
- output_
file str - protocol_
type str Filter results by a specific ProtocolType.
- storage_
type str Filter results by a specific StorageType.
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 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[str]
A list of FileSystem descriptions.
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of FileSystem Id.
- systems
List[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.
Supporting Types
GetFileSystemsSystem
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Create
Time string Time of creation.
- Description string
Destription of the FileSystem.
- Id string
ID of the FileSystem.
- Metered
Size int MeteredSize of the FileSystem.
- Protocol
Type string Filter results by a specific ProtocolType.
- Region
Id string ID of the region where the FileSystem is located.
- Storage
Type string Filter results by a specific StorageType.
- Create
Time string Time of creation.
- Description string
Destription of the FileSystem.
- Id string
ID of the FileSystem.
- Metered
Size int MeteredSize of the FileSystem.
- Protocol
Type string Filter results by a specific ProtocolType.
- Region
Id string ID of the region where the FileSystem is located.
- Storage
Type string Filter results by a specific StorageType.
- create
Time string Time of creation.
- description string
Destription of the FileSystem.
- id string
ID of the FileSystem.
- metered
Size number MeteredSize of the FileSystem.
- protocol
Type string Filter results by a specific ProtocolType.
- region
Id string ID of the region where the FileSystem is located.
- storage
Type string Filter results by a specific StorageType.
- create_
time str Time of creation.
- description str
Destription of the FileSystem.
- id str
ID of the FileSystem.
- metered
Size float MeteredSize of the FileSystem.
- protocol_
type str Filter results by a specific ProtocolType.
- region
Id str ID of the region where the FileSystem is located.
- storage_
type str Filter results by a specific StorageType.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.