volcengine.vepfs.MountService
Explore with Pulumi AI
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:
- Mount
Service stringName - The name of the mount service.
- Node
Type 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.
- Subnet
Id string - The subnet id of the mount service.
- Project string
- The node type of the mount service.
- Mount
Service stringName - The name of the mount service.
- Node
Type 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.
- Subnet
Id string - The subnet id of the mount service.
- Project string
- The node type of the mount service.
- mount
Service StringName - The name of the mount service.
- node
Type 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.
- subnet
Id String - The subnet id of the mount service.
- project String
- The node type of the mount service.
- mount
Service stringName - The name of the mount service.
- node
Type 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.
- subnet
Id string - The subnet id of the mount service.
- project string
- The node type of the mount service.
- mount_
service_ strname - 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.
- mount
Service StringName - The name of the mount service.
- node
Type 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.
- subnet
Id 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:
- Account
Id string - The account id of the vepfs file system.
- Attach
File List<MountSystems Service Attach File System> - The attached file system info of the mount service.
- Create
Time string - The created time of the mount service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
List<Mount
Service Node> - The nodes info of the mount service.
- Region
Id string - The region id of the mount service.
- Status string
- The status of the mount service.
- Vpc
Id string - The vpc id of the mount service.
- Zone
Id string - The zone id of the mount service.
- Zone
Name string - The zone name of the mount service.
- Account
Id string - The account id of the vepfs file system.
- Attach
File []MountSystems Service Attach File System - The attached file system info of the mount service.
- Create
Time string - The created time of the mount service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
[]Mount
Service Node - The nodes info of the mount service.
- Region
Id string - The region id of the mount service.
- Status string
- The status of the mount service.
- Vpc
Id string - The vpc id of the mount service.
- Zone
Id string - The zone id of the mount service.
- Zone
Name string - The zone name of the mount service.
- account
Id String - The account id of the vepfs file system.
- attach
File List<MountSystems Service Attach File System> - The attached file system info of the mount service.
- create
Time String - The created time of the mount service.
- id String
- The provider-assigned unique ID for this managed resource.
- nodes
List<Mount
Service Node> - The nodes info of the mount service.
- region
Id String - The region id of the mount service.
- status String
- The status of the mount service.
- vpc
Id String - The vpc id of the mount service.
- zone
Id String - The zone id of the mount service.
- zone
Name String - The zone name of the mount service.
- account
Id string - The account id of the vepfs file system.
- attach
File MountSystems Service Attach File System[] - The attached file system info of the mount service.
- create
Time string - The created time of the mount service.
- id string
- The provider-assigned unique ID for this managed resource.
- nodes
Mount
Service Node[] - The nodes info of the mount service.
- region
Id string - The region id of the mount service.
- status string
- The status of the mount service.
- vpc
Id string - The vpc id of the mount service.
- zone
Id string - The zone id of the mount service.
- zone
Name string - The zone name of the mount service.
- account_
id str - The account id of the vepfs file system.
- attach_
file_ Sequence[Mountsystems Service Attach File System] - 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[Mount
Service Node] - 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.
- account
Id String - The account id of the vepfs file system.
- attach
File List<Property Map>Systems - The attached file system info of the mount service.
- create
Time 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.
- region
Id String - The region id of the mount service.
- status String
- The status of the mount service.
- vpc
Id String - The vpc id of the mount service.
- zone
Id String - The zone id of the mount service.
- zone
Name 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.
- Account
Id string - The account id of the vepfs file system.
- Attach
File List<MountSystems Service Attach File System> - The attached file system info of the mount service.
- Create
Time string - The created time of the mount service.
- Mount
Service stringName - The name of the mount service.
- Node
Type 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<Mount
Service Node> - The nodes info of the mount service.
- Project string
- The node type of the mount service.
- Region
Id string - The region id of the mount service.
- Status string
- The status of the mount service.
- Subnet
Id string - The subnet id of the mount service.
- Vpc
Id string - The vpc id of the mount service.
- Zone
Id string - The zone id of the mount service.
- Zone
Name string - The zone name of the mount service.
- Account
Id string - The account id of the vepfs file system.
- Attach
File []MountSystems Service Attach File System Args - The attached file system info of the mount service.
- Create
Time string - The created time of the mount service.
- Mount
Service stringName - The name of the mount service.
- Node
Type 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
[]Mount
Service Node Args - The nodes info of the mount service.
- Project string
- The node type of the mount service.
- Region
Id string - The region id of the mount service.
- Status string
- The status of the mount service.
- Subnet
Id string - The subnet id of the mount service.
- Vpc
Id string - The vpc id of the mount service.
- Zone
Id string - The zone id of the mount service.
- Zone
Name string - The zone name of the mount service.
- account
Id String - The account id of the vepfs file system.
- attach
File List<MountSystems Service Attach File System> - The attached file system info of the mount service.
- create
Time String - The created time of the mount service.
- mount
Service StringName - The name of the mount service.
- node
Type 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<Mount
Service Node> - The nodes info of the mount service.
- project String
- The node type of the mount service.
- region
Id String - The region id of the mount service.
- status String
- The status of the mount service.
- subnet
Id String - The subnet id of the mount service.
- vpc
Id String - The vpc id of the mount service.
- zone
Id String - The zone id of the mount service.
- zone
Name String - The zone name of the mount service.
- account
Id string - The account id of the vepfs file system.
- attach
File MountSystems Service Attach File System[] - The attached file system info of the mount service.
- create
Time string - The created time of the mount service.
- mount
Service stringName - The name of the mount service.
- node
Type 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
Mount
Service Node[] - The nodes info of the mount service.
- project string
- The node type of the mount service.
- region
Id string - The region id of the mount service.
- status string
- The status of the mount service.
- subnet
Id string - The subnet id of the mount service.
- vpc
Id string - The vpc id of the mount service.
- zone
Id string - The zone id of the mount service.
- zone
Name string - The zone name of the mount service.
- account_
id str - The account id of the vepfs file system.
- attach_
file_ Sequence[Mountsystems Service Attach File System Args] - The attached file system info of the mount service.
- create_
time str - The created time of the mount service.
- mount_
service_ strname - 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[Mount
Service Node Args] - 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.
- account
Id String - The account id of the vepfs file system.
- attach
File List<Property Map>Systems - The attached file system info of the mount service.
- create
Time String - The created time of the mount service.
- mount
Service StringName - The name of the mount service.
- node
Type 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.
- region
Id String - The region id of the mount service.
- status String
- The status of the mount service.
- subnet
Id String - The subnet id of the mount service.
- vpc
Id String - The vpc id of the mount service.
- zone
Id String - The zone id of the mount service.
- zone
Name String - The zone name of the mount service.
Supporting Types
MountServiceAttachFileSystem, MountServiceAttachFileSystemArgs
- Account
Id string - The account id of the vepfs file system.
- Customer
Path string - The id of the vepfs file system.
- File
System stringId - The id of the vepfs file system.
- File
System stringName - The name of the vepfs file system.
- Status string
- The status of the mount service.
- Account
Id string - The account id of the vepfs file system.
- Customer
Path string - The id of the vepfs file system.
- File
System stringId - The id of the vepfs file system.
- File
System stringName - The name of the vepfs file system.
- Status string
- The status of the mount service.
- account
Id String - The account id of the vepfs file system.
- customer
Path String - The id of the vepfs file system.
- file
System StringId - The id of the vepfs file system.
- file
System StringName - The name of the vepfs file system.
- status String
- The status of the mount service.
- account
Id string - The account id of the vepfs file system.
- customer
Path string - The id of the vepfs file system.
- file
System stringId - The id of the vepfs file system.
- file
System stringName - 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_ strid - The id of the vepfs file system.
- file_
system_ strname - The name of the vepfs file system.
- status str
- The status of the mount service.
- account
Id String - The account id of the vepfs file system.
- customer
Path String - The id of the vepfs file system.
- file
System StringId - The id of the vepfs file system.
- file
System StringName - The name of the vepfs file system.
- status String
- The status of the mount service.
MountServiceNode, MountServiceNodeArgs
- Default
Password string - The default password of ecs instance.
- Node
Id string - The id of ecs instance.
- Default
Password string - The default password of ecs instance.
- Node
Id string - The id of ecs instance.
- default
Password String - The default password of ecs instance.
- node
Id String - The id of ecs instance.
- default
Password string - The default password of ecs instance.
- node
Id string - The id of ecs instance.
- default_
password str - The default password of ecs instance.
- node_
id str - The id of ecs instance.
- default
Password String - The default password of ecs instance.
- node
Id 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.