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

volcengine.vepfs.MountServices

Explore with Pulumi AI

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

    Use this data source to query detailed information of vepfs mount services

    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",
        });
    
        var fooMountServices = Volcengine.Vepfs.MountServices.Invoke(new()
        {
            MountServiceId = fooMountService.Id,
        });
    
    });
    
    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
    		}
    		fooMountService, 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
    		}
    		_ = vepfs.MountServicesOutput(ctx, vepfs.MountServicesOutputArgs{
    			MountServiceId: fooMountService.ID(),
    		}, nil)
    		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 com.pulumi.volcengine.vepfs.VepfsFunctions;
    import com.pulumi.volcengine.vepfs.inputs.MountServicesArgs;
    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());
    
            final var fooMountServices = VepfsFunctions.MountServices(MountServicesArgs.builder()
                .mountServiceId(fooMountService.id())
                .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")
    foo_mount_services = volcengine.vepfs.mount_services_output(mount_service_id=foo_mount_service.id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    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",
    });
    const fooMountServices = volcengine.vepfs.MountServicesOutput({
        mountServiceId: fooMountService.id,
    });
    
    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
    variables:
      fooMountServices:
        fn::invoke:
          Function: volcengine:vepfs:MountServices
          Arguments:
            mountServiceId: ${fooMountService.id}
    

    Using MountServices

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function mountServices(args: MountServicesArgs, opts?: InvokeOptions): Promise<MountServicesResult>
    function mountServicesOutput(args: MountServicesOutputArgs, opts?: InvokeOptions): Output<MountServicesResult>
    def mount_services(file_system_id: Optional[str] = None,
                       mount_service_id: Optional[str] = None,
                       mount_service_name: Optional[str] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       statuses: Optional[Sequence[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> MountServicesResult
    def mount_services_output(file_system_id: Optional[pulumi.Input[str]] = None,
                       mount_service_id: Optional[pulumi.Input[str]] = None,
                       mount_service_name: Optional[pulumi.Input[str]] = None,
                       name_regex: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[MountServicesResult]
    func MountServices(ctx *Context, args *MountServicesArgs, opts ...InvokeOption) (*MountServicesResult, error)
    func MountServicesOutput(ctx *Context, args *MountServicesOutputArgs, opts ...InvokeOption) MountServicesResultOutput
    public static class MountServices 
    {
        public static Task<MountServicesResult> InvokeAsync(MountServicesArgs args, InvokeOptions? opts = null)
        public static Output<MountServicesResult> Invoke(MountServicesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<MountServicesResult> mountServices(MountServicesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:vepfs:MountServices
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FileSystemId string
    The id of Vepfs File System.
    MountServiceId string
    The id of mount service.
    MountServiceName string
    The name of mount service. This field support fuzzy query.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    Statuses List<string>
    The query status list of mount service.
    FileSystemId string
    The id of Vepfs File System.
    MountServiceId string
    The id of mount service.
    MountServiceName string
    The name of mount service. This field support fuzzy query.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    Statuses []string
    The query status list of mount service.
    fileSystemId String
    The id of Vepfs File System.
    mountServiceId String
    The id of mount service.
    mountServiceName String
    The name of mount service. This field support fuzzy query.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    statuses List<String>
    The query status list of mount service.
    fileSystemId string
    The id of Vepfs File System.
    mountServiceId string
    The id of mount service.
    mountServiceName string
    The name of mount service. This field support fuzzy query.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    statuses string[]
    The query status list of mount service.
    file_system_id str
    The id of Vepfs File System.
    mount_service_id str
    The id of mount service.
    mount_service_name str
    The name of mount service. This field support fuzzy query.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    statuses Sequence[str]
    The query status list of mount service.
    fileSystemId String
    The id of Vepfs File System.
    mountServiceId String
    The id of mount service.
    mountServiceName String
    The name of mount service. This field support fuzzy query.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    statuses List<String>
    The query status list of mount service.

    MountServices Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    MountServices List<MountServicesMountService>
    The collection of query.
    TotalCount int
    The total count of query.
    FileSystemId string
    The id of the vepfs file system.
    MountServiceId string
    The id of the mount service.
    MountServiceName string
    The name of the mount service.
    NameRegex string
    OutputFile string
    Statuses List<string>
    The status of the mount service.
    Id string
    The provider-assigned unique ID for this managed resource.
    MountServices []MountServicesMountService
    The collection of query.
    TotalCount int
    The total count of query.
    FileSystemId string
    The id of the vepfs file system.
    MountServiceId string
    The id of the mount service.
    MountServiceName string
    The name of the mount service.
    NameRegex string
    OutputFile string
    Statuses []string
    The status of the mount service.
    id String
    The provider-assigned unique ID for this managed resource.
    mountServices List<MountServicesMountService>
    The collection of query.
    totalCount Integer
    The total count of query.
    fileSystemId String
    The id of the vepfs file system.
    mountServiceId String
    The id of the mount service.
    mountServiceName String
    The name of the mount service.
    nameRegex String
    outputFile String
    statuses List<String>
    The status of the mount service.
    id string
    The provider-assigned unique ID for this managed resource.
    mountServices MountServicesMountService[]
    The collection of query.
    totalCount number
    The total count of query.
    fileSystemId string
    The id of the vepfs file system.
    mountServiceId string
    The id of the mount service.
    mountServiceName string
    The name of the mount service.
    nameRegex string
    outputFile string
    statuses string[]
    The status of the mount service.
    id str
    The provider-assigned unique ID for this managed resource.
    mount_services Sequence[MountServicesMountService]
    The collection of query.
    total_count int
    The total count of query.
    file_system_id str
    The id of the vepfs file system.
    mount_service_id str
    The id of the mount service.
    mount_service_name str
    The name of the mount service.
    name_regex str
    output_file str
    statuses Sequence[str]
    The status of the mount service.
    id String
    The provider-assigned unique ID for this managed resource.
    mountServices List<Property Map>
    The collection of query.
    totalCount Number
    The total count of query.
    fileSystemId String
    The id of the vepfs file system.
    mountServiceId String
    The id of the mount service.
    mountServiceName String
    The name of the mount service.
    nameRegex String
    outputFile String
    statuses List<String>
    The status of the mount service.

    Supporting Types

    MountServicesMountService

    AccountId string
    The account id of the vepfs file system.
    AttachFileSystems List<MountServicesMountServiceAttachFileSystem>
    The attached file system info of the mount service.
    CreateTime string
    The created time of the mount service.
    Id string
    The id of the mount service.
    MountServiceId string
    The id of mount service.
    MountServiceName string
    The name of mount service. This field support fuzzy query.
    Nodes List<MountServicesMountServiceNode>
    The nodes info of the mount service.
    Project string
    The project of the mount service.
    RegionId string
    The region id of the mount service.
    Status string
    The query status list of 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 []MountServicesMountServiceAttachFileSystem
    The attached file system info of the mount service.
    CreateTime string
    The created time of the mount service.
    Id string
    The id of the mount service.
    MountServiceId string
    The id of mount service.
    MountServiceName string
    The name of mount service. This field support fuzzy query.
    Nodes []MountServicesMountServiceNode
    The nodes info of the mount service.
    Project string
    The project of the mount service.
    RegionId string
    The region id of the mount service.
    Status string
    The query status list of 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<MountServicesMountServiceAttachFileSystem>
    The attached file system info of the mount service.
    createTime String
    The created time of the mount service.
    id String
    The id of the mount service.
    mountServiceId String
    The id of mount service.
    mountServiceName String
    The name of mount service. This field support fuzzy query.
    nodes List<MountServicesMountServiceNode>
    The nodes info of the mount service.
    project String
    The project of the mount service.
    regionId String
    The region id of the mount service.
    status String
    The query status list of 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 MountServicesMountServiceAttachFileSystem[]
    The attached file system info of the mount service.
    createTime string
    The created time of the mount service.
    id string
    The id of the mount service.
    mountServiceId string
    The id of mount service.
    mountServiceName string
    The name of mount service. This field support fuzzy query.
    nodes MountServicesMountServiceNode[]
    The nodes info of the mount service.
    project string
    The project of the mount service.
    regionId string
    The region id of the mount service.
    status string
    The query status list of 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[MountServicesMountServiceAttachFileSystem]
    The attached file system info of the mount service.
    create_time str
    The created time of the mount service.
    id str
    The id of the mount service.
    mount_service_id str
    The id of mount service.
    mount_service_name str
    The name of mount service. This field support fuzzy query.
    nodes Sequence[MountServicesMountServiceNode]
    The nodes info of the mount service.
    project str
    The project of the mount service.
    region_id str
    The region id of the mount service.
    status str
    The query status list of 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.
    id String
    The id of the mount service.
    mountServiceId String
    The id of mount service.
    mountServiceName String
    The name of mount service. This field support fuzzy query.
    nodes List<Property Map>
    The nodes info of the mount service.
    project String
    The project of the mount service.
    regionId String
    The region id of the mount service.
    status String
    The query status list of 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.

    MountServicesMountServiceAttachFileSystem

    AccountId string
    The account id of the vepfs file system.
    CustomerPath string
    The id of the vepfs file system.
    FileSystemId string
    The id of Vepfs File System.
    FileSystemName string
    The name of the vepfs file system.
    Status string
    The query status list of 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 Vepfs File System.
    FileSystemName string
    The name of the vepfs file system.
    Status string
    The query status list of 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 Vepfs File System.
    fileSystemName String
    The name of the vepfs file system.
    status String
    The query status list of 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 Vepfs File System.
    fileSystemName string
    The name of the vepfs file system.
    status string
    The query status list of 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 Vepfs File System.
    file_system_name str
    The name of the vepfs file system.
    status str
    The query status list of 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 Vepfs File System.
    fileSystemName String
    The name of the vepfs file system.
    status String
    The query status list of mount service.

    MountServicesMountServiceNode

    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.

    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