1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dfs
  5. VscMountPoint
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.dfs.VscMountPoint

Explore with Pulumi AI

Provides a Apsara File Storage for HDFS (DFS) Vsc Mount Point resource.

For information about Apsara File Storage for HDFS (DFS) Vsc Mount Point and how to use it, see What is Vsc Mount Point.

NOTE: Available since v1.218.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 _default = new random.index.Integer("default", {
    min: 10000,
    max: 99999,
});
const defaultFileSystem = new alicloud.dfs.FileSystem("default", {
    spaceCapacity: 1024,
    description: "for vsc mountpoint RMC test",
    storageType: "PERFORMANCE",
    zoneId: "cn-hangzhou-b",
    protocolType: "PANGU",
    dataRedundancyType: "LRS",
    fileSystemName: name,
});
const defaultFsForRMCVscMp = new alicloud.dfs.VscMountPoint("DefaultFsForRMCVscMp", {
    fileSystemId: defaultFileSystem.id,
    aliasPrefix: name,
    description: name,
});
Copy
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 = random.index.Integer("default",
    min=10000,
    max=99999)
default_file_system = alicloud.dfs.FileSystem("default",
    space_capacity=1024,
    description="for vsc mountpoint RMC test",
    storage_type="PERFORMANCE",
    zone_id="cn-hangzhou-b",
    protocol_type="PANGU",
    data_redundancy_type="LRS",
    file_system_name=name)
default_fs_for_rmcvsc_mp = alicloud.dfs.VscMountPoint("DefaultFsForRMCVscMp",
    file_system_id=default_file_system.id,
    alias_prefix=name,
    description=name)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dfs"
	"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
		}
		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		defaultFileSystem, err := dfs.NewFileSystem(ctx, "default", &dfs.FileSystemArgs{
			SpaceCapacity:      pulumi.Int(1024),
			Description:        pulumi.String("for vsc mountpoint RMC test"),
			StorageType:        pulumi.String("PERFORMANCE"),
			ZoneId:             pulumi.String("cn-hangzhou-b"),
			ProtocolType:       pulumi.String("PANGU"),
			DataRedundancyType: pulumi.String("LRS"),
			FileSystemName:     pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = dfs.NewVscMountPoint(ctx, "DefaultFsForRMCVscMp", &dfs.VscMountPointArgs{
			FileSystemId: defaultFileSystem.ID(),
			AliasPrefix:  pulumi.String(name),
			Description:  pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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 @default = new Random.Index.Integer("default", new()
    {
        Min = 10000,
        Max = 99999,
    });

    var defaultFileSystem = new AliCloud.Dfs.FileSystem("default", new()
    {
        SpaceCapacity = 1024,
        Description = "for vsc mountpoint RMC test",
        StorageType = "PERFORMANCE",
        ZoneId = "cn-hangzhou-b",
        ProtocolType = "PANGU",
        DataRedundancyType = "LRS",
        FileSystemName = name,
    });

    var defaultFsForRMCVscMp = new AliCloud.Dfs.VscMountPoint("DefaultFsForRMCVscMp", new()
    {
        FileSystemId = defaultFileSystem.Id,
        AliasPrefix = name,
        Description = name,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.dfs.FileSystem;
import com.pulumi.alicloud.dfs.FileSystemArgs;
import com.pulumi.alicloud.dfs.VscMountPoint;
import com.pulumi.alicloud.dfs.VscMountPointArgs;
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");
        var default_ = new Integer("default", IntegerArgs.builder()
            .min(10000)
            .max(99999)
            .build());

        var defaultFileSystem = new FileSystem("defaultFileSystem", FileSystemArgs.builder()
            .spaceCapacity("1024")
            .description("for vsc mountpoint RMC test")
            .storageType("PERFORMANCE")
            .zoneId("cn-hangzhou-b")
            .protocolType("PANGU")
            .dataRedundancyType("LRS")
            .fileSystemName(name)
            .build());

        var defaultFsForRMCVscMp = new VscMountPoint("defaultFsForRMCVscMp", VscMountPointArgs.builder()
            .fileSystemId(defaultFileSystem.id())
            .aliasPrefix(name)
            .description(name)
            .build());

    }
}
Copy
configuration:
  name:
    type: string
    default: terraform-example
resources:
  default:
    type: random:integer
    properties:
      min: 10000
      max: 99999
  defaultFileSystem:
    type: alicloud:dfs:FileSystem
    name: default
    properties:
      spaceCapacity: '1024'
      description: for vsc mountpoint RMC test
      storageType: PERFORMANCE
      zoneId: cn-hangzhou-b
      protocolType: PANGU
      dataRedundancyType: LRS
      fileSystemName: ${name}
  defaultFsForRMCVscMp:
    type: alicloud:dfs:VscMountPoint
    name: DefaultFsForRMCVscMp
    properties:
      fileSystemId: ${defaultFileSystem.id}
      aliasPrefix: ${name}
      description: ${name}
Copy

Create VscMountPoint Resource

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

Constructor syntax

new VscMountPoint(name: string, args: VscMountPointArgs, opts?: CustomResourceOptions);
@overload
def VscMountPoint(resource_name: str,
                  args: VscMountPointArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def VscMountPoint(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  file_system_id: Optional[str] = None,
                  alias_prefix: Optional[str] = None,
                  description: Optional[str] = None)
func NewVscMountPoint(ctx *Context, name string, args VscMountPointArgs, opts ...ResourceOption) (*VscMountPoint, error)
public VscMountPoint(string name, VscMountPointArgs args, CustomResourceOptions? opts = null)
public VscMountPoint(String name, VscMountPointArgs args)
public VscMountPoint(String name, VscMountPointArgs args, CustomResourceOptions options)
type: alicloud:dfs:VscMountPoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Constructor example

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

var vscMountPointResource = new AliCloud.Dfs.VscMountPoint("vscMountPointResource", new()
{
    FileSystemId = "string",
    AliasPrefix = "string",
    Description = "string",
});
Copy
example, err := dfs.NewVscMountPoint(ctx, "vscMountPointResource", &dfs.VscMountPointArgs{
	FileSystemId: pulumi.String("string"),
	AliasPrefix:  pulumi.String("string"),
	Description:  pulumi.String("string"),
})
Copy
var vscMountPointResource = new VscMountPoint("vscMountPointResource", VscMountPointArgs.builder()
    .fileSystemId("string")
    .aliasPrefix("string")
    .description("string")
    .build());
Copy
vsc_mount_point_resource = alicloud.dfs.VscMountPoint("vscMountPointResource",
    file_system_id="string",
    alias_prefix="string",
    description="string")
Copy
const vscMountPointResource = new alicloud.dfs.VscMountPoint("vscMountPointResource", {
    fileSystemId: "string",
    aliasPrefix: "string",
    description: "string",
});
Copy
type: alicloud:dfs:VscMountPoint
properties:
    aliasPrefix: string
    description: string
    fileSystemId: string
Copy

VscMountPoint Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The VscMountPoint resource accepts the following input properties:

FileSystemId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the HDFS file system resource associated with the VSC mount point.
AliasPrefix string
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
Description string
The description of the Mount point. The length is 0 to 100 characters.
FileSystemId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the HDFS file system resource associated with the VSC mount point.
AliasPrefix string
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
Description string
The description of the Mount point. The length is 0 to 100 characters.
fileSystemId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the HDFS file system resource associated with the VSC mount point.
aliasPrefix String
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
description String
The description of the Mount point. The length is 0 to 100 characters.
fileSystemId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the HDFS file system resource associated with the VSC mount point.
aliasPrefix string
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
description string
The description of the Mount point. The length is 0 to 100 characters.
file_system_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the HDFS file system resource associated with the VSC mount point.
alias_prefix str
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
description str
The description of the Mount point. The length is 0 to 100 characters.
fileSystemId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the HDFS file system resource associated with the VSC mount point.
aliasPrefix String
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
description String
The description of the Mount point. The length is 0 to 100 characters.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Instances List<Pulumi.AliCloud.Dfs.Outputs.VscMountPointInstance>
The collection of ECS instances on which the HDFS file system is mounted.
MountPointId string
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.
Id string
The provider-assigned unique ID for this managed resource.
Instances []VscMountPointInstance
The collection of ECS instances on which the HDFS file system is mounted.
MountPointId string
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.
id String
The provider-assigned unique ID for this managed resource.
instances List<VscMountPointInstance>
The collection of ECS instances on which the HDFS file system is mounted.
mountPointId String
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.
id string
The provider-assigned unique ID for this managed resource.
instances VscMountPointInstance[]
The collection of ECS instances on which the HDFS file system is mounted.
mountPointId string
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.
id str
The provider-assigned unique ID for this managed resource.
instances Sequence[VscMountPointInstance]
The collection of ECS instances on which the HDFS file system is mounted.
mount_point_id str
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.
id String
The provider-assigned unique ID for this managed resource.
instances List<Property Map>
The collection of ECS instances on which the HDFS file system is mounted.
mountPointId String
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.

Look up Existing VscMountPoint Resource

Get an existing VscMountPoint 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?: VscMountPointState, opts?: CustomResourceOptions): VscMountPoint
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alias_prefix: Optional[str] = None,
        description: Optional[str] = None,
        file_system_id: Optional[str] = None,
        instances: Optional[Sequence[VscMountPointInstanceArgs]] = None,
        mount_point_id: Optional[str] = None) -> VscMountPoint
func GetVscMountPoint(ctx *Context, name string, id IDInput, state *VscMountPointState, opts ...ResourceOption) (*VscMountPoint, error)
public static VscMountPoint Get(string name, Input<string> id, VscMountPointState? state, CustomResourceOptions? opts = null)
public static VscMountPoint get(String name, Output<String> id, VscMountPointState state, CustomResourceOptions options)
resources:  _:    type: alicloud:dfs:VscMountPoint    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AliasPrefix string
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
Description string
The description of the Mount point. The length is 0 to 100 characters.
FileSystemId Changes to this property will trigger replacement. string
The ID of the HDFS file system resource associated with the VSC mount point.
Instances List<Pulumi.AliCloud.Dfs.Inputs.VscMountPointInstance>
The collection of ECS instances on which the HDFS file system is mounted.
MountPointId string
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.
AliasPrefix string
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
Description string
The description of the Mount point. The length is 0 to 100 characters.
FileSystemId Changes to this property will trigger replacement. string
The ID of the HDFS file system resource associated with the VSC mount point.
Instances []VscMountPointInstanceArgs
The collection of ECS instances on which the HDFS file system is mounted.
MountPointId string
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.
aliasPrefix String
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
description String
The description of the Mount point. The length is 0 to 100 characters.
fileSystemId Changes to this property will trigger replacement. String
The ID of the HDFS file system resource associated with the VSC mount point.
instances List<VscMountPointInstance>
The collection of ECS instances on which the HDFS file system is mounted.
mountPointId String
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.
aliasPrefix string
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
description string
The description of the Mount point. The length is 0 to 100 characters.
fileSystemId Changes to this property will trigger replacement. string
The ID of the HDFS file system resource associated with the VSC mount point.
instances VscMountPointInstance[]
The collection of ECS instances on which the HDFS file system is mounted.
mountPointId string
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.
alias_prefix str
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
description str
The description of the Mount point. The length is 0 to 100 characters.
file_system_id Changes to this property will trigger replacement. str
The ID of the HDFS file system resource associated with the VSC mount point.
instances Sequence[VscMountPointInstanceArgs]
The collection of ECS instances on which the HDFS file system is mounted.
mount_point_id str
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.
aliasPrefix String
Mount point alias prefix, which is used as the prefix for generating VSC mount point aliases.
description String
The description of the Mount point. The length is 0 to 100 characters.
fileSystemId Changes to this property will trigger replacement. String
The ID of the HDFS file system resource associated with the VSC mount point.
instances List<Property Map>
The collection of ECS instances on which the HDFS file system is mounted.
mountPointId String
VSC mount point ID, which is the unique identifier of the vsc mount point and is used to access the associated HDFS file system.

Supporting Types

VscMountPointInstance
, VscMountPointInstanceArgs

InstanceId string
The ID of the ECS instance to which the HDFS file system is mounted.
Status string
The status of the ECS instance on which the HDFS file system is mounted.
Vscs List<Pulumi.AliCloud.Dfs.Inputs.VscMountPointInstanceVsc>
The VSC list of mounted HDFS file systems.
InstanceId string
The ID of the ECS instance to which the HDFS file system is mounted.
Status string
The status of the ECS instance on which the HDFS file system is mounted.
Vscs []VscMountPointInstanceVsc
The VSC list of mounted HDFS file systems.
instanceId String
The ID of the ECS instance to which the HDFS file system is mounted.
status String
The status of the ECS instance on which the HDFS file system is mounted.
vscs List<VscMountPointInstanceVsc>
The VSC list of mounted HDFS file systems.
instanceId string
The ID of the ECS instance to which the HDFS file system is mounted.
status string
The status of the ECS instance on which the HDFS file system is mounted.
vscs VscMountPointInstanceVsc[]
The VSC list of mounted HDFS file systems.
instance_id str
The ID of the ECS instance to which the HDFS file system is mounted.
status str
The status of the ECS instance on which the HDFS file system is mounted.
vscs Sequence[VscMountPointInstanceVsc]
The VSC list of mounted HDFS file systems.
instanceId String
The ID of the ECS instance to which the HDFS file system is mounted.
status String
The status of the ECS instance on which the HDFS file system is mounted.
vscs List<Property Map>
The VSC list of mounted HDFS file systems.

VscMountPointInstanceVsc
, VscMountPointInstanceVscArgs

VscId string
VSC Channel primary key representation, used to retrieve the specified VSC Channel.
VscStatus string
VSC Mount status.
VscType string
The VSC type.
VscId string
VSC Channel primary key representation, used to retrieve the specified VSC Channel.
VscStatus string
VSC Mount status.
VscType string
The VSC type.
vscId String
VSC Channel primary key representation, used to retrieve the specified VSC Channel.
vscStatus String
VSC Mount status.
vscType String
The VSC type.
vscId string
VSC Channel primary key representation, used to retrieve the specified VSC Channel.
vscStatus string
VSC Mount status.
vscType string
The VSC type.
vsc_id str
VSC Channel primary key representation, used to retrieve the specified VSC Channel.
vsc_status str
VSC Mount status.
vsc_type str
The VSC type.
vscId String
VSC Channel primary key representation, used to retrieve the specified VSC Channel.
vscStatus String
VSC Mount status.
vscType String
The VSC type.

Import

Apsara File Storage for HDFS (DFS) Vsc Mount Point can be imported using the id, e.g.

$ pulumi import alicloud:dfs/vscMountPoint:VscMountPoint example <file_system_id>:<mount_point_id>
Copy

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.