Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.nas.getMountTargets
Explore with Pulumi AI
This data source provides MountTargets available to the user.
NOTE: Available in 1.35.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.nas.getMountTargets({
fileSystemId: "1a2sc4d",
accessGroupName: "tf-testAccNasConfig",
});
export const theFirstMountTargetDomain = example.then(example => example.targets?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.nas.get_mount_targets(file_system_id="1a2sc4d",
access_group_name="tf-testAccNasConfig")
pulumi.export("theFirstMountTargetDomain", example.targets[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := nas.GetMountTargets(ctx, &nas.GetMountTargetsArgs{
FileSystemId: "1a2sc4d",
AccessGroupName: pulumi.StringRef("tf-testAccNasConfig"),
}, nil)
if err != nil {
return err
}
ctx.Export("theFirstMountTargetDomain", example.Targets[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Nas.GetMountTargets.Invoke(new()
{
FileSystemId = "1a2sc4d",
AccessGroupName = "tf-testAccNasConfig",
});
return new Dictionary<string, object?>
{
["theFirstMountTargetDomain"] = example.Apply(getMountTargetsResult => getMountTargetsResult.Targets[0]?.Id),
};
});
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()));
}
}
variables:
example:
fn::invoke:
Function: alicloud:nas:getMountTargets
Arguments:
fileSystemId: 1a2sc4d
accessGroupName: tf-testAccNasConfig
outputs:
theFirstMountTargetDomain: ${example.targets[0].id}
Using getMountTargets
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMountTargets(args: GetMountTargetsArgs, opts?: InvokeOptions): Promise<GetMountTargetsResult>
function getMountTargetsOutput(args: GetMountTargetsOutputArgs, opts?: InvokeOptions): Output<GetMountTargetsResult>
def get_mount_targets(access_group_name: Optional[str] = None,
file_system_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
mount_target_domain: Optional[str] = None,
network_type: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMountTargetsResult
def get_mount_targets_output(access_group_name: Optional[pulumi.Input[str]] = None,
file_system_id: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
mount_target_domain: Optional[pulumi.Input[str]] = None,
network_type: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
vswitch_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMountTargetsResult]
func GetMountTargets(ctx *Context, args *GetMountTargetsArgs, opts ...InvokeOption) (*GetMountTargetsResult, error)
func GetMountTargetsOutput(ctx *Context, args *GetMountTargetsOutputArgs, opts ...InvokeOption) GetMountTargetsResultOutput
> Note: This function is named GetMountTargets
in the Go SDK.
public static class GetMountTargets
{
public static Task<GetMountTargetsResult> InvokeAsync(GetMountTargetsArgs args, InvokeOptions? opts = null)
public static Output<GetMountTargetsResult> Invoke(GetMountTargetsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMountTargetsResult> getMountTargets(GetMountTargetsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:nas/getMountTargets:getMountTargets
arguments:
# arguments dictionary
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 - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - Network
Type string - Filter results by a specific NetworkType.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - Type string
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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 - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - Network
Type string - Filter results by a specific NetworkType.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - Type string
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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 List<String>
- A list of MountTargetDomain.
- mount
Target StringDomain - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - network
Type String - Filter results by a specific NetworkType.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - type String
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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 - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - network
Type string - Filter results by a specific NetworkType.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status string
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - type string
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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 Sequence[str]
- A list of MountTargetDomain.
- mount_
target_ strdomain - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - network_
type str - Filter results by a specific NetworkType.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status str
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - type str
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - vpc_
id str - Filter results by a specific VpcId.
- vswitch_
id str - 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 List<String>
- A list of MountTargetDomain.
- mount
Target StringDomain - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - network
Type String - Filter results by a specific NetworkType.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - type String
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - vpc
Id String - Filter results by a specific VpcId.
- vswitch
Id String - 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.
- Network
Type string - (Available 1.95.0+) NetworkType of The MountTarget.
- Output
File string - Status string
- (Available 1.95.0+) The status of the mount target.
- Type string
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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.
- Network
Type string - (Available 1.95.0+) NetworkType of The MountTarget.
- Output
File string - Status string
- (Available 1.95.0+) The status of the mount target.
- Type string
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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 List<String>
- A list of MountTargetDomain.
- targets
List<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.
- network
Type String - (Available 1.95.0+) NetworkType of The MountTarget.
- output
File String - status String
- (Available 1.95.0+) The status of the mount target.
- type String
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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.
- network
Type string - (Available 1.95.0+) NetworkType of The MountTarget.
- output
File string - status string
- (Available 1.95.0+) The status of the mount target.
- type string
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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 Sequence[str]
- A list of MountTargetDomain.
- targets
Sequence[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.
- network_
type str - (Available 1.95.0+) NetworkType of The MountTarget.
- output_
file str - status str
- (Available 1.95.0+) The status of the mount target.
- type str
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - vpc_
id str - VpcId of The MountTarget.
- vswitch_
id str - VSwitchId of The MountTarget.
- file
System StringId - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of MountTargetDomain.
- targets List<Property Map>
- A list of MountTargetDomains. Each element contains the following attributes:
- access
Group StringName - AccessGroup of The MountTarget.
- mount
Target StringDomain - MountTargetDomain of the MountTarget.
- network
Type String - (Available 1.95.0+) NetworkType of The MountTarget.
- output
File String - status String
- (Available 1.95.0+) The status of the mount target.
- type String
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - vpc
Id String - VpcId of The MountTarget.
- vswitch
Id String - VSwitchId of The MountTarget.
Supporting Types
GetMountTargetsTarget
- Access
Group stringName - Filter results by a specific AccessGroupName.
- Id string
- ID of the MountTargetDomain.
- Mount
Target stringDomain - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - Network
Type string - Filter results by a specific NetworkType.
- Status string
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - Type string
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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 - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - Network
Type string - Filter results by a specific NetworkType.
- Status string
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - Type string
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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 - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - network
Type String - Filter results by a specific NetworkType.
- status String
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - type String
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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 - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - network
Type string - Filter results by a specific NetworkType.
- status string
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - type string
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - 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 - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - network_
type str - Filter results by a specific NetworkType.
- status str
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - type str
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - vpc_
id str - Filter results by a specific VpcId.
- vswitch_
id str - Filter results by a specific VSwitchId.
- access
Group StringName - Filter results by a specific AccessGroupName.
- id String
- ID of the MountTargetDomain.
- mount
Target StringDomain - Field
mount_target_domain
has been deprecated from provider version 1.53.0. New fieldids
replaces it. - network
Type String - Filter results by a specific NetworkType.
- status String
- Filter results by the status of mount target. Valid values:
Active
,Inactive
andPending
. - type String
- Field
type
has been deprecated from provider version 1.95.0. New fieldnetwork_type
replaces it. - vpc
Id String - Filter results by a specific VpcId.
- vswitch
Id String - Filter results by a specific VSwitchId.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.