1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getSfsFileSystemV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getSfsFileSystemV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for SFS you can get at documentation portal

    Use this data source to get details about a Scalable File Service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const shareName = config.requireObject("shareName");
    const shareId = config.requireObject("shareId");
    const sharedFile = opentelekomcloud.getSfsFileSystemV2({
        name: shareName,
        id: shareId,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    share_name = config.require_object("shareName")
    share_id = config.require_object("shareId")
    shared_file = opentelekomcloud.get_sfs_file_system_v2(name=share_name,
        id=share_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		shareName := cfg.RequireObject("shareName")
    		shareId := cfg.RequireObject("shareId")
    		_, err := opentelekomcloud.LookupSfsFileSystemV2(ctx, &opentelekomcloud.LookupSfsFileSystemV2Args{
    			Name: pulumi.StringRef(shareName),
    			Id:   pulumi.StringRef(shareId),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var shareName = config.RequireObject<dynamic>("shareName");
        var shareId = config.RequireObject<dynamic>("shareId");
        var sharedFile = Opentelekomcloud.GetSfsFileSystemV2.Invoke(new()
        {
            Name = shareName,
            Id = shareId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetSfsFileSystemV2Args;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var shareName = config.get("shareName");
            final var shareId = config.get("shareId");
            final var sharedFile = OpentelekomcloudFunctions.getSfsFileSystemV2(GetSfsFileSystemV2Args.builder()
                .name(shareName)
                .id(shareId)
                .build());
    
        }
    }
    
    configuration:
      shareName:
        type: dynamic
      shareId:
        type: dynamic
    variables:
      sharedFile:
        fn::invoke:
          function: opentelekomcloud:getSfsFileSystemV2
          arguments:
            name: ${shareName}
            id: ${shareId}
    

    Using getSfsFileSystemV2

    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 getSfsFileSystemV2(args: GetSfsFileSystemV2Args, opts?: InvokeOptions): Promise<GetSfsFileSystemV2Result>
    function getSfsFileSystemV2Output(args: GetSfsFileSystemV2OutputArgs, opts?: InvokeOptions): Output<GetSfsFileSystemV2Result>
    def get_sfs_file_system_v2(id: Optional[str] = None,
                               name: Optional[str] = None,
                               region: Optional[str] = None,
                               status: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetSfsFileSystemV2Result
    def get_sfs_file_system_v2_output(id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               region: Optional[pulumi.Input[str]] = None,
                               status: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetSfsFileSystemV2Result]
    func LookupSfsFileSystemV2(ctx *Context, args *LookupSfsFileSystemV2Args, opts ...InvokeOption) (*LookupSfsFileSystemV2Result, error)
    func LookupSfsFileSystemV2Output(ctx *Context, args *LookupSfsFileSystemV2OutputArgs, opts ...InvokeOption) LookupSfsFileSystemV2ResultOutput

    > Note: This function is named LookupSfsFileSystemV2 in the Go SDK.

    public static class GetSfsFileSystemV2 
    {
        public static Task<GetSfsFileSystemV2Result> InvokeAsync(GetSfsFileSystemV2Args args, InvokeOptions? opts = null)
        public static Output<GetSfsFileSystemV2Result> Invoke(GetSfsFileSystemV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSfsFileSystemV2Result> getSfsFileSystemV2(GetSfsFileSystemV2Args args, InvokeOptions options)
    public static Output<GetSfsFileSystemV2Result> getSfsFileSystemV2(GetSfsFileSystemV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getSfsFileSystemV2:getSfsFileSystemV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The UUID of the shared file system.
    Name string
    The name of the shared file system.
    Region string
    Status string
    The status of the shared file system.
    Id string
    The UUID of the shared file system.
    Name string
    The name of the shared file system.
    Region string
    Status string
    The status of the shared file system.
    id String
    The UUID of the shared file system.
    name String
    The name of the shared file system.
    region String
    status String
    The status of the shared file system.
    id string
    The UUID of the shared file system.
    name string
    The name of the shared file system.
    region string
    status string
    The status of the shared file system.
    id str
    The UUID of the shared file system.
    name str
    The name of the shared file system.
    region str
    status str
    The status of the shared file system.
    id String
    The UUID of the shared file system.
    name String
    The name of the shared file system.
    region String
    status String
    The status of the shared file system.

    getSfsFileSystemV2 Result

    The following output properties are available:

    AccessLevel string
    The level of the access rule.
    AccessTo string
    The access that the back end grants or denies.
    AccessType string
    The type of the share access rule.
    AvailabilityZone string
    The availability zone name.
    Description string
    ExportLocation string
    The path for accessing the shared file system.
    ExportLocations List<string>
    Host string
    The host name of the shared file system.
    IsPublic bool
    The level of visibility for the shared file system.
    Metadata Dictionary<string, string>
    Metadata key and value pairs as a dictionary of strings.
    MountId string
    The UUID of the mount location of the shared file system.
    Preferred bool
    Identifies which mount locations are most efficient and are used preferentially when multiple mount locations exist.
    ProjectId string
    Region string
    ShareAccessId string
    The UUID of the share access rule.
    ShareInstanceId string
    The access that the back end grants or denies.
    ShareProto string
    The protocol for sharing file systems.
    ShareType string
    The storage service type for the shared file system, such as high-performance storage (composed of SSDs) or large-capacity storage (composed of SATA disks).
    Size double
    The size (GB) of the shared file system.
    State string
    VolumeType string
    The volume type.
    Id string
    Name string
    Status string
    The status of the shared file system.
    AccessLevel string
    The level of the access rule.
    AccessTo string
    The access that the back end grants or denies.
    AccessType string
    The type of the share access rule.
    AvailabilityZone string
    The availability zone name.
    Description string
    ExportLocation string
    The path for accessing the shared file system.
    ExportLocations []string
    Host string
    The host name of the shared file system.
    IsPublic bool
    The level of visibility for the shared file system.
    Metadata map[string]string
    Metadata key and value pairs as a dictionary of strings.
    MountId string
    The UUID of the mount location of the shared file system.
    Preferred bool
    Identifies which mount locations are most efficient and are used preferentially when multiple mount locations exist.
    ProjectId string
    Region string
    ShareAccessId string
    The UUID of the share access rule.
    ShareInstanceId string
    The access that the back end grants or denies.
    ShareProto string
    The protocol for sharing file systems.
    ShareType string
    The storage service type for the shared file system, such as high-performance storage (composed of SSDs) or large-capacity storage (composed of SATA disks).
    Size float64
    The size (GB) of the shared file system.
    State string
    VolumeType string
    The volume type.
    Id string
    Name string
    Status string
    The status of the shared file system.
    accessLevel String
    The level of the access rule.
    accessTo String
    The access that the back end grants or denies.
    accessType String
    The type of the share access rule.
    availabilityZone String
    The availability zone name.
    description String
    exportLocation String
    The path for accessing the shared file system.
    exportLocations List<String>
    host String
    The host name of the shared file system.
    isPublic Boolean
    The level of visibility for the shared file system.
    metadata Map<String,String>
    Metadata key and value pairs as a dictionary of strings.
    mountId String
    The UUID of the mount location of the shared file system.
    preferred Boolean
    Identifies which mount locations are most efficient and are used preferentially when multiple mount locations exist.
    projectId String
    region String
    shareAccessId String
    The UUID of the share access rule.
    shareInstanceId String
    The access that the back end grants or denies.
    shareProto String
    The protocol for sharing file systems.
    shareType String
    The storage service type for the shared file system, such as high-performance storage (composed of SSDs) or large-capacity storage (composed of SATA disks).
    size Double
    The size (GB) of the shared file system.
    state String
    volumeType String
    The volume type.
    id String
    name String
    status String
    The status of the shared file system.
    accessLevel string
    The level of the access rule.
    accessTo string
    The access that the back end grants or denies.
    accessType string
    The type of the share access rule.
    availabilityZone string
    The availability zone name.
    description string
    exportLocation string
    The path for accessing the shared file system.
    exportLocations string[]
    host string
    The host name of the shared file system.
    isPublic boolean
    The level of visibility for the shared file system.
    metadata {[key: string]: string}
    Metadata key and value pairs as a dictionary of strings.
    mountId string
    The UUID of the mount location of the shared file system.
    preferred boolean
    Identifies which mount locations are most efficient and are used preferentially when multiple mount locations exist.
    projectId string
    region string
    shareAccessId string
    The UUID of the share access rule.
    shareInstanceId string
    The access that the back end grants or denies.
    shareProto string
    The protocol for sharing file systems.
    shareType string
    The storage service type for the shared file system, such as high-performance storage (composed of SSDs) or large-capacity storage (composed of SATA disks).
    size number
    The size (GB) of the shared file system.
    state string
    volumeType string
    The volume type.
    id string
    name string
    status string
    The status of the shared file system.
    access_level str
    The level of the access rule.
    access_to str
    The access that the back end grants or denies.
    access_type str
    The type of the share access rule.
    availability_zone str
    The availability zone name.
    description str
    export_location str
    The path for accessing the shared file system.
    export_locations Sequence[str]
    host str
    The host name of the shared file system.
    is_public bool
    The level of visibility for the shared file system.
    metadata Mapping[str, str]
    Metadata key and value pairs as a dictionary of strings.
    mount_id str
    The UUID of the mount location of the shared file system.
    preferred bool
    Identifies which mount locations are most efficient and are used preferentially when multiple mount locations exist.
    project_id str
    region str
    share_access_id str
    The UUID of the share access rule.
    share_instance_id str
    The access that the back end grants or denies.
    share_proto str
    The protocol for sharing file systems.
    share_type str
    The storage service type for the shared file system, such as high-performance storage (composed of SSDs) or large-capacity storage (composed of SATA disks).
    size float
    The size (GB) of the shared file system.
    state str
    volume_type str
    The volume type.
    id str
    name str
    status str
    The status of the shared file system.
    accessLevel String
    The level of the access rule.
    accessTo String
    The access that the back end grants or denies.
    accessType String
    The type of the share access rule.
    availabilityZone String
    The availability zone name.
    description String
    exportLocation String
    The path for accessing the shared file system.
    exportLocations List<String>
    host String
    The host name of the shared file system.
    isPublic Boolean
    The level of visibility for the shared file system.
    metadata Map<String>
    Metadata key and value pairs as a dictionary of strings.
    mountId String
    The UUID of the mount location of the shared file system.
    preferred Boolean
    Identifies which mount locations are most efficient and are used preferentially when multiple mount locations exist.
    projectId String
    region String
    shareAccessId String
    The UUID of the share access rule.
    shareInstanceId String
    The access that the back end grants or denies.
    shareProto String
    The protocol for sharing file systems.
    shareType String
    The storage service type for the shared file system, such as high-performance storage (composed of SSDs) or large-capacity storage (composed of SATA disks).
    size Number
    The size (GB) of the shared file system.
    state String
    volumeType String
    The volume type.
    id String
    name String
    status String
    The status of the shared file system.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud