alicloud.dfs.getMountPoints
This data source provides the Dfs Mount Points of the current Alibaba Cloud user.
NOTE: Available in v1.140.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
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 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
})
}
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()));
}
}
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)
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);
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:
- File
System stringId The ID of the File System.
- Ids List<string>
A list of Mount Point IDs.
- Output
File string - Status string
The status of the Mount Point. Valid values:
Active
,Inactive
.
- File
System stringId The ID of the File System.
- Ids []string
A list of Mount Point IDs.
- Output
File string - Status string
The status of the Mount Point. Valid values:
Active
,Inactive
.
- file
System StringId The ID of the File System.
- ids List<String>
A list of Mount Point IDs.
- output
File String - status String
The status of the Mount Point. Valid values:
Active
,Inactive
.
- file
System stringId The ID of the File System.
- ids string[]
A list of Mount Point IDs.
- output
File string - 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 - status str
The status of the Mount Point. Valid values:
Active
,Inactive
.
- file
System StringId The ID of the File System.
- ids List<String>
A list of Mount Point IDs.
- output
File String - status String
The status of the Mount Point. Valid values:
Active
,Inactive
.
getMountPoints Result
The following output properties are available:
- File
System 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> - Output
File string - Status string
- File
System stringId - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Points
[]Get
Mount Points Point - Output
File string - Status string
- file
System StringId - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- points
List<Get
Mount Points Point> - output
File String - status String
- file
System stringId - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- points
Get
Mount Points Point[] - output
File string - status string
- file_
system_ strid - id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- points
Sequence[Get
Mount Points Point] - output_
file str - status str
- file
System StringId - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- points List<Property Map>
- output
File String - status String
Supporting Types
GetMountPointsPoint
- Access
Group stringId The ID of the Access Group.
- Create
Time string The created time of the Mount Point.
- Description string
The description of the Mount Point.
- File
System stringId The ID of the File System.
- Id string
The ID of the Mount Point.
- Mount
Point stringDomain The domain name of the Mount Point.
- Mount
Point stringId The ID of the Mount Point.
- Network
Type string The network type of the Mount Point. Valid values:
VPC
.- Status string
The status of the Mount Point. Valid values:
Active
,Inactive
.- Vpc
Id string The ID of the VPC network.
- Vswitch
Id string The vswitch id.
- Access
Group stringId The ID of the Access Group.
- Create
Time string The created time of the Mount Point.
- Description string
The description of the Mount Point.
- File
System stringId The ID of the File System.
- Id string
The ID of the Mount Point.
- Mount
Point stringDomain The domain name of the Mount Point.
- Mount
Point stringId The ID of the Mount Point.
- Network
Type string The network type of the Mount Point. Valid values:
VPC
.- Status string
The status of the Mount Point. Valid values:
Active
,Inactive
.- Vpc
Id string The ID of the VPC network.
- Vswitch
Id string The vswitch id.
- access
Group StringId The ID of the Access Group.
- create
Time String The created time of the Mount Point.
- description String
The description of the Mount Point.
- file
System StringId The ID of the File System.
- id String
The ID of the Mount Point.
- mount
Point StringDomain The domain name of the Mount Point.
- mount
Point StringId The ID of the Mount Point.
- network
Type String The network type of the Mount Point. Valid values:
VPC
.- status String
The status of the Mount Point. Valid values:
Active
,Inactive
.- vpc
Id String The ID of the VPC network.
- vswitch
Id String The vswitch id.
- access
Group stringId The ID of the Access Group.
- create
Time string The created time of the Mount Point.
- description string
The description of the Mount Point.
- file
System stringId The ID of the File System.
- id string
The ID of the Mount Point.
- mount
Point stringDomain The domain name of the Mount Point.
- mount
Point stringId The ID of the Mount Point.
- network
Type string The network type of the Mount Point. Valid values:
VPC
.- status string
The status of the Mount Point. Valid values:
Active
,Inactive
.- vpc
Id string The ID of the VPC network.
- vswitch
Id 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.
- access
Group StringId The ID of the Access Group.
- create
Time String The created time of the Mount Point.
- description String
The description of the Mount Point.
- file
System StringId The ID of the File System.
- id String
The ID of the Mount Point.
- mount
Point StringDomain The domain name of the Mount Point.
- mount
Point StringId The ID of the Mount Point.
- network
Type String The network type of the Mount Point. Valid values:
VPC
.- status String
The status of the Mount Point. Valid values:
Active
,Inactive
.- vpc
Id String The ID of the VPC network.
- vswitch
Id 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.