GetMountTargets
This data source provides MountTargets available to the user.
NOTE: Available in 1.35.0+
Example Usage
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; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
mt = alicloud.nas.get_mount_targets(access_group_name="tf-testAccNasConfig",
file_system_id="1a2sc4d")
pulumi.export("alicloudNasMountTargetsId", mt.targets[0]["id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const mt = pulumi.output(alicloud.nas.getMountTargets({
accessGroupName: "tf-testAccNasConfig",
fileSystemId: "1a2sc4d",
}, { async: true }));
export const alicloudNasMountTargetsId = mt.targets[0].id;Using GetMountTargets
function getMountTargets(args: GetMountTargetsArgs, opts?: InvokeOptions): Promise<GetMountTargetsResult>function get_mount_targets(access_group_name=None, file_system_id=None, ids=None, mount_target_domain=None, output_file=None, type=None, vpc_id=None, vswitch_id=None, opts=None)func GetMountTargets(ctx *Context, args *GetMountTargetsArgs, opts ...InvokeOption) (*GetMountTargetsResult, error)public static class GetMountTargets {
public static Task<GetMountTargetsResult> InvokeAsync(GetMountTargetsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- File
System stringId The ID of the FileSystem that owns the MountTarget.
- Access
Group stringName Filter results by a specific AccessGroupName.
- Ids List<string>
A list of MountTargetDomain.
- Mount
Target stringDomain Filter results by a specific MountTargetDomain.
- Output
File string - Type string
Filter results by a specific NetworkType.
- Vpc
Id string Filter results by a specific VpcId.
- Vswitch
Id string Filter results by a specific VSwitchId.
- File
System stringId The ID of the FileSystem that owns the MountTarget.
- Access
Group stringName Filter results by a specific AccessGroupName.
- Ids []string
A list of MountTargetDomain.
- Mount
Target stringDomain Filter results by a specific MountTargetDomain.
- Output
File string - Type string
Filter results by a specific NetworkType.
- Vpc
Id string Filter results by a specific VpcId.
- Vswitch
Id string Filter results by a specific VSwitchId.
- file
System stringId The ID of the FileSystem that owns the MountTarget.
- access
Group stringName Filter results by a specific AccessGroupName.
- ids string[]
A list of MountTargetDomain.
- mount
Target stringDomain Filter results by a specific MountTargetDomain.
- output
File string - type string
Filter results by a specific NetworkType.
- vpc
Id string Filter results by a specific VpcId.
- vswitch
Id string Filter results by a specific VSwitchId.
- file_
system_ strid The ID of the FileSystem that owns the MountTarget.
- access_
group_ strname Filter results by a specific AccessGroupName.
- ids List[str]
A list of MountTargetDomain.
- mount_
target_ strdomain Filter results by a specific MountTargetDomain.
- output_
file str - type str
Filter results by a specific NetworkType.
- vpc_
id str Filter results by a specific VpcId.
- vswitch_
id str Filter results by a specific VSwitchId.
GetMountTargets Result
The following output properties are available:
- File
System stringId - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of MountTargetDomain.
- Targets
List<Pulumi.
Ali Cloud. Nas. Outputs. Get Mount Targets Target> A list of MountTargetDomains. Each element contains the following attributes:
- Access
Group stringName AccessGroup of The MountTarget.
- Mount
Target stringDomain MountTargetDomain of the MountTarget. *
type- NetworkType of The MountTarget.- Output
File string - Type string
- Vpc
Id string VpcId of The MountTarget.
- Vswitch
Id string VSwitchId of The MountTarget.
- File
System stringId - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of MountTargetDomain.
- Targets
[]Get
Mount Targets Target A list of MountTargetDomains. Each element contains the following attributes:
- Access
Group stringName AccessGroup of The MountTarget.
- Mount
Target stringDomain MountTargetDomain of the MountTarget. *
type- NetworkType of The MountTarget.- Output
File string - Type string
- Vpc
Id string VpcId of The MountTarget.
- Vswitch
Id string VSwitchId of The MountTarget.
- file
System stringId - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of MountTargetDomain.
- targets
Get
Mount Targets Target[] A list of MountTargetDomains. Each element contains the following attributes:
- access
Group stringName AccessGroup of The MountTarget.
- mount
Target stringDomain MountTargetDomain of the MountTarget. *
type- NetworkType of The MountTarget.- output
File string - type string
- vpc
Id string VpcId of The MountTarget.
- vswitch
Id string VSwitchId of The MountTarget.
- file_
system_ strid - id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of MountTargetDomain.
- targets
List[Get
Mount Targets Target] A list of MountTargetDomains. Each element contains the following attributes:
- access_
group_ strname AccessGroup of The MountTarget.
- mount_
target_ strdomain MountTargetDomain of the MountTarget. *
type- NetworkType of The MountTarget.- output_
file str - type str
- vpc_
id str VpcId of The MountTarget.
- vswitch_
id str VSwitchId of The MountTarget.
Supporting Types
GetMountTargetsTarget
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Access
Group stringName Filter results by a specific AccessGroupName.
- Id string
ID of the MountTargetDomain.
- Mount
Target stringDomain Filter results by a specific MountTargetDomain.
- Type string
Filter results by a specific NetworkType.
- Vpc
Id string Filter results by a specific VpcId.
- Vswitch
Id string Filter results by a specific VSwitchId.
- Access
Group stringName Filter results by a specific AccessGroupName.
- Id string
ID of the MountTargetDomain.
- Mount
Target stringDomain Filter results by a specific MountTargetDomain.
- Type string
Filter results by a specific NetworkType.
- Vpc
Id string Filter results by a specific VpcId.
- Vswitch
Id string Filter results by a specific VSwitchId.
- access
Group stringName Filter results by a specific AccessGroupName.
- id string
ID of the MountTargetDomain.
- mount
Target stringDomain Filter results by a specific MountTargetDomain.
- type string
Filter results by a specific NetworkType.
- vpc
Id string Filter results by a specific VpcId.
- vswitch
Id string Filter results by a specific VSwitchId.
- access_
group_ strname Filter results by a specific AccessGroupName.
- id str
ID of the MountTargetDomain.
- mount
Target strDomain Filter results by a specific MountTargetDomain.
- type str
Filter results by a specific NetworkType.
- vpc_
id str Filter results by a specific VpcId.
- vswitch_
id str Filter results by a specific VSwitchId.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.