1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dfs
  5. MountPoint
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.dfs.MountPoint

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Provides a DFS Mount Point resource.

    For information about DFS Mount Point and how to use it, see What is Mount Point.

    NOTE: Available since v1.140.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const defaultZones = alicloud.dfs.getZones({});
    const defaultRandomInteger = new random.RandomInteger("defaultRandomInteger", {
        min: 10000,
        max: 99999,
    });
    const defaultVPC = new alicloud.vpc.Network("defaultVPC", {
        cidrBlock: "172.16.0.0/12",
        vpcName: name,
    });
    const defaultVSwitch = new alicloud.vpc.Switch("defaultVSwitch", {
        description: "example",
        vpcId: defaultVPC.id,
        cidrBlock: "172.16.0.0/24",
        vswitchName: name,
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.zoneId),
    });
    const defaultAccessGroup = new alicloud.dfs.AccessGroup("defaultAccessGroup", {
        description: "AccessGroup resource manager center example",
        networkType: "VPC",
        accessGroupName: pulumi.interpolate`${name}-${defaultRandomInteger.result}`,
    });
    const updateAccessGroup = new alicloud.dfs.AccessGroup("updateAccessGroup", {
        description: "Second AccessGroup resource manager center example",
        networkType: "VPC",
        accessGroupName: pulumi.interpolate`${name}-update-${defaultRandomInteger.result}`,
    });
    const defaultFs = new alicloud.dfs.FileSystem("defaultFs", {
        spaceCapacity: 1024,
        description: "for mountpoint  example",
        storageType: "STANDARD",
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.zoneId),
        protocolType: "HDFS",
        dataRedundancyType: "LRS",
        fileSystemName: pulumi.interpolate`${name}-${defaultRandomInteger.result}`,
    });
    const defaultMountPoint = new alicloud.dfs.MountPoint("defaultMountPoint", {
        vpcId: defaultVPC.id,
        description: "mountpoint example",
        networkType: "VPC",
        vswitchId: defaultVSwitch.id,
        fileSystemId: defaultFs.id,
        accessGroupId: defaultAccessGroup.id,
        status: "Active",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default_zones = alicloud.dfs.get_zones()
    default_random_integer = random.RandomInteger("defaultRandomInteger",
        min=10000,
        max=99999)
    default_vpc = alicloud.vpc.Network("defaultVPC",
        cidr_block="172.16.0.0/12",
        vpc_name=name)
    default_v_switch = alicloud.vpc.Switch("defaultVSwitch",
        description="example",
        vpc_id=default_vpc.id,
        cidr_block="172.16.0.0/24",
        vswitch_name=name,
        zone_id=default_zones.zones[0].zone_id)
    default_access_group = alicloud.dfs.AccessGroup("defaultAccessGroup",
        description="AccessGroup resource manager center example",
        network_type="VPC",
        access_group_name=default_random_integer.result.apply(lambda result: f"{name}-{result}"))
    update_access_group = alicloud.dfs.AccessGroup("updateAccessGroup",
        description="Second AccessGroup resource manager center example",
        network_type="VPC",
        access_group_name=default_random_integer.result.apply(lambda result: f"{name}-update-{result}"))
    default_fs = alicloud.dfs.FileSystem("defaultFs",
        space_capacity=1024,
        description="for mountpoint  example",
        storage_type="STANDARD",
        zone_id=default_zones.zones[0].zone_id,
        protocol_type="HDFS",
        data_redundancy_type="LRS",
        file_system_name=default_random_integer.result.apply(lambda result: f"{name}-{result}"))
    default_mount_point = alicloud.dfs.MountPoint("defaultMountPoint",
        vpc_id=default_vpc.id,
        description="mountpoint example",
        network_type="VPC",
        vswitch_id=default_v_switch.id,
        file_system_id=default_fs.id,
        access_group_id=default_access_group.id,
        status="Active")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dfs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultZones, err := dfs.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultRandomInteger, err := random.NewRandomInteger(ctx, "defaultRandomInteger", &random.RandomIntegerArgs{
    			Min: pulumi.Int(10000),
    			Max: pulumi.Int(99999),
    		})
    		if err != nil {
    			return err
    		}
    		defaultVPC, err := vpc.NewNetwork(ctx, "defaultVPC", &vpc.NetworkArgs{
    			CidrBlock: pulumi.String("172.16.0.0/12"),
    			VpcName:   pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultVSwitch, err := vpc.NewSwitch(ctx, "defaultVSwitch", &vpc.SwitchArgs{
    			Description: pulumi.String("example"),
    			VpcId:       defaultVPC.ID(),
    			CidrBlock:   pulumi.String("172.16.0.0/24"),
    			VswitchName: pulumi.String(name),
    			ZoneId:      pulumi.String(defaultZones.Zones[0].ZoneId),
    		})
    		if err != nil {
    			return err
    		}
    		defaultAccessGroup, err := dfs.NewAccessGroup(ctx, "defaultAccessGroup", &dfs.AccessGroupArgs{
    			Description: pulumi.String("AccessGroup resource manager center example"),
    			NetworkType: pulumi.String("VPC"),
    			AccessGroupName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) {
    				return fmt.Sprintf("%v-%v", name, result), nil
    			}).(pulumi.StringOutput),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dfs.NewAccessGroup(ctx, "updateAccessGroup", &dfs.AccessGroupArgs{
    			Description: pulumi.String("Second AccessGroup resource manager center example"),
    			NetworkType: pulumi.String("VPC"),
    			AccessGroupName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) {
    				return fmt.Sprintf("%v-update-%v", name, result), nil
    			}).(pulumi.StringOutput),
    		})
    		if err != nil {
    			return err
    		}
    		defaultFs, err := dfs.NewFileSystem(ctx, "defaultFs", &dfs.FileSystemArgs{
    			SpaceCapacity:      pulumi.Int(1024),
    			Description:        pulumi.String("for mountpoint  example"),
    			StorageType:        pulumi.String("STANDARD"),
    			ZoneId:             pulumi.String(defaultZones.Zones[0].ZoneId),
    			ProtocolType:       pulumi.String("HDFS"),
    			DataRedundancyType: pulumi.String("LRS"),
    			FileSystemName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) {
    				return fmt.Sprintf("%v-%v", name, result), nil
    			}).(pulumi.StringOutput),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dfs.NewMountPoint(ctx, "defaultMountPoint", &dfs.MountPointArgs{
    			VpcId:         defaultVPC.ID(),
    			Description:   pulumi.String("mountpoint example"),
    			NetworkType:   pulumi.String("VPC"),
    			VswitchId:     defaultVSwitch.ID(),
    			FileSystemId:  defaultFs.ID(),
    			AccessGroupId: defaultAccessGroup.ID(),
    			Status:        pulumi.String("Active"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var defaultZones = AliCloud.Dfs.GetZones.Invoke();
    
        var defaultRandomInteger = new Random.RandomInteger("defaultRandomInteger", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultVPC = new AliCloud.Vpc.Network("defaultVPC", new()
        {
            CidrBlock = "172.16.0.0/12",
            VpcName = name,
        });
    
        var defaultVSwitch = new AliCloud.Vpc.Switch("defaultVSwitch", new()
        {
            Description = "example",
            VpcId = defaultVPC.Id,
            CidrBlock = "172.16.0.0/24",
            VswitchName = name,
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId),
        });
    
        var defaultAccessGroup = new AliCloud.Dfs.AccessGroup("defaultAccessGroup", new()
        {
            Description = "AccessGroup resource manager center example",
            NetworkType = "VPC",
            AccessGroupName = defaultRandomInteger.Result.Apply(result => $"{name}-{result}"),
        });
    
        var updateAccessGroup = new AliCloud.Dfs.AccessGroup("updateAccessGroup", new()
        {
            Description = "Second AccessGroup resource manager center example",
            NetworkType = "VPC",
            AccessGroupName = defaultRandomInteger.Result.Apply(result => $"{name}-update-{result}"),
        });
    
        var defaultFs = new AliCloud.Dfs.FileSystem("defaultFs", new()
        {
            SpaceCapacity = 1024,
            Description = "for mountpoint  example",
            StorageType = "STANDARD",
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId),
            ProtocolType = "HDFS",
            DataRedundancyType = "LRS",
            FileSystemName = defaultRandomInteger.Result.Apply(result => $"{name}-{result}"),
        });
    
        var defaultMountPoint = new AliCloud.Dfs.MountPoint("defaultMountPoint", new()
        {
            VpcId = defaultVPC.Id,
            Description = "mountpoint example",
            NetworkType = "VPC",
            VswitchId = defaultVSwitch.Id,
            FileSystemId = defaultFs.Id,
            AccessGroupId = defaultAccessGroup.Id,
            Status = "Active",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.dfs.DfsFunctions;
    import com.pulumi.alicloud.dfs.inputs.GetZonesArgs;
    import com.pulumi.random.RandomInteger;
    import com.pulumi.random.RandomIntegerArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.dfs.AccessGroup;
    import com.pulumi.alicloud.dfs.AccessGroupArgs;
    import com.pulumi.alicloud.dfs.FileSystem;
    import com.pulumi.alicloud.dfs.FileSystemArgs;
    import com.pulumi.alicloud.dfs.MountPoint;
    import com.pulumi.alicloud.dfs.MountPointArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var defaultZones = DfsFunctions.getZones();
    
            var defaultRandomInteger = new RandomInteger("defaultRandomInteger", RandomIntegerArgs.builder()        
                .min(10000)
                .max(99999)
                .build());
    
            var defaultVPC = new Network("defaultVPC", NetworkArgs.builder()        
                .cidrBlock("172.16.0.0/12")
                .vpcName(name)
                .build());
    
            var defaultVSwitch = new Switch("defaultVSwitch", SwitchArgs.builder()        
                .description("example")
                .vpcId(defaultVPC.id())
                .cidrBlock("172.16.0.0/24")
                .vswitchName(name)
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()))
                .build());
    
            var defaultAccessGroup = new AccessGroup("defaultAccessGroup", AccessGroupArgs.builder()        
                .description("AccessGroup resource manager center example")
                .networkType("VPC")
                .accessGroupName(defaultRandomInteger.result().applyValue(result -> String.format("%s-%s", name,result)))
                .build());
    
            var updateAccessGroup = new AccessGroup("updateAccessGroup", AccessGroupArgs.builder()        
                .description("Second AccessGroup resource manager center example")
                .networkType("VPC")
                .accessGroupName(defaultRandomInteger.result().applyValue(result -> String.format("%s-update-%s", name,result)))
                .build());
    
            var defaultFs = new FileSystem("defaultFs", FileSystemArgs.builder()        
                .spaceCapacity("1024")
                .description("for mountpoint  example")
                .storageType("STANDARD")
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()))
                .protocolType("HDFS")
                .dataRedundancyType("LRS")
                .fileSystemName(defaultRandomInteger.result().applyValue(result -> String.format("%s-%s", name,result)))
                .build());
    
            var defaultMountPoint = new MountPoint("defaultMountPoint", MountPointArgs.builder()        
                .vpcId(defaultVPC.id())
                .description("mountpoint example")
                .networkType("VPC")
                .vswitchId(defaultVSwitch.id())
                .fileSystemId(defaultFs.id())
                .accessGroupId(defaultAccessGroup.id())
                .status("Active")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultRandomInteger:
        type: random:RandomInteger
        properties:
          min: 10000
          max: 99999
      defaultVPC:
        type: alicloud:vpc:Network
        properties:
          cidrBlock: 172.16.0.0/12
          vpcName: ${name}
      defaultVSwitch:
        type: alicloud:vpc:Switch
        properties:
          description: example
          vpcId: ${defaultVPC.id}
          cidrBlock: 172.16.0.0/24
          vswitchName: ${name}
          zoneId: ${defaultZones.zones[0].zoneId}
      defaultAccessGroup:
        type: alicloud:dfs:AccessGroup
        properties:
          description: AccessGroup resource manager center example
          networkType: VPC
          accessGroupName: ${name}-${defaultRandomInteger.result}
      updateAccessGroup:
        type: alicloud:dfs:AccessGroup
        properties:
          description: Second AccessGroup resource manager center example
          networkType: VPC
          accessGroupName: ${name}-update-${defaultRandomInteger.result}
      defaultFs:
        type: alicloud:dfs:FileSystem
        properties:
          spaceCapacity: '1024'
          description: for mountpoint  example
          storageType: STANDARD
          zoneId: ${defaultZones.zones[0].zoneId}
          protocolType: HDFS
          dataRedundancyType: LRS
          fileSystemName: ${name}-${defaultRandomInteger.result}
      defaultMountPoint:
        type: alicloud:dfs:MountPoint
        properties:
          vpcId: ${defaultVPC.id}
          description: mountpoint example
          networkType: VPC
          vswitchId: ${defaultVSwitch.id}
          fileSystemId: ${defaultFs.id}
          accessGroupId: ${defaultAccessGroup.id}
          status: Active
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:dfs:getZones
          Arguments: {}
    

    Create MountPoint Resource

    new MountPoint(name: string, args: MountPointArgs, opts?: CustomResourceOptions);
    @overload
    def MountPoint(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   access_group_id: Optional[str] = None,
                   alias_prefix: Optional[str] = None,
                   description: Optional[str] = None,
                   file_system_id: Optional[str] = None,
                   network_type: Optional[str] = None,
                   status: Optional[str] = None,
                   vpc_id: Optional[str] = None,
                   vswitch_id: Optional[str] = None)
    @overload
    def MountPoint(resource_name: str,
                   args: MountPointArgs,
                   opts: Optional[ResourceOptions] = None)
    func NewMountPoint(ctx *Context, name string, args MountPointArgs, opts ...ResourceOption) (*MountPoint, error)
    public MountPoint(string name, MountPointArgs args, CustomResourceOptions? opts = null)
    public MountPoint(String name, MountPointArgs args)
    public MountPoint(String name, MountPointArgs args, CustomResourceOptions options)
    
    type: alicloud:dfs:MountPoint
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args MountPointArgs
    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 MountPointArgs
    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 MountPointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MountPointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MountPointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    MountPoint 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 MountPoint resource accepts the following input properties:

    AccessGroupId string
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    FileSystemId string
    Unique file system identifier, used to retrieve specified file system resources.
    NetworkType string
    The network type of the Mount point. Only VPC (VPC) is supported.
    VpcId string
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    VswitchId string
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    AliasPrefix string
    The mount point alias prefix, which specifies the mount point alias prefix.
    Description string
    The description of the Mount point. No more than 32 characters in length.
    Status string
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    AccessGroupId string
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    FileSystemId string
    Unique file system identifier, used to retrieve specified file system resources.
    NetworkType string
    The network type of the Mount point. Only VPC (VPC) is supported.
    VpcId string
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    VswitchId string
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    AliasPrefix string
    The mount point alias prefix, which specifies the mount point alias prefix.
    Description string
    The description of the Mount point. No more than 32 characters in length.
    Status string
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    accessGroupId String
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    fileSystemId String
    Unique file system identifier, used to retrieve specified file system resources.
    networkType String
    The network type of the Mount point. Only VPC (VPC) is supported.
    vpcId String
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    vswitchId String
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    aliasPrefix String
    The mount point alias prefix, which specifies the mount point alias prefix.
    description String
    The description of the Mount point. No more than 32 characters in length.
    status String
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    accessGroupId string
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    fileSystemId string
    Unique file system identifier, used to retrieve specified file system resources.
    networkType string
    The network type of the Mount point. Only VPC (VPC) is supported.
    vpcId string
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    vswitchId string
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    aliasPrefix string
    The mount point alias prefix, which specifies the mount point alias prefix.
    description string
    The description of the Mount point. No more than 32 characters in length.
    status string
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    access_group_id str
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    file_system_id str
    Unique file system identifier, used to retrieve specified file system resources.
    network_type str
    The network type of the Mount point. Only VPC (VPC) is supported.
    vpc_id str
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    vswitch_id str
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    alias_prefix str
    The mount point alias prefix, which specifies the mount point alias prefix.
    description str
    The description of the Mount point. No more than 32 characters in length.
    status str
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    accessGroupId String
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    fileSystemId String
    Unique file system identifier, used to retrieve specified file system resources.
    networkType String
    The network type of the Mount point. Only VPC (VPC) is supported.
    vpcId String
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    vswitchId String
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    aliasPrefix String
    The mount point alias prefix, which specifies the mount point alias prefix.
    description String
    The description of the Mount point. No more than 32 characters in length.
    status String
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.

    Outputs

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

    CreateTime string
    The creation time of the Mount point resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    MountPointId string
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    CreateTime string
    The creation time of the Mount point resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    MountPointId string
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    createTime String
    The creation time of the Mount point resource.
    id String
    The provider-assigned unique ID for this managed resource.
    mountPointId String
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    createTime string
    The creation time of the Mount point resource.
    id string
    The provider-assigned unique ID for this managed resource.
    mountPointId string
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    create_time str
    The creation time of the Mount point resource.
    id str
    The provider-assigned unique ID for this managed resource.
    mount_point_id str
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    createTime String
    The creation time of the Mount point resource.
    id String
    The provider-assigned unique ID for this managed resource.
    mountPointId String
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.

    Look up Existing MountPoint Resource

    Get an existing MountPoint 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?: MountPointState, opts?: CustomResourceOptions): MountPoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_group_id: Optional[str] = None,
            alias_prefix: Optional[str] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            file_system_id: Optional[str] = None,
            mount_point_id: Optional[str] = None,
            network_type: Optional[str] = None,
            status: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None) -> MountPoint
    func GetMountPoint(ctx *Context, name string, id IDInput, state *MountPointState, opts ...ResourceOption) (*MountPoint, error)
    public static MountPoint Get(string name, Input<string> id, MountPointState? state, CustomResourceOptions? opts = null)
    public static MountPoint get(String name, Output<String> id, MountPointState 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:
    AccessGroupId string
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    AliasPrefix string
    The mount point alias prefix, which specifies the mount point alias prefix.
    CreateTime string
    The creation time of the Mount point resource.
    Description string
    The description of the Mount point. No more than 32 characters in length.
    FileSystemId string
    Unique file system identifier, used to retrieve specified file system resources.
    MountPointId string
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    NetworkType string
    The network type of the Mount point. Only VPC (VPC) is supported.
    Status string
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    VpcId string
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    VswitchId string
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    AccessGroupId string
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    AliasPrefix string
    The mount point alias prefix, which specifies the mount point alias prefix.
    CreateTime string
    The creation time of the Mount point resource.
    Description string
    The description of the Mount point. No more than 32 characters in length.
    FileSystemId string
    Unique file system identifier, used to retrieve specified file system resources.
    MountPointId string
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    NetworkType string
    The network type of the Mount point. Only VPC (VPC) is supported.
    Status string
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    VpcId string
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    VswitchId string
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    accessGroupId String
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    aliasPrefix String
    The mount point alias prefix, which specifies the mount point alias prefix.
    createTime String
    The creation time of the Mount point resource.
    description String
    The description of the Mount point. No more than 32 characters in length.
    fileSystemId String
    Unique file system identifier, used to retrieve specified file system resources.
    mountPointId String
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    networkType String
    The network type of the Mount point. Only VPC (VPC) is supported.
    status String
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    vpcId String
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    vswitchId String
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    accessGroupId string
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    aliasPrefix string
    The mount point alias prefix, which specifies the mount point alias prefix.
    createTime string
    The creation time of the Mount point resource.
    description string
    The description of the Mount point. No more than 32 characters in length.
    fileSystemId string
    Unique file system identifier, used to retrieve specified file system resources.
    mountPointId string
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    networkType string
    The network type of the Mount point. Only VPC (VPC) is supported.
    status string
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    vpcId string
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    vswitchId string
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    access_group_id str
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    alias_prefix str
    The mount point alias prefix, which specifies the mount point alias prefix.
    create_time str
    The creation time of the Mount point resource.
    description str
    The description of the Mount point. No more than 32 characters in length.
    file_system_id str
    Unique file system identifier, used to retrieve specified file system resources.
    mount_point_id str
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    network_type str
    The network type of the Mount point. Only VPC (VPC) is supported.
    status str
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    vpc_id str
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    vswitch_id str
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.
    accessGroupId String
    The id of the permission group associated with the Mount point, which is used to set the access permissions of the Mount point.
    aliasPrefix String
    The mount point alias prefix, which specifies the mount point alias prefix.
    createTime String
    The creation time of the Mount point resource.
    description String
    The description of the Mount point. No more than 32 characters in length.
    fileSystemId String
    Unique file system identifier, used to retrieve specified file system resources.
    mountPointId String
    The unique identifier of the Mount point, which is used to retrieve the specified mount point resources.
    networkType String
    The network type of the Mount point. Only VPC (VPC) is supported.
    status String
    Mount point status. Value: Inactive: Disable mount points Active: Activate the mount point.
    vpcId String
    The ID of the VPC. Specifies the VPC environment to which the mount point belongs.
    vswitchId String
    VSwitch ID, which specifies the VSwitch resource used to create the mount point.

    Import

    DFS Mount Point can be imported using the id, e.g.

    $ pulumi import alicloud:dfs/mountPoint:MountPoint example <file_system_id>:<mount_point_id>
    

    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.51.0 published on Saturday, Mar 23, 2024 by Pulumi