Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:nas/getFileSystems:getFileSystems
arguments:
# arguments dictionary
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 - File name where to save data source results (after running
pulumi preview
). - Protocol
Type string - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - Storage
Type string - 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 string - A regex string to filter the results by the :FileSystem description.
- Ids []string
- A list of FileSystemId.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Protocol
Type string - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - Storage
Type string - 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 String - A regex string to filter the results by the :FileSystem description.
- ids List<String>
- A list of FileSystemId.
- output
File String - File name where to save data source results (after running
pulumi preview
). - protocol
Type String - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - storage
Type String - 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 string - A regex string to filter the results by the :FileSystem description.
- ids string[]
- A list of FileSystemId.
- output
File string - File name where to save data source results (after running
pulumi preview
). - protocol
Type string - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - storage
Type string - 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 str - A regex string to filter the results by the :FileSystem description.
- ids Sequence[str]
- A list of FileSystemId.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - protocol_
type str - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - storage_
type str - 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 String - A regex string to filter the results by the :FileSystem description.
- ids List<String>
- A list of FileSystemId.
- output
File String - File name where to save data source results (after running
pulumi preview
). - protocol
Type String - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - storage
Type String - 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 int
- (Optional, Available in v1.140.0+) The capacity of the file system.
- Create
Time string - Time of creation.
- Description string
- Description of the FileSystem.
- Encrypt
Type int - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- File
System stringType - The type of the file system.
Valid values:
standard
(Default),extreme
. - Id string
- ID of the FileSystem.
- Kms
Key stringId - (Optional, Available in v1.140.0+) The id of the KMS key.
- Metered
Size int - MeteredSize of the FileSystem.
- Protocol
Type string - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - Region
Id string - ID of the region where the FileSystem is located.
- Storage
Type 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 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 int
- (Optional, Available in v1.140.0+) The capacity of the file system.
- Create
Time string - Time of creation.
- Description string
- Description of the FileSystem.
- Encrypt
Type int - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- File
System stringType - The type of the file system.
Valid values:
standard
(Default),extreme
. - Id string
- ID of the FileSystem.
- Kms
Key stringId - (Optional, Available in v1.140.0+) The id of the KMS key.
- Metered
Size int - MeteredSize of the FileSystem.
- Protocol
Type string - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - Region
Id string - ID of the region where the FileSystem is located.
- Storage
Type 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 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 Integer
- (Optional, Available in v1.140.0+) The capacity of the file system.
- create
Time String - Time of creation.
- description String
- Description of the FileSystem.
- encrypt
Type Integer - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- file
System StringType - The type of the file system.
Valid values:
standard
(Default),extreme
. - id String
- ID of the FileSystem.
- kms
Key StringId - (Optional, Available in v1.140.0+) The id of the KMS key.
- metered
Size Integer - MeteredSize of the FileSystem.
- protocol
Type String - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - region
Id String - ID of the region where the FileSystem is located.
- storage
Type 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 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 number
- (Optional, Available in v1.140.0+) The capacity of the file system.
- create
Time string - Time of creation.
- description string
- Description of the FileSystem.
- encrypt
Type number - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- file
System stringType - The type of the file system.
Valid values:
standard
(Default),extreme
. - id string
- ID of the FileSystem.
- kms
Key stringId - (Optional, Available in v1.140.0+) The id of the KMS key.
- metered
Size number - MeteredSize of the FileSystem.
- protocol
Type string - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - region
Id string - ID of the region where the FileSystem is located.
- storage
Type 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 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 int
- (Optional, Available in v1.140.0+) The capacity of the file system.
- create_
time str - Time of creation.
- description str
- Description of the FileSystem.
- encrypt_
type int - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- file_
system_ strtype - The type of the file system.
Valid values:
standard
(Default),extreme
. - id str
- ID of the FileSystem.
- kms_
key_ strid - (Optional, Available in v1.140.0+) The id of the KMS key.
- metered_
size int - MeteredSize of the FileSystem.
- protocol_
type str - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - region_
id str - ID of the region where the FileSystem is located.
- storage_
type 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 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 Number
- (Optional, Available in v1.140.0+) The capacity of the file system.
- create
Time String - Time of creation.
- description String
- Description of the FileSystem.
- encrypt
Type Number - (Optional, Available in v1.121.2+) Whether the file system is encrypted.
- Valid values:
- file
System StringType - The type of the file system.
Valid values:
standard
(Default),extreme
. - id String
- ID of the FileSystem.
- kms
Key StringId - (Optional, Available in v1.140.0+) The id of the KMS key.
- metered
Size Number - MeteredSize of the FileSystem.
- protocol
Type String - The protocol type of the file system.
Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
). - region
Id String - ID of the region where the FileSystem is located.
- storage
Type 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 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.