1. Packages
  2. Ucloud Provider
  3. API Docs
  4. UfsVolumeMountPoint
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.UfsVolumeMountPoint

Explore with Pulumi AI

ucloud logo
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

    Provides a UFS Volume mount point resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const defaultVpcs = ucloud.getVpcs({});
    const defaultSubnets = defaultVpcs.then(defaultVpcs => ucloud.getSubnets({
        vpcId: defaultVpcs.vpcs?.[0]?.id,
    }));
    const fooUfsVolume = new ucloud.UfsVolume("fooUfsVolume", {
        remark: "test",
        tag: "tf-acc",
        size: 600,
        storageType: "Basic",
        protocolType: "NFSv4",
    });
    const fooUfsVolumeMountPoint = new ucloud.UfsVolumeMountPoint("fooUfsVolumeMountPoint", {
        volumeId: fooUfsVolume.ufsVolumeId,
        vpcId: defaultVpcs.then(defaultVpcs => defaultVpcs.vpcs?.[0]?.id),
        subnetId: defaultSubnets.then(defaultSubnets => defaultSubnets.subnets?.[0]?.id),
    });
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    default_vpcs = ucloud.get_vpcs()
    default_subnets = ucloud.get_subnets(vpc_id=default_vpcs.vpcs[0].id)
    foo_ufs_volume = ucloud.UfsVolume("fooUfsVolume",
        remark="test",
        tag="tf-acc",
        size=600,
        storage_type="Basic",
        protocol_type="NFSv4")
    foo_ufs_volume_mount_point = ucloud.UfsVolumeMountPoint("fooUfsVolumeMountPoint",
        volume_id=foo_ufs_volume.ufs_volume_id,
        vpc_id=default_vpcs.vpcs[0].id,
        subnet_id=default_subnets.subnets[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		defaultVpcs, err := ucloud.GetVpcs(ctx, &ucloud.GetVpcsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		defaultSubnets, err := ucloud.GetSubnets(ctx, &ucloud.GetSubnetsArgs{
    			VpcId: pulumi.StringRef(defaultVpcs.Vpcs[0].Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		fooUfsVolume, err := ucloud.NewUfsVolume(ctx, "fooUfsVolume", &ucloud.UfsVolumeArgs{
    			Remark:       pulumi.String("test"),
    			Tag:          pulumi.String("tf-acc"),
    			Size:         pulumi.Float64(600),
    			StorageType:  pulumi.String("Basic"),
    			ProtocolType: pulumi.String("NFSv4"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ucloud.NewUfsVolumeMountPoint(ctx, "fooUfsVolumeMountPoint", &ucloud.UfsVolumeMountPointArgs{
    			VolumeId: fooUfsVolume.UfsVolumeId,
    			VpcId:    pulumi.String(defaultVpcs.Vpcs[0].Id),
    			SubnetId: pulumi.String(defaultSubnets.Subnets[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var defaultVpcs = Ucloud.GetVpcs.Invoke();
    
        var defaultSubnets = Ucloud.GetSubnets.Invoke(new()
        {
            VpcId = defaultVpcs.Apply(getVpcsResult => getVpcsResult.Vpcs[0]?.Id),
        });
    
        var fooUfsVolume = new Ucloud.UfsVolume("fooUfsVolume", new()
        {
            Remark = "test",
            Tag = "tf-acc",
            Size = 600,
            StorageType = "Basic",
            ProtocolType = "NFSv4",
        });
    
        var fooUfsVolumeMountPoint = new Ucloud.UfsVolumeMountPoint("fooUfsVolumeMountPoint", new()
        {
            VolumeId = fooUfsVolume.UfsVolumeId,
            VpcId = defaultVpcs.Apply(getVpcsResult => getVpcsResult.Vpcs[0]?.Id),
            SubnetId = defaultSubnets.Apply(getSubnetsResult => getSubnetsResult.Subnets[0]?.Id),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.UcloudFunctions;
    import com.pulumi.ucloud.inputs.GetVpcsArgs;
    import com.pulumi.ucloud.inputs.GetSubnetsArgs;
    import com.pulumi.ucloud.UfsVolume;
    import com.pulumi.ucloud.UfsVolumeArgs;
    import com.pulumi.ucloud.UfsVolumeMountPoint;
    import com.pulumi.ucloud.UfsVolumeMountPointArgs;
    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 defaultVpcs = UcloudFunctions.getVpcs();
    
            final var defaultSubnets = UcloudFunctions.getSubnets(GetSubnetsArgs.builder()
                .vpcId(defaultVpcs.applyValue(getVpcsResult -> getVpcsResult.vpcs()[0].id()))
                .build());
    
            var fooUfsVolume = new UfsVolume("fooUfsVolume", UfsVolumeArgs.builder()
                .remark("test")
                .tag("tf-acc")
                .size(600)
                .storageType("Basic")
                .protocolType("NFSv4")
                .build());
    
            var fooUfsVolumeMountPoint = new UfsVolumeMountPoint("fooUfsVolumeMountPoint", UfsVolumeMountPointArgs.builder()
                .volumeId(fooUfsVolume.ufsVolumeId())
                .vpcId(defaultVpcs.applyValue(getVpcsResult -> getVpcsResult.vpcs()[0].id()))
                .subnetId(defaultSubnets.applyValue(getSubnetsResult -> getSubnetsResult.subnets()[0].id()))
                .build());
    
        }
    }
    
    resources:
      fooUfsVolume:
        type: ucloud:UfsVolume
        properties:
          remark: test
          tag: tf-acc
          size: 600
          storageType: Basic
          protocolType: NFSv4
      fooUfsVolumeMountPoint:
        type: ucloud:UfsVolumeMountPoint
        properties:
          volumeId: ${fooUfsVolume.ufsVolumeId}
          vpcId: ${defaultVpcs.vpcs[0].id}
          subnetId: ${defaultSubnets.subnets[0].id}
    variables:
      defaultVpcs:
        fn::invoke:
          function: ucloud:getVpcs
          arguments: {}
      defaultSubnets:
        fn::invoke:
          function: ucloud:getSubnets
          arguments:
            vpcId: ${defaultVpcs.vpcs[0].id}
    

    Create UfsVolumeMountPoint Resource

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

    Constructor syntax

    new UfsVolumeMountPoint(name: string, args: UfsVolumeMountPointArgs, opts?: CustomResourceOptions);
    @overload
    def UfsVolumeMountPoint(resource_name: str,
                            args: UfsVolumeMountPointArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def UfsVolumeMountPoint(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            subnet_id: Optional[str] = None,
                            volume_id: Optional[str] = None,
                            vpc_id: Optional[str] = None,
                            name: Optional[str] = None,
                            ufs_volume_mount_point_id: Optional[str] = None)
    func NewUfsVolumeMountPoint(ctx *Context, name string, args UfsVolumeMountPointArgs, opts ...ResourceOption) (*UfsVolumeMountPoint, error)
    public UfsVolumeMountPoint(string name, UfsVolumeMountPointArgs args, CustomResourceOptions? opts = null)
    public UfsVolumeMountPoint(String name, UfsVolumeMountPointArgs args)
    public UfsVolumeMountPoint(String name, UfsVolumeMountPointArgs args, CustomResourceOptions options)
    
    type: ucloud:UfsVolumeMountPoint
    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 UfsVolumeMountPointArgs
    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 UfsVolumeMountPointArgs
    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 UfsVolumeMountPointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UfsVolumeMountPointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UfsVolumeMountPointArgs
    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 ufsVolumeMountPointResource = new Ucloud.UfsVolumeMountPoint("ufsVolumeMountPointResource", new()
    {
        SubnetId = "string",
        VolumeId = "string",
        VpcId = "string",
        Name = "string",
        UfsVolumeMountPointId = "string",
    });
    
    example, err := ucloud.NewUfsVolumeMountPoint(ctx, "ufsVolumeMountPointResource", &ucloud.UfsVolumeMountPointArgs{
    	SubnetId:              pulumi.String("string"),
    	VolumeId:              pulumi.String("string"),
    	VpcId:                 pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	UfsVolumeMountPointId: pulumi.String("string"),
    })
    
    var ufsVolumeMountPointResource = new UfsVolumeMountPoint("ufsVolumeMountPointResource", UfsVolumeMountPointArgs.builder()
        .subnetId("string")
        .volumeId("string")
        .vpcId("string")
        .name("string")
        .ufsVolumeMountPointId("string")
        .build());
    
    ufs_volume_mount_point_resource = ucloud.UfsVolumeMountPoint("ufsVolumeMountPointResource",
        subnet_id="string",
        volume_id="string",
        vpc_id="string",
        name="string",
        ufs_volume_mount_point_id="string")
    
    const ufsVolumeMountPointResource = new ucloud.UfsVolumeMountPoint("ufsVolumeMountPointResource", {
        subnetId: "string",
        volumeId: "string",
        vpcId: "string",
        name: "string",
        ufsVolumeMountPointId: "string",
    });
    
    type: ucloud:UfsVolumeMountPoint
    properties:
        name: string
        subnetId: string
        ufsVolumeMountPointId: string
        volumeId: string
        vpcId: string
    

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

    SubnetId string
    The ID of subnet.
    VolumeId string
    The id of the UFS Volume.
    VpcId string
    The ID of VPC linked to the UFS Volume mount point.
    Name string
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    UfsVolumeMountPointId string
    The ID of the resource UFS Volume mount point.
    SubnetId string
    The ID of subnet.
    VolumeId string
    The id of the UFS Volume.
    VpcId string
    The ID of VPC linked to the UFS Volume mount point.
    Name string
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    UfsVolumeMountPointId string
    The ID of the resource UFS Volume mount point.
    subnetId String
    The ID of subnet.
    volumeId String
    The id of the UFS Volume.
    vpcId String
    The ID of VPC linked to the UFS Volume mount point.
    name String
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    ufsVolumeMountPointId String
    The ID of the resource UFS Volume mount point.
    subnetId string
    The ID of subnet.
    volumeId string
    The id of the UFS Volume.
    vpcId string
    The ID of VPC linked to the UFS Volume mount point.
    name string
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    ufsVolumeMountPointId string
    The ID of the resource UFS Volume mount point.
    subnet_id str
    The ID of subnet.
    volume_id str
    The id of the UFS Volume.
    vpc_id str
    The ID of VPC linked to the UFS Volume mount point.
    name str
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    ufs_volume_mount_point_id str
    The ID of the resource UFS Volume mount point.
    subnetId String
    The ID of subnet.
    volumeId String
    The id of the UFS Volume.
    vpcId String
    The ID of VPC linked to the UFS Volume mount point.
    name String
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    ufsVolumeMountPointId String
    The ID of the resource UFS Volume mount point.

    Outputs

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

    CreateTime string
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    Id string
    The provider-assigned unique ID for this managed resource.
    MountPointIp string
    The ip of the UFS Volume mount point.
    CreateTime string
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    Id string
    The provider-assigned unique ID for this managed resource.
    MountPointIp string
    The ip of the UFS Volume mount point.
    createTime String
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    id String
    The provider-assigned unique ID for this managed resource.
    mountPointIp String
    The ip of the UFS Volume mount point.
    createTime string
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    id string
    The provider-assigned unique ID for this managed resource.
    mountPointIp string
    The ip of the UFS Volume mount point.
    create_time str
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    id str
    The provider-assigned unique ID for this managed resource.
    mount_point_ip str
    The ip of the UFS Volume mount point.
    createTime String
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    id String
    The provider-assigned unique ID for this managed resource.
    mountPointIp String
    The ip of the UFS Volume mount point.

    Look up Existing UfsVolumeMountPoint Resource

    Get an existing UfsVolumeMountPoint 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?: UfsVolumeMountPointState, opts?: CustomResourceOptions): UfsVolumeMountPoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            mount_point_ip: Optional[str] = None,
            name: Optional[str] = None,
            subnet_id: Optional[str] = None,
            ufs_volume_mount_point_id: Optional[str] = None,
            volume_id: Optional[str] = None,
            vpc_id: Optional[str] = None) -> UfsVolumeMountPoint
    func GetUfsVolumeMountPoint(ctx *Context, name string, id IDInput, state *UfsVolumeMountPointState, opts ...ResourceOption) (*UfsVolumeMountPoint, error)
    public static UfsVolumeMountPoint Get(string name, Input<string> id, UfsVolumeMountPointState? state, CustomResourceOptions? opts = null)
    public static UfsVolumeMountPoint get(String name, Output<String> id, UfsVolumeMountPointState state, CustomResourceOptions options)
    resources:  _:    type: ucloud:UfsVolumeMountPoint    get:      id: ${id}
    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:
    CreateTime string
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    MountPointIp string
    The ip of the UFS Volume mount point.
    Name string
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    SubnetId string
    The ID of subnet.
    UfsVolumeMountPointId string
    The ID of the resource UFS Volume mount point.
    VolumeId string
    The id of the UFS Volume.
    VpcId string
    The ID of VPC linked to the UFS Volume mount point.
    CreateTime string
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    MountPointIp string
    The ip of the UFS Volume mount point.
    Name string
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    SubnetId string
    The ID of subnet.
    UfsVolumeMountPointId string
    The ID of the resource UFS Volume mount point.
    VolumeId string
    The id of the UFS Volume.
    VpcId string
    The ID of VPC linked to the UFS Volume mount point.
    createTime String
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    mountPointIp String
    The ip of the UFS Volume mount point.
    name String
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    subnetId String
    The ID of subnet.
    ufsVolumeMountPointId String
    The ID of the resource UFS Volume mount point.
    volumeId String
    The id of the UFS Volume.
    vpcId String
    The ID of VPC linked to the UFS Volume mount point.
    createTime string
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    mountPointIp string
    The ip of the UFS Volume mount point.
    name string
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    subnetId string
    The ID of subnet.
    ufsVolumeMountPointId string
    The ID of the resource UFS Volume mount point.
    volumeId string
    The id of the UFS Volume.
    vpcId string
    The ID of VPC linked to the UFS Volume mount point.
    create_time str
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    mount_point_ip str
    The ip of the UFS Volume mount point.
    name str
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    subnet_id str
    The ID of subnet.
    ufs_volume_mount_point_id str
    The ID of the resource UFS Volume mount point.
    volume_id str
    The id of the UFS Volume.
    vpc_id str
    The ID of VPC linked to the UFS Volume mount point.
    createTime String
    The time of creation of the UFS Volume mount point, formatted in RFC3339 time string.
    mountPointIp String
    The ip of the UFS Volume mount point.
    name String
    The name of the UFS Volume mount point, expected value to be 6 - 63 characters and only support english, numbers, '-', '_', and can not prefix with '-'.
    subnetId String
    The ID of subnet.
    ufsVolumeMountPointId String
    The ID of the resource UFS Volume mount point.
    volumeId String
    The id of the UFS Volume.
    vpcId String
    The ID of VPC linked to the UFS Volume mount point.

    Package Details

    Repository
    ucloud ucloud/terraform-provider-ucloud
    License
    Notes
    This Pulumi package is based on the ucloud Terraform Provider.
    ucloud logo
    ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud