alicloud.dfs.VscMountPoint
Explore with Pulumi AI
Provides a DFS Vsc Mount Point resource. VSC mount point.
For information about 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 defaultInteger = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const default = alicloud.dfs.getZones({});
const zoneId = _default.then(_default => _default.zones?.[0]?.zoneId);
const storageType = _default.then(_default => _default.zones?.[0]?.options?.[0]?.storageType);
const defaultFileSystem = new alicloud.dfs.FileSystem("default", {
protocolType: "HDFS",
description: name,
fileSystemName: `${name}-${defaultInteger.result}`,
spaceCapacity: 1024,
throughputMode: "Provisioned",
provisionedThroughputInMiBps: 512,
storageType: storageType,
zoneId: zoneId,
});
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_integer = random.index.Integer("default",
min=10000,
max=99999)
default = alicloud.dfs.get_zones()
zone_id = default.zones[0].zone_id
storage_type = default.zones[0].options[0].storage_type
default_file_system = alicloud.dfs.FileSystem("default",
protocol_type="HDFS",
description=name,
file_system_name=f"{name}-{default_integer['result']}",
space_capacity=1024,
throughput_mode="Provisioned",
provisioned_throughput_in_mi_bps=512,
storage_type=storage_type,
zone_id=zone_id)
package main
import (
"fmt"
"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
}
defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
_default, err := dfs.GetZones(ctx, &dfs.GetZonesArgs{}, nil)
if err != nil {
return err
}
zoneId := _default.Zones[0].ZoneId
storageType := _default.Zones[0].Options[0].StorageType
_, err = dfs.NewFileSystem(ctx, "default", &dfs.FileSystemArgs{
ProtocolType: pulumi.String("HDFS"),
Description: pulumi.String(name),
FileSystemName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
SpaceCapacity: pulumi.Int(1024),
ThroughputMode: pulumi.String("Provisioned"),
ProvisionedThroughputInMiBps: pulumi.Int(512),
StorageType: pulumi.String(storageType),
ZoneId: pulumi.String(zoneId),
})
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 defaultInteger = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var @default = AliCloud.Dfs.GetZones.Invoke();
var zoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId));
var storageType = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Options[0]?.StorageType));
var defaultFileSystem = new AliCloud.Dfs.FileSystem("default", new()
{
ProtocolType = "HDFS",
Description = name,
FileSystemName = $"{name}-{defaultInteger.Result}",
SpaceCapacity = 1024,
ThroughputMode = "Provisioned",
ProvisionedThroughputInMiBps = 512,
StorageType = storageType,
ZoneId = zoneId,
});
});
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.DfsFunctions;
import com.pulumi.alicloud.dfs.inputs.GetZonesArgs;
import com.pulumi.alicloud.dfs.FileSystem;
import com.pulumi.alicloud.dfs.FileSystemArgs;
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 defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
final var default = DfsFunctions.getZones();
final var zoneId = default_.zones()[0].zoneId();
final var storageType = default_.zones()[0].options()[0].storageType();
var defaultFileSystem = new FileSystem("defaultFileSystem", FileSystemArgs.builder()
.protocolType("HDFS")
.description(name)
.fileSystemName(String.format("%s-%s", name,defaultInteger.result()))
.spaceCapacity("1024")
.throughputMode("Provisioned")
.provisionedThroughputInMiBps("512")
.storageType(storageType)
.zoneId(zoneId)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultInteger:
type: random:integer
name: default
properties:
min: 10000
max: 99999
defaultFileSystem:
type: alicloud:dfs:FileSystem
name: default
properties:
protocolType: HDFS
description: ${name}
fileSystemName: ${name}-${defaultInteger.result}
spaceCapacity: '1024'
throughputMode: Provisioned
provisionedThroughputInMiBps: '512'
storageType: ${storageType}
zoneId: ${zoneId}
variables:
default:
fn::invoke:
Function: alicloud:dfs:getZones
Arguments: {}
zoneId: ${default.zones[0].zoneId}
storageType: ${default.zones[0].options[0].storageType}
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 string
- The unique name of the resource.
- args VscMountPointArgs
- 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 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 string
- The unique name of the resource.
- args VscMountPointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VscMountPointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := dfs.NewVscMountPoint(ctx, "vscMountPointResource", &dfs.VscMountPointArgs{
FileSystemId: pulumi.String("string"),
AliasPrefix: pulumi.String("string"),
Description: pulumi.String("string"),
})
var vscMountPointResource = new VscMountPoint("vscMountPointResource", VscMountPointArgs.builder()
.fileSystemId("string")
.aliasPrefix("string")
.description("string")
.build());
vsc_mount_point_resource = alicloud.dfs.VscMountPoint("vscMountPointResource",
file_system_id="string",
alias_prefix="string",
description="string")
const vscMountPointResource = new alicloud.dfs.VscMountPoint("vscMountPointResource", {
fileSystemId: "string",
aliasPrefix: "string",
description: "string",
});
type: alicloud:dfs:VscMountPoint
properties:
aliasPrefix: string
description: string
fileSystemId: string
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:
- File
System stringId - The ID of the HDFS file system resource associated with the VSC mount point.
- Alias
Prefix 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 stringId - The ID of the HDFS file system resource associated with the VSC mount point.
- Alias
Prefix 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 StringId - The ID of the HDFS file system resource associated with the VSC mount point.
- alias
Prefix 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 stringId - The ID of the HDFS file system resource associated with the VSC mount point.
- alias
Prefix 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_ strid - 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.
- file
System StringId - The ID of the HDFS file system resource associated with the VSC mount point.
- alias
Prefix 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.
Ali Cloud. Dfs. Outputs. Vsc Mount Point Instance> - The collection of ECS instances on which the HDFS file system is mounted.
- Mount
Point stringId - 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
[]Vsc
Mount Point Instance - The collection of ECS instances on which the HDFS file system is mounted.
- Mount
Point stringId - 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<Vsc
Mount Point Instance> - The collection of ECS instances on which the HDFS file system is mounted.
- mount
Point StringId - 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
Vsc
Mount Point Instance[] - The collection of ECS instances on which the HDFS file system is mounted.
- mount
Point stringId - 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[Vsc
Mount Point Instance] - The collection of ECS instances on which the HDFS file system is mounted.
- mount_
point_ strid - 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.
- mount
Point StringId - 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)
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.
- Alias
Prefix 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 stringId - The ID of the HDFS file system resource associated with the VSC mount point.
- Instances
List<Pulumi.
Ali Cloud. Dfs. Inputs. Vsc Mount Point Instance> - The collection of ECS instances on which the HDFS file system is mounted.
- Mount
Point stringId - 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 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 stringId - The ID of the HDFS file system resource associated with the VSC mount point.
- Instances
[]Vsc
Mount Point Instance Args - The collection of ECS instances on which the HDFS file system is mounted.
- Mount
Point stringId - 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 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 StringId - The ID of the HDFS file system resource associated with the VSC mount point.
- instances
List<Vsc
Mount Point Instance> - The collection of ECS instances on which the HDFS file system is mounted.
- mount
Point StringId - 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 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 stringId - The ID of the HDFS file system resource associated with the VSC mount point.
- instances
Vsc
Mount Point Instance[] - The collection of ECS instances on which the HDFS file system is mounted.
- mount
Point stringId - 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_ strid - The ID of the HDFS file system resource associated with the VSC mount point.
- instances
Sequence[Vsc
Mount Point Instance Args] - The collection of ECS instances on which the HDFS file system is mounted.
- mount_
point_ strid - 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 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 StringId - 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.
- mount
Point StringId - 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
- Instance
Id 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.
Ali Cloud. Dfs. Inputs. Vsc Mount Point Instance Vsc> - The VSC list of mounted HDFS file systems.
- Instance
Id 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
[]Vsc
Mount Point Instance Vsc - The VSC list of mounted HDFS file systems.
- instance
Id 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<Vsc
Mount Point Instance Vsc> - The VSC list of mounted HDFS file systems.
- instance
Id 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
Vsc
Mount Point Instance Vsc[] - 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[Vsc
Mount Point Instance Vsc] - The VSC list of mounted HDFS file systems.
- instance
Id 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
- 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.
Import
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>
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.