1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. nas
  5. MountTarget
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.nas.MountTarget

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Provides a NAS Mount Target resource. For information about NAS Mount Target and how to use it, see Manage NAS Mount Targets.

    NOTE: Available since v1.34.0.

    Create MountTarget Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MountTarget(name: string, args: MountTargetArgs, opts?: CustomResourceOptions);
    @overload
    def MountTarget(resource_name: str,
                    args: MountTargetArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def MountTarget(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    file_system_id: Optional[str] = None,
                    access_group_name: Optional[str] = None,
                    network_type: Optional[str] = None,
                    security_group_id: Optional[str] = None,
                    status: Optional[str] = None,
                    vpc_id: Optional[str] = None,
                    vswitch_id: Optional[str] = None)
    func NewMountTarget(ctx *Context, name string, args MountTargetArgs, opts ...ResourceOption) (*MountTarget, error)
    public MountTarget(string name, MountTargetArgs args, CustomResourceOptions? opts = null)
    public MountTarget(String name, MountTargetArgs args)
    public MountTarget(String name, MountTargetArgs args, CustomResourceOptions options)
    
    type: alicloud:nas:MountTarget
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MountTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MountTargetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MountTargetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MountTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MountTargetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var mountTargetResource = new AliCloud.Nas.MountTarget("mountTargetResource", new()
    {
        FileSystemId = "string",
        AccessGroupName = "string",
        NetworkType = "string",
        SecurityGroupId = "string",
        Status = "string",
        VpcId = "string",
        VswitchId = "string",
    });
    
    example, err := nas.NewMountTarget(ctx, "mountTargetResource", &nas.MountTargetArgs{
    	FileSystemId:    pulumi.String("string"),
    	AccessGroupName: pulumi.String("string"),
    	NetworkType:     pulumi.String("string"),
    	SecurityGroupId: pulumi.String("string"),
    	Status:          pulumi.String("string"),
    	VpcId:           pulumi.String("string"),
    	VswitchId:       pulumi.String("string"),
    })
    
    var mountTargetResource = new MountTarget("mountTargetResource", MountTargetArgs.builder()        
        .fileSystemId("string")
        .accessGroupName("string")
        .networkType("string")
        .securityGroupId("string")
        .status("string")
        .vpcId("string")
        .vswitchId("string")
        .build());
    
    mount_target_resource = alicloud.nas.MountTarget("mountTargetResource",
        file_system_id="string",
        access_group_name="string",
        network_type="string",
        security_group_id="string",
        status="string",
        vpc_id="string",
        vswitch_id="string")
    
    const mountTargetResource = new alicloud.nas.MountTarget("mountTargetResource", {
        fileSystemId: "string",
        accessGroupName: "string",
        networkType: "string",
        securityGroupId: "string",
        status: "string",
        vpcId: "string",
        vswitchId: "string",
    });
    
    type: alicloud:nas:MountTarget
    properties:
        accessGroupName: string
        fileSystemId: string
        networkType: string
        securityGroupId: string
        status: string
        vpcId: string
        vswitchId: string
    

    MountTarget Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The MountTarget resource accepts the following input properties:

    FileSystemId string
    The ID of the file system.
    AccessGroupName string
    The name of the permission group that applies to the mount target.
    NetworkType string
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    SecurityGroupId string
    The ID of security group.
    Status string
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    VpcId string
    The ID of VPC.
    VswitchId string
    The ID of the VSwitch in the VPC where the mount target resides.
    FileSystemId string
    The ID of the file system.
    AccessGroupName string
    The name of the permission group that applies to the mount target.
    NetworkType string
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    SecurityGroupId string
    The ID of security group.
    Status string
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    VpcId string
    The ID of VPC.
    VswitchId string
    The ID of the VSwitch in the VPC where the mount target resides.
    fileSystemId String
    The ID of the file system.
    accessGroupName String
    The name of the permission group that applies to the mount target.
    networkType String
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    securityGroupId String
    The ID of security group.
    status String
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    vpcId String
    The ID of VPC.
    vswitchId String
    The ID of the VSwitch in the VPC where the mount target resides.
    fileSystemId string
    The ID of the file system.
    accessGroupName string
    The name of the permission group that applies to the mount target.
    networkType string
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    securityGroupId string
    The ID of security group.
    status string
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    vpcId string
    The ID of VPC.
    vswitchId string
    The ID of the VSwitch in the VPC where the mount target resides.
    file_system_id str
    The ID of the file system.
    access_group_name str
    The name of the permission group that applies to the mount target.
    network_type str
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    security_group_id str
    The ID of security group.
    status str
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    vpc_id str
    The ID of VPC.
    vswitch_id str
    The ID of the VSwitch in the VPC where the mount target resides.
    fileSystemId String
    The ID of the file system.
    accessGroupName String
    The name of the permission group that applies to the mount target.
    networkType String
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    securityGroupId String
    The ID of security group.
    status String
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    vpcId String
    The ID of VPC.
    vswitchId String
    The ID of the VSwitch in the VPC where the mount target resides.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MountTarget resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    MountTargetDomain string
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    Id string
    The provider-assigned unique ID for this managed resource.
    MountTargetDomain string
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    id String
    The provider-assigned unique ID for this managed resource.
    mountTargetDomain String
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    id string
    The provider-assigned unique ID for this managed resource.
    mountTargetDomain string
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    id str
    The provider-assigned unique ID for this managed resource.
    mount_target_domain str
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    id String
    The provider-assigned unique ID for this managed resource.
    mountTargetDomain String
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.

    Look up Existing MountTarget Resource

    Get an existing MountTarget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MountTargetState, opts?: CustomResourceOptions): MountTarget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_group_name: Optional[str] = None,
            file_system_id: Optional[str] = None,
            mount_target_domain: Optional[str] = None,
            network_type: Optional[str] = None,
            security_group_id: Optional[str] = None,
            status: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None) -> MountTarget
    func GetMountTarget(ctx *Context, name string, id IDInput, state *MountTargetState, opts ...ResourceOption) (*MountTarget, error)
    public static MountTarget Get(string name, Input<string> id, MountTargetState? state, CustomResourceOptions? opts = null)
    public static MountTarget get(String name, Output<String> id, MountTargetState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccessGroupName string
    The name of the permission group that applies to the mount target.
    FileSystemId string
    The ID of the file system.
    MountTargetDomain string
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    NetworkType string
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    SecurityGroupId string
    The ID of security group.
    Status string
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    VpcId string
    The ID of VPC.
    VswitchId string
    The ID of the VSwitch in the VPC where the mount target resides.
    AccessGroupName string
    The name of the permission group that applies to the mount target.
    FileSystemId string
    The ID of the file system.
    MountTargetDomain string
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    NetworkType string
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    SecurityGroupId string
    The ID of security group.
    Status string
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    VpcId string
    The ID of VPC.
    VswitchId string
    The ID of the VSwitch in the VPC where the mount target resides.
    accessGroupName String
    The name of the permission group that applies to the mount target.
    fileSystemId String
    The ID of the file system.
    mountTargetDomain String
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    networkType String
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    securityGroupId String
    The ID of security group.
    status String
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    vpcId String
    The ID of VPC.
    vswitchId String
    The ID of the VSwitch in the VPC where the mount target resides.
    accessGroupName string
    The name of the permission group that applies to the mount target.
    fileSystemId string
    The ID of the file system.
    mountTargetDomain string
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    networkType string
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    securityGroupId string
    The ID of security group.
    status string
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    vpcId string
    The ID of VPC.
    vswitchId string
    The ID of the VSwitch in the VPC where the mount target resides.
    access_group_name str
    The name of the permission group that applies to the mount target.
    file_system_id str
    The ID of the file system.
    mount_target_domain str
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    network_type str
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    security_group_id str
    The ID of security group.
    status str
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    vpc_id str
    The ID of VPC.
    vswitch_id str
    The ID of the VSwitch in the VPC where the mount target resides.
    accessGroupName String
    The name of the permission group that applies to the mount target.
    fileSystemId String
    The ID of the file system.
    mountTargetDomain String
    The IPv4 domain name of the mount target. NOTE: Available since v1.161.0.
    networkType String
    mount target network type. Valid values: VPC. The classic network's mount targets are not supported.
    securityGroupId String
    The ID of security group.
    status String
    Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.
    vpcId String
    The ID of VPC.
    vswitchId String
    The ID of the VSwitch in the VPC where the mount target resides.

    Import

    NAS MountTarget can be imported using the id, e.g.

    $ pulumi import alicloud:nas/mountTarget:MountTarget foo 192094b415:192094b415-luw38.cn-beijing.nas.aliyuncs.com
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi