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:

FileSystemId string

The ID of the FileSystem that owns the MountTarget.

AccessGroupName string

Filter results by a specific AccessGroupName.

Ids List<string>

A list of MountTargetDomain.

MountTargetDomain string

Filter results by a specific MountTargetDomain.

Deprecated: Field 'mount_target_domain' has been deprecated from provider version 1.53.0. New field 'ids' replaces it.

OutputFile string
Type string

Filter results by a specific NetworkType.

VpcId string

Filter results by a specific VpcId.

VswitchId string

Filter results by a specific VSwitchId.

FileSystemId string

The ID of the FileSystem that owns the MountTarget.

AccessGroupName string

Filter results by a specific AccessGroupName.

Ids []string

A list of MountTargetDomain.

MountTargetDomain string

Filter results by a specific MountTargetDomain.

Deprecated: Field 'mount_target_domain' has been deprecated from provider version 1.53.0. New field 'ids' replaces it.

OutputFile string
Type string

Filter results by a specific NetworkType.

VpcId string

Filter results by a specific VpcId.

VswitchId string

Filter results by a specific VSwitchId.

fileSystemId string

The ID of the FileSystem that owns the MountTarget.

accessGroupName string

Filter results by a specific AccessGroupName.

ids string[]

A list of MountTargetDomain.

mountTargetDomain string

Filter results by a specific MountTargetDomain.

Deprecated: Field 'mount_target_domain' has been deprecated from provider version 1.53.0. New field 'ids' replaces it.

outputFile string
type string

Filter results by a specific NetworkType.

vpcId string

Filter results by a specific VpcId.

vswitchId string

Filter results by a specific VSwitchId.

file_system_id str

The ID of the FileSystem that owns the MountTarget.

access_group_name str

Filter results by a specific AccessGroupName.

ids List[str]

A list of MountTargetDomain.

mount_target_domain str

Filter results by a specific MountTargetDomain.

Deprecated: Field 'mount_target_domain' has been deprecated from provider version 1.53.0. New field 'ids' replaces it.

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:

FileSystemId string
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of MountTargetDomain.

Targets List<Pulumi.AliCloud.Nas.Outputs.GetMountTargetsTarget>

A list of MountTargetDomains. Each element contains the following attributes:

AccessGroupName string

AccessGroup of The MountTarget.

MountTargetDomain string

MountTargetDomain of the MountTarget. * type- NetworkType of The MountTarget.

Deprecated: Field 'mount_target_domain' has been deprecated from provider version 1.53.0. New field 'ids' replaces it.

OutputFile string
Type string
VpcId string

VpcId of The MountTarget.

VswitchId string

VSwitchId of The MountTarget.

FileSystemId string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of MountTargetDomain.

Targets []GetMountTargetsTarget

A list of MountTargetDomains. Each element contains the following attributes:

AccessGroupName string

AccessGroup of The MountTarget.

MountTargetDomain string

MountTargetDomain of the MountTarget. * type- NetworkType of The MountTarget.

Deprecated: Field 'mount_target_domain' has been deprecated from provider version 1.53.0. New field 'ids' replaces it.

OutputFile string
Type string
VpcId string

VpcId of The MountTarget.

VswitchId string

VSwitchId of The MountTarget.

fileSystemId string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of MountTargetDomain.

targets GetMountTargetsTarget[]

A list of MountTargetDomains. Each element contains the following attributes:

accessGroupName string

AccessGroup of The MountTarget.

mountTargetDomain string

MountTargetDomain of the MountTarget. * type- NetworkType of The MountTarget.

Deprecated: Field 'mount_target_domain' has been deprecated from provider version 1.53.0. New field 'ids' replaces it.

outputFile string
type string
vpcId string

VpcId of The MountTarget.

vswitchId string

VSwitchId of The MountTarget.

file_system_id str
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of MountTargetDomain.

targets List[GetMountTargetsTarget]

A list of MountTargetDomains. Each element contains the following attributes:

access_group_name str

AccessGroup of The MountTarget.

mount_target_domain str

MountTargetDomain of the MountTarget. * type- NetworkType of The MountTarget.

Deprecated: Field 'mount_target_domain' has been deprecated from provider version 1.53.0. New field 'ids' replaces it.

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.

AccessGroupName string

Filter results by a specific AccessGroupName.

Id string

ID of the MountTargetDomain.

MountTargetDomain string

Filter results by a specific MountTargetDomain.

Type string

Filter results by a specific NetworkType.

VpcId string

Filter results by a specific VpcId.

VswitchId string

Filter results by a specific VSwitchId.

AccessGroupName string

Filter results by a specific AccessGroupName.

Id string

ID of the MountTargetDomain.

MountTargetDomain string

Filter results by a specific MountTargetDomain.

Type string

Filter results by a specific NetworkType.

VpcId string

Filter results by a specific VpcId.

VswitchId string

Filter results by a specific VSwitchId.

accessGroupName string

Filter results by a specific AccessGroupName.

id string

ID of the MountTargetDomain.

mountTargetDomain string

Filter results by a specific MountTargetDomain.

type string

Filter results by a specific NetworkType.

vpcId string

Filter results by a specific VpcId.

vswitchId string

Filter results by a specific VSwitchId.

access_group_name str

Filter results by a specific AccessGroupName.

id str

ID of the MountTargetDomain.

mountTargetDomain str

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 alicloud Terraform Provider.