Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.dfs.getMountPoints
Explore with Pulumi AI
This data source provides the Dfs Mount Points of the current Alibaba Cloud user.
NOTE: Available in v1.140.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.dfs.getMountPoints({
    fileSystemId: "example_value",
    ids: [
        "example_value-1",
        "example_value-2",
    ],
});
export const dfsMountPointId1 = ids.then(ids => ids.points?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.dfs.get_mount_points(file_system_id="example_value",
    ids=[
        "example_value-1",
        "example_value-2",
    ])
pulumi.export("dfsMountPointId1", ids.points[0].id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dfs"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := dfs.GetMountPoints(ctx, &dfs.GetMountPointsArgs{
			FileSystemId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dfsMountPointId1", ids.Points[0].Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Dfs.GetMountPoints.Invoke(new()
    {
        FileSystemId = "example_value",
        Ids = new[]
        {
            "example_value-1",
            "example_value-2",
        },
    });
    return new Dictionary<string, object?>
    {
        ["dfsMountPointId1"] = ids.Apply(getMountPointsResult => getMountPointsResult.Points[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dfs.DfsFunctions;
import com.pulumi.alicloud.dfs.inputs.GetMountPointsArgs;
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 ids = DfsFunctions.getMountPoints(GetMountPointsArgs.builder()
            .fileSystemId("example_value")
            .ids(            
                "example_value-1",
                "example_value-2")
            .build());
        ctx.export("dfsMountPointId1", ids.applyValue(getMountPointsResult -> getMountPointsResult.points()[0].id()));
    }
}
variables:
  ids:
    fn::invoke:
      function: alicloud:dfs:getMountPoints
      arguments:
        fileSystemId: example_value
        ids:
          - example_value-1
          - example_value-2
outputs:
  dfsMountPointId1: ${ids.points[0].id}
Using getMountPoints
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 getMountPoints(args: GetMountPointsArgs, opts?: InvokeOptions): Promise<GetMountPointsResult>
function getMountPointsOutput(args: GetMountPointsOutputArgs, opts?: InvokeOptions): Output<GetMountPointsResult>def get_mount_points(file_system_id: Optional[str] = None,
                     ids: Optional[Sequence[str]] = None,
                     output_file: Optional[str] = None,
                     status: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetMountPointsResult
def get_mount_points_output(file_system_id: Optional[pulumi.Input[str]] = None,
                     ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     output_file: Optional[pulumi.Input[str]] = None,
                     status: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetMountPointsResult]func GetMountPoints(ctx *Context, args *GetMountPointsArgs, opts ...InvokeOption) (*GetMountPointsResult, error)
func GetMountPointsOutput(ctx *Context, args *GetMountPointsOutputArgs, opts ...InvokeOption) GetMountPointsResultOutput> Note: This function is named GetMountPoints in the Go SDK.
public static class GetMountPoints 
{
    public static Task<GetMountPointsResult> InvokeAsync(GetMountPointsArgs args, InvokeOptions? opts = null)
    public static Output<GetMountPointsResult> Invoke(GetMountPointsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMountPointsResult> getMountPoints(GetMountPointsArgs args, InvokeOptions options)
public static Output<GetMountPointsResult> getMountPoints(GetMountPointsArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:dfs/getMountPoints:getMountPoints
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FileSystem stringId 
- The ID of the File System.
- Ids List<string>
- A list of Mount Point IDs.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Status string
- The status of the Mount Point. Valid values: Active,Inactive.
- FileSystem stringId 
- The ID of the File System.
- Ids []string
- A list of Mount Point IDs.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Status string
- The status of the Mount Point. Valid values: Active,Inactive.
- fileSystem StringId 
- The ID of the File System.
- ids List<String>
- A list of Mount Point IDs.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- status String
- The status of the Mount Point. Valid values: Active,Inactive.
- fileSystem stringId 
- The ID of the File System.
- ids string[]
- A list of Mount Point IDs.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- status string
- The status of the Mount Point. Valid values: Active,Inactive.
- file_system_ strid 
- The ID of the File System.
- ids Sequence[str]
- A list of Mount Point IDs.
- output_file str
- File name where to save data source results (after running pulumi preview).
- status str
- The status of the Mount Point. Valid values: Active,Inactive.
- fileSystem StringId 
- The ID of the File System.
- ids List<String>
- A list of Mount Point IDs.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- status String
- The status of the Mount Point. Valid values: Active,Inactive.
getMountPoints Result
The following output properties are available:
- FileSystem stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Points
List<Pulumi.Ali Cloud. Dfs. Outputs. Get Mount Points Point> 
- OutputFile string
- Status string
- FileSystem stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Points
[]GetMount Points Point 
- OutputFile string
- Status string
- fileSystem StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- points
List<GetMount Points Point> 
- outputFile String
- status String
- fileSystem stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- points
GetMount Points Point[] 
- outputFile string
- status string
- file_system_ strid 
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- points
Sequence[GetMount Points Point] 
- output_file str
- status str
- fileSystem StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- points List<Property Map>
- outputFile String
- status String
Supporting Types
GetMountPointsPoint   
- AccessGroup stringId 
- The ID of the Access Group.
- CreateTime string
- The created time of the Mount Point.
- Description string
- The description of the Mount Point.
- FileSystem stringId 
- The ID of the File System.
- Id string
- The ID of the Mount Point.
- MountPoint stringDomain 
- The domain name of the Mount Point.
- MountPoint stringId 
- The ID of the Mount Point.
- NetworkType string
- The network type of the Mount Point. Valid values: VPC.
- Status string
- The status of the Mount Point. Valid values: Active,Inactive.
- VpcId string
- The ID of the VPC network.
- VswitchId string
- The vswitch id.
- AccessGroup stringId 
- The ID of the Access Group.
- CreateTime string
- The created time of the Mount Point.
- Description string
- The description of the Mount Point.
- FileSystem stringId 
- The ID of the File System.
- Id string
- The ID of the Mount Point.
- MountPoint stringDomain 
- The domain name of the Mount Point.
- MountPoint stringId 
- The ID of the Mount Point.
- NetworkType string
- The network type of the Mount Point. Valid values: VPC.
- Status string
- The status of the Mount Point. Valid values: Active,Inactive.
- VpcId string
- The ID of the VPC network.
- VswitchId string
- The vswitch id.
- accessGroup StringId 
- The ID of the Access Group.
- createTime String
- The created time of the Mount Point.
- description String
- The description of the Mount Point.
- fileSystem StringId 
- The ID of the File System.
- id String
- The ID of the Mount Point.
- mountPoint StringDomain 
- The domain name of the Mount Point.
- mountPoint StringId 
- The ID of the Mount Point.
- networkType String
- The network type of the Mount Point. Valid values: VPC.
- status String
- The status of the Mount Point. Valid values: Active,Inactive.
- vpcId String
- The ID of the VPC network.
- vswitchId String
- The vswitch id.
- accessGroup stringId 
- The ID of the Access Group.
- createTime string
- The created time of the Mount Point.
- description string
- The description of the Mount Point.
- fileSystem stringId 
- The ID of the File System.
- id string
- The ID of the Mount Point.
- mountPoint stringDomain 
- The domain name of the Mount Point.
- mountPoint stringId 
- The ID of the Mount Point.
- networkType string
- The network type of the Mount Point. Valid values: VPC.
- status string
- The status of the Mount Point. Valid values: Active,Inactive.
- vpcId string
- The ID of the VPC network.
- vswitchId string
- The vswitch id.
- access_group_ strid 
- The ID of the Access Group.
- create_time str
- The created time of the Mount Point.
- description str
- The description of the Mount Point.
- file_system_ strid 
- The ID of the File System.
- id str
- The ID of the Mount Point.
- mount_point_ strdomain 
- The domain name of the Mount Point.
- mount_point_ strid 
- The ID of the Mount Point.
- network_type str
- The network type of the Mount Point. Valid values: VPC.
- status str
- The status of the Mount Point. Valid values: Active,Inactive.
- vpc_id str
- The ID of the VPC network.
- vswitch_id str
- The vswitch id.
- accessGroup StringId 
- The ID of the Access Group.
- createTime String
- The created time of the Mount Point.
- description String
- The description of the Mount Point.
- fileSystem StringId 
- The ID of the File System.
- id String
- The ID of the Mount Point.
- mountPoint StringDomain 
- The domain name of the Mount Point.
- mountPoint StringId 
- The ID of the Mount Point.
- networkType String
- The network type of the Mount Point. Valid values: VPC.
- status String
- The status of the Mount Point. Valid values: Active,Inactive.
- vpcId String
- The ID of the VPC network.
- vswitchId String
- The vswitch id.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.