1. Packages
  2. Alicloud Provider
  3. API Docs
  4. dfs
  5. getMountPoints
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.dfs.getMountPoints

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:dfs/getMountPoints:getMountPoints
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FileSystemId string
    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.
    FileSystemId string
    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.
    fileSystemId String
    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.
    fileSystemId string
    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_id str
    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.
    fileSystemId String
    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:

    FileSystemId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Points List<Pulumi.AliCloud.Dfs.Outputs.GetMountPointsPoint>
    OutputFile string
    Status string
    FileSystemId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Points []GetMountPointsPoint
    OutputFile string
    Status string
    fileSystemId String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    points List<GetMountPointsPoint>
    outputFile String
    status String
    fileSystemId string
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    points GetMountPointsPoint[]
    outputFile string
    status string
    file_system_id str
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    points Sequence[GetMountPointsPoint]
    output_file str
    status str
    fileSystemId String
    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

    AccessGroupId string
    The ID of the Access Group.
    CreateTime string
    The created time of the Mount Point.
    Description string
    The description of the Mount Point.
    FileSystemId string
    The ID of the File System.
    Id string
    The ID of the Mount Point.
    MountPointDomain string
    The domain name of the Mount Point.
    MountPointId string
    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.
    AccessGroupId string
    The ID of the Access Group.
    CreateTime string
    The created time of the Mount Point.
    Description string
    The description of the Mount Point.
    FileSystemId string
    The ID of the File System.
    Id string
    The ID of the Mount Point.
    MountPointDomain string
    The domain name of the Mount Point.
    MountPointId string
    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.
    accessGroupId String
    The ID of the Access Group.
    createTime String
    The created time of the Mount Point.
    description String
    The description of the Mount Point.
    fileSystemId String
    The ID of the File System.
    id String
    The ID of the Mount Point.
    mountPointDomain String
    The domain name of the Mount Point.
    mountPointId String
    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.
    accessGroupId string
    The ID of the Access Group.
    createTime string
    The created time of the Mount Point.
    description string
    The description of the Mount Point.
    fileSystemId string
    The ID of the File System.
    id string
    The ID of the Mount Point.
    mountPointDomain string
    The domain name of the Mount Point.
    mountPointId string
    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_id str
    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_id str
    The ID of the File System.
    id str
    The ID of the Mount Point.
    mount_point_domain str
    The domain name of the Mount Point.
    mount_point_id str
    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.
    accessGroupId String
    The ID of the Access Group.
    createTime String
    The created time of the Mount Point.
    description String
    The description of the Mount Point.
    fileSystemId String
    The ID of the File System.
    id String
    The ID of the Mount Point.
    mountPointDomain String
    The domain name of the Mount Point.
    mountPointId String
    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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi