Class GetMountTargets
Inheritance
System.Object
GetMountTargets
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Nas
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetMountTargets
Methods
View SourceInvokeAsync(GetMountTargetsArgs, InvokeOptions)
This data source provides MountTargets available to the user.
NOTE: Available in 1.35.0+
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var mt = Output.Create(AliCloud.Nas.GetMountTargets.InvokeAsync(new AliCloud.Nas.GetMountTargetsArgs
{
AccessGroupName = "tf-testAccNasConfig",
FileSystemId = "1a2sc4d",
}));
this.AlicloudNasMountTargetsId = mt.Apply(mt => mt.Targets[0].Id);
}
[Output("alicloudNasMountTargetsId")]
public Output<string> AlicloudNasMountTargetsId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetMountTargetsResult> InvokeAsync(GetMountTargetsArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetMountTargetsArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetMountTargetsResult> |