1. Packages
  2. Volcengine
  3. API Docs
  4. vepfs
  5. MountService
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.vepfs.MountService

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage vepfs mount service

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-vpc",
            CidrBlock = "172.16.0.0/16",
        });
    
        var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
        {
            SubnetName = "acc-test-subnet",
            CidrBlock = "172.16.0.0/24",
            ZoneId = "cn-beijing-a",
            VpcId = fooVpc.Id,
        });
    
        var fooMountService = new Volcengine.Vepfs.MountService("fooMountService", new()
        {
            MountServiceName = "acc-test-mount-service",
            SubnetId = fooSubnet.Id,
            NodeType = "ecs.g1ie.large",
            Project = "default",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vepfs"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:   pulumi.String("acc-test-vpc"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
    			SubnetName: pulumi.String("acc-test-subnet"),
    			CidrBlock:  pulumi.String("172.16.0.0/24"),
    			ZoneId:     pulumi.String("cn-beijing-a"),
    			VpcId:      fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vepfs.NewMountService(ctx, "fooMountService", &vepfs.MountServiceArgs{
    			MountServiceName: pulumi.String("acc-test-mount-service"),
    			SubnetId:         fooSubnet.ID(),
    			NodeType:         pulumi.String("ecs.g1ie.large"),
    			Project:          pulumi.String("default"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.vpc.Subnet;
    import com.pulumi.volcengine.vpc.SubnetArgs;
    import com.pulumi.volcengine.vepfs.MountService;
    import com.pulumi.volcengine.vepfs.MountServiceArgs;
    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) {
            var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-vpc")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
                .subnetName("acc-test-subnet")
                .cidrBlock("172.16.0.0/24")
                .zoneId("cn-beijing-a")
                .vpcId(fooVpc.id())
                .build());
    
            var fooMountService = new MountService("fooMountService", MountServiceArgs.builder()        
                .mountServiceName("acc-test-mount-service")
                .subnetId(fooSubnet.id())
                .nodeType("ecs.g1ie.large")
                .project("default")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-vpc",
        cidr_block="172.16.0.0/16")
    foo_subnet = volcengine.vpc.Subnet("fooSubnet",
        subnet_name="acc-test-subnet",
        cidr_block="172.16.0.0/24",
        zone_id="cn-beijing-a",
        vpc_id=foo_vpc.id)
    foo_mount_service = volcengine.vepfs.MountService("fooMountService",
        mount_service_name="acc-test-mount-service",
        subnet_id=foo_subnet.id,
        node_type="ecs.g1ie.large",
        project="default")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-vpc",
        cidrBlock: "172.16.0.0/16",
    });
    const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
        subnetName: "acc-test-subnet",
        cidrBlock: "172.16.0.0/24",
        zoneId: "cn-beijing-a",
        vpcId: fooVpc.id,
    });
    const fooMountService = new volcengine.vepfs.MountService("fooMountService", {
        mountServiceName: "acc-test-mount-service",
        subnetId: fooSubnet.id,
        nodeType: "ecs.g1ie.large",
        project: "default",
    });
    
    resources:
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-vpc
          cidrBlock: 172.16.0.0/16
      fooSubnet:
        type: volcengine:vpc:Subnet
        properties:
          subnetName: acc-test-subnet
          cidrBlock: 172.16.0.0/24
          zoneId: cn-beijing-a
          vpcId: ${fooVpc.id}
      fooMountService:
        type: volcengine:vepfs:MountService
        properties:
          mountServiceName: acc-test-mount-service
          subnetId: ${fooSubnet.id}
          nodeType: ecs.g1ie.large
          project: default
    

    Create MountService Resource

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

    Constructor syntax

    new MountService(name: string, args: MountServiceArgs, opts?: CustomResourceOptions);
    @overload
    def MountService(resource_name: str,
                     args: MountServiceArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def MountService(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     mount_service_name: Optional[str] = None,
                     node_type: Optional[str] = None,
                     subnet_id: Optional[str] = None,
                     project: Optional[str] = None)
    func NewMountService(ctx *Context, name string, args MountServiceArgs, opts ...ResourceOption) (*MountService, error)
    public MountService(string name, MountServiceArgs args, CustomResourceOptions? opts = null)
    public MountService(String name, MountServiceArgs args)
    public MountService(String name, MountServiceArgs args, CustomResourceOptions options)
    
    type: volcengine:vepfs:MountService
    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 MountServiceArgs
    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 MountServiceArgs
    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 MountServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MountServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MountServiceArgs
    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 mountServiceResource = new Volcengine.Vepfs.MountService("mountServiceResource", new()
    {
        MountServiceName = "string",
        NodeType = "string",
        SubnetId = "string",
        Project = "string",
    });
    
    example, err := vepfs.NewMountService(ctx, "mountServiceResource", &vepfs.MountServiceArgs{
    	MountServiceName: pulumi.String("string"),
    	NodeType:         pulumi.String("string"),
    	SubnetId:         pulumi.String("string"),
    	Project:          pulumi.String("string"),
    })
    
    var mountServiceResource = new MountService("mountServiceResource", MountServiceArgs.builder()
        .mountServiceName("string")
        .nodeType("string")
        .subnetId("string")
        .project("string")
        .build());
    
    mount_service_resource = volcengine.vepfs.MountService("mountServiceResource",
        mount_service_name="string",
        node_type="string",
        subnet_id="string",
        project="string")
    
    const mountServiceResource = new volcengine.vepfs.MountService("mountServiceResource", {
        mountServiceName: "string",
        nodeType: "string",
        subnetId: "string",
        project: "string",
    });
    
    type: volcengine:vepfs:MountService
    properties:
        mountServiceName: string
        nodeType: string
        project: string
        subnetId: string
    

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

    MountServiceName string
    The name of the mount service.
    NodeType string
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    SubnetId string
    The subnet id of the mount service.
    Project string
    The node type of the mount service.
    MountServiceName string
    The name of the mount service.
    NodeType string
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    SubnetId string
    The subnet id of the mount service.
    Project string
    The node type of the mount service.
    mountServiceName String
    The name of the mount service.
    nodeType String
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    subnetId String
    The subnet id of the mount service.
    project String
    The node type of the mount service.
    mountServiceName string
    The name of the mount service.
    nodeType string
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    subnetId string
    The subnet id of the mount service.
    project string
    The node type of the mount service.
    mount_service_name str
    The name of the mount service.
    node_type str
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    subnet_id str
    The subnet id of the mount service.
    project str
    The node type of the mount service.
    mountServiceName String
    The name of the mount service.
    nodeType String
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    subnetId String
    The subnet id of the mount service.
    project String
    The node type of the mount service.

    Outputs

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

    AccountId string
    The account id of the vepfs file system.
    AttachFileSystems List<MountServiceAttachFileSystem>
    The attached file system info of the mount service.
    CreateTime string
    The created time of the mount service.
    Id string
    The provider-assigned unique ID for this managed resource.
    Nodes List<MountServiceNode>
    The nodes info of the mount service.
    RegionId string
    The region id of the mount service.
    Status string
    The status of the mount service.
    VpcId string
    The vpc id of the mount service.
    ZoneId string
    The zone id of the mount service.
    ZoneName string
    The zone name of the mount service.
    AccountId string
    The account id of the vepfs file system.
    AttachFileSystems []MountServiceAttachFileSystem
    The attached file system info of the mount service.
    CreateTime string
    The created time of the mount service.
    Id string
    The provider-assigned unique ID for this managed resource.
    Nodes []MountServiceNode
    The nodes info of the mount service.
    RegionId string
    The region id of the mount service.
    Status string
    The status of the mount service.
    VpcId string
    The vpc id of the mount service.
    ZoneId string
    The zone id of the mount service.
    ZoneName string
    The zone name of the mount service.
    accountId String
    The account id of the vepfs file system.
    attachFileSystems List<MountServiceAttachFileSystem>
    The attached file system info of the mount service.
    createTime String
    The created time of the mount service.
    id String
    The provider-assigned unique ID for this managed resource.
    nodes List<MountServiceNode>
    The nodes info of the mount service.
    regionId String
    The region id of the mount service.
    status String
    The status of the mount service.
    vpcId String
    The vpc id of the mount service.
    zoneId String
    The zone id of the mount service.
    zoneName String
    The zone name of the mount service.
    accountId string
    The account id of the vepfs file system.
    attachFileSystems MountServiceAttachFileSystem[]
    The attached file system info of the mount service.
    createTime string
    The created time of the mount service.
    id string
    The provider-assigned unique ID for this managed resource.
    nodes MountServiceNode[]
    The nodes info of the mount service.
    regionId string
    The region id of the mount service.
    status string
    The status of the mount service.
    vpcId string
    The vpc id of the mount service.
    zoneId string
    The zone id of the mount service.
    zoneName string
    The zone name of the mount service.
    account_id str
    The account id of the vepfs file system.
    attach_file_systems Sequence[MountServiceAttachFileSystem]
    The attached file system info of the mount service.
    create_time str
    The created time of the mount service.
    id str
    The provider-assigned unique ID for this managed resource.
    nodes Sequence[MountServiceNode]
    The nodes info of the mount service.
    region_id str
    The region id of the mount service.
    status str
    The status of the mount service.
    vpc_id str
    The vpc id of the mount service.
    zone_id str
    The zone id of the mount service.
    zone_name str
    The zone name of the mount service.
    accountId String
    The account id of the vepfs file system.
    attachFileSystems List<Property Map>
    The attached file system info of the mount service.
    createTime String
    The created time of the mount service.
    id String
    The provider-assigned unique ID for this managed resource.
    nodes List<Property Map>
    The nodes info of the mount service.
    regionId String
    The region id of the mount service.
    status String
    The status of the mount service.
    vpcId String
    The vpc id of the mount service.
    zoneId String
    The zone id of the mount service.
    zoneName String
    The zone name of the mount service.

    Look up Existing MountService Resource

    Get an existing MountService 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?: MountServiceState, opts?: CustomResourceOptions): MountService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            attach_file_systems: Optional[Sequence[MountServiceAttachFileSystemArgs]] = None,
            create_time: Optional[str] = None,
            mount_service_name: Optional[str] = None,
            node_type: Optional[str] = None,
            nodes: Optional[Sequence[MountServiceNodeArgs]] = None,
            project: Optional[str] = None,
            region_id: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            vpc_id: Optional[str] = None,
            zone_id: Optional[str] = None,
            zone_name: Optional[str] = None) -> MountService
    func GetMountService(ctx *Context, name string, id IDInput, state *MountServiceState, opts ...ResourceOption) (*MountService, error)
    public static MountService Get(string name, Input<string> id, MountServiceState? state, CustomResourceOptions? opts = null)
    public static MountService get(String name, Output<String> id, MountServiceState 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:
    AccountId string
    The account id of the vepfs file system.
    AttachFileSystems List<MountServiceAttachFileSystem>
    The attached file system info of the mount service.
    CreateTime string
    The created time of the mount service.
    MountServiceName string
    The name of the mount service.
    NodeType string
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    Nodes List<MountServiceNode>
    The nodes info of the mount service.
    Project string
    The node type of the mount service.
    RegionId string
    The region id of the mount service.
    Status string
    The status of the mount service.
    SubnetId string
    The subnet id of the mount service.
    VpcId string
    The vpc id of the mount service.
    ZoneId string
    The zone id of the mount service.
    ZoneName string
    The zone name of the mount service.
    AccountId string
    The account id of the vepfs file system.
    AttachFileSystems []MountServiceAttachFileSystemArgs
    The attached file system info of the mount service.
    CreateTime string
    The created time of the mount service.
    MountServiceName string
    The name of the mount service.
    NodeType string
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    Nodes []MountServiceNodeArgs
    The nodes info of the mount service.
    Project string
    The node type of the mount service.
    RegionId string
    The region id of the mount service.
    Status string
    The status of the mount service.
    SubnetId string
    The subnet id of the mount service.
    VpcId string
    The vpc id of the mount service.
    ZoneId string
    The zone id of the mount service.
    ZoneName string
    The zone name of the mount service.
    accountId String
    The account id of the vepfs file system.
    attachFileSystems List<MountServiceAttachFileSystem>
    The attached file system info of the mount service.
    createTime String
    The created time of the mount service.
    mountServiceName String
    The name of the mount service.
    nodeType String
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    nodes List<MountServiceNode>
    The nodes info of the mount service.
    project String
    The node type of the mount service.
    regionId String
    The region id of the mount service.
    status String
    The status of the mount service.
    subnetId String
    The subnet id of the mount service.
    vpcId String
    The vpc id of the mount service.
    zoneId String
    The zone id of the mount service.
    zoneName String
    The zone name of the mount service.
    accountId string
    The account id of the vepfs file system.
    attachFileSystems MountServiceAttachFileSystem[]
    The attached file system info of the mount service.
    createTime string
    The created time of the mount service.
    mountServiceName string
    The name of the mount service.
    nodeType string
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    nodes MountServiceNode[]
    The nodes info of the mount service.
    project string
    The node type of the mount service.
    regionId string
    The region id of the mount service.
    status string
    The status of the mount service.
    subnetId string
    The subnet id of the mount service.
    vpcId string
    The vpc id of the mount service.
    zoneId string
    The zone id of the mount service.
    zoneName string
    The zone name of the mount service.
    account_id str
    The account id of the vepfs file system.
    attach_file_systems Sequence[MountServiceAttachFileSystemArgs]
    The attached file system info of the mount service.
    create_time str
    The created time of the mount service.
    mount_service_name str
    The name of the mount service.
    node_type str
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    nodes Sequence[MountServiceNodeArgs]
    The nodes info of the mount service.
    project str
    The node type of the mount service.
    region_id str
    The region id of the mount service.
    status str
    The status of the mount service.
    subnet_id str
    The subnet id of the mount service.
    vpc_id str
    The vpc id of the mount service.
    zone_id str
    The zone id of the mount service.
    zone_name str
    The zone name of the mount service.
    accountId String
    The account id of the vepfs file system.
    attachFileSystems List<Property Map>
    The attached file system info of the mount service.
    createTime String
    The created time of the mount service.
    mountServiceName String
    The name of the mount service.
    nodeType String
    The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    nodes List<Property Map>
    The nodes info of the mount service.
    project String
    The node type of the mount service.
    regionId String
    The region id of the mount service.
    status String
    The status of the mount service.
    subnetId String
    The subnet id of the mount service.
    vpcId String
    The vpc id of the mount service.
    zoneId String
    The zone id of the mount service.
    zoneName String
    The zone name of the mount service.

    Supporting Types

    MountServiceAttachFileSystem, MountServiceAttachFileSystemArgs

    AccountId string
    The account id of the vepfs file system.
    CustomerPath string
    The id of the vepfs file system.
    FileSystemId string
    The id of the vepfs file system.
    FileSystemName string
    The name of the vepfs file system.
    Status string
    The status of the mount service.
    AccountId string
    The account id of the vepfs file system.
    CustomerPath string
    The id of the vepfs file system.
    FileSystemId string
    The id of the vepfs file system.
    FileSystemName string
    The name of the vepfs file system.
    Status string
    The status of the mount service.
    accountId String
    The account id of the vepfs file system.
    customerPath String
    The id of the vepfs file system.
    fileSystemId String
    The id of the vepfs file system.
    fileSystemName String
    The name of the vepfs file system.
    status String
    The status of the mount service.
    accountId string
    The account id of the vepfs file system.
    customerPath string
    The id of the vepfs file system.
    fileSystemId string
    The id of the vepfs file system.
    fileSystemName string
    The name of the vepfs file system.
    status string
    The status of the mount service.
    account_id str
    The account id of the vepfs file system.
    customer_path str
    The id of the vepfs file system.
    file_system_id str
    The id of the vepfs file system.
    file_system_name str
    The name of the vepfs file system.
    status str
    The status of the mount service.
    accountId String
    The account id of the vepfs file system.
    customerPath String
    The id of the vepfs file system.
    fileSystemId String
    The id of the vepfs file system.
    fileSystemName String
    The name of the vepfs file system.
    status String
    The status of the mount service.

    MountServiceNode, MountServiceNodeArgs

    DefaultPassword string
    The default password of ecs instance.
    NodeId string
    The id of ecs instance.
    DefaultPassword string
    The default password of ecs instance.
    NodeId string
    The id of ecs instance.
    defaultPassword String
    The default password of ecs instance.
    nodeId String
    The id of ecs instance.
    defaultPassword string
    The default password of ecs instance.
    nodeId string
    The id of ecs instance.
    default_password str
    The default password of ecs instance.
    node_id str
    The id of ecs instance.
    defaultPassword String
    The default password of ecs instance.
    nodeId String
    The id of ecs instance.

    Import

    VepfsMountService can be imported using the id, e.g.

     $ pulumi import volcengine:vepfs/mountService:MountService default resource_id
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine