getMountTargets

This data source provides MountTargets available to the user.

NOTE: Available in 1.35.0+

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.NasFunctions;
import com.pulumi.alicloud.nas.inputs.GetMountTargetsArgs;
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 example = NasFunctions.getMountTargets(GetMountTargetsArgs.builder()
.fileSystemId("1a2sc4d")
.accessGroupName("tf-testAccNasConfig")
.build());
ctx.export("theFirstMountTargetDomain", example.applyValue(getMountTargetsResult -> getMountTargetsResult.targets()[0].id()));
}
}

Return

A collection of values returned by getMountTargets.

Parameters

argument

A collection of arguments for invoking getMountTargets.


suspend fun getMountTargets(accessGroupName: String? = null, fileSystemId: String, ids: List<String>? = null, mountTargetDomain: String? = null, networkType: String? = null, outputFile: String? = null, status: String? = null, type: String? = null, vpcId: String? = null, vswitchId: String? = null): GetMountTargetsResult

Return

A collection of values returned by getMountTargets.

See also

Parameters

accessGroupName

Filter results by a specific AccessGroupName.

fileSystemId

The ID of the FileSystem that owns the MountTarget.

ids

A list of MountTargetDomain.

mountTargetDomain

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

networkType

Filter results by a specific NetworkType.

outputFile

File name where to save data source results (after running pulumi preview).

status

Filter results by the status of mount target. Valid values: Active, Inactive and Pending.

type

Field type has been deprecated from provider version 1.95.0. New field network_type replaces it.

vpcId

Filter results by a specific VpcId.

vswitchId

Filter results by a specific VSwitchId.


Return

A collection of values returned by getMountTargets.

See also

Parameters

argument

Builder for com.pulumi.alicloud.nas.kotlin.inputs.GetMountTargetsPlainArgs.