get Mount Targets
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
A collection of arguments for invoking getMountTargets.
Return
A collection of values returned by getMountTargets.
See also
Parameters
Filter results by a specific AccessGroupName.
The ID of the FileSystem that owns the MountTarget.
A list of MountTargetDomain.
Field mount_target_domain
has been deprecated from provider version 1.53.0. New field ids
replaces it.
Filter results by a specific NetworkType.
File name where to save data source results (after running pulumi preview
).
Filter results by the status of mount target. Valid values: Active
, Inactive
and Pending
.
Field type
has been deprecated from provider version 1.95.0. New field network_type
replaces it.
Filter results by a specific VpcId.
Filter results by a specific VSwitchId.
Return
A collection of values returned by getMountTargets.
See also
Parameters
Builder for com.pulumi.alicloud.nas.kotlin.inputs.GetMountTargetsPlainArgs.