opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getSfsFileSystemV2
Explore with Pulumi AI
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:
getSfsFileSystemV2 Result
The following output properties are available:
- Access
Level string - The level of the access rule.
- Access
To string - The access that the back end grants or denies.
- Access
Type string - The type of the share access rule.
- Availability
Zone string - The availability zone name.
- Description string
- Export
Location string - The path for accessing the shared file system.
- Export
Locations List<string> - Host string
- The host name of the shared file system.
- Is
Public bool - The level of visibility for the shared file system.
- Metadata Dictionary<string, string>
- Metadata key and value pairs as a dictionary of strings.
- Mount
Id 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.
- Project
Id string - Region string
- string
- The UUID of the share access rule.
- string
- The access that the back end grants or denies.
- string
- The protocol for sharing file systems.
- 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
- Volume
Type string - The volume type.
- Id string
- Name string
- Status string
- The status of the shared file system.
- Access
Level string - The level of the access rule.
- Access
To string - The access that the back end grants or denies.
- Access
Type string - The type of the share access rule.
- Availability
Zone string - The availability zone name.
- Description string
- Export
Location string - The path for accessing the shared file system.
- Export
Locations []string - Host string
- The host name of the shared file system.
- Is
Public bool - The level of visibility for the shared file system.
- Metadata map[string]string
- Metadata key and value pairs as a dictionary of strings.
- Mount
Id 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.
- Project
Id string - Region string
- string
- The UUID of the share access rule.
- string
- The access that the back end grants or denies.
- string
- The protocol for sharing file systems.
- 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
- Volume
Type string - The volume type.
- Id string
- Name string
- Status string
- The status of the shared file system.
- access
Level String - The level of the access rule.
- access
To String - The access that the back end grants or denies.
- access
Type String - The type of the share access rule.
- availability
Zone String - The availability zone name.
- description String
- export
Location String - The path for accessing the shared file system.
- export
Locations List<String> - host String
- The host name of the shared file system.
- is
Public Boolean - The level of visibility for the shared file system.
- metadata Map<String,String>
- Metadata key and value pairs as a dictionary of strings.
- mount
Id 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.
- project
Id String - region String
- String
- The UUID of the share access rule.
- String
- The access that the back end grants or denies.
- String
- The protocol for sharing file systems.
- 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
- volume
Type String - The volume type.
- id String
- name String
- status String
- The status of the shared file system.
- access
Level string - The level of the access rule.
- access
To string - The access that the back end grants or denies.
- access
Type string - The type of the share access rule.
- availability
Zone string - The availability zone name.
- description string
- export
Location string - The path for accessing the shared file system.
- export
Locations string[] - host string
- The host name of the shared file system.
- is
Public boolean - The level of visibility for the shared file system.
- metadata {[key: string]: string}
- Metadata key and value pairs as a dictionary of strings.
- mount
Id 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.
- project
Id string - region string
- string
- The UUID of the share access rule.
- string
- The access that the back end grants or denies.
- string
- The protocol for sharing file systems.
- 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
- volume
Type 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
- str
- The UUID of the share access rule.
- str
- The access that the back end grants or denies.
- str
- The protocol for sharing file systems.
- 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.
- access
Level String - The level of the access rule.
- access
To String - The access that the back end grants or denies.
- access
Type String - The type of the share access rule.
- availability
Zone String - The availability zone name.
- description String
- export
Location String - The path for accessing the shared file system.
- export
Locations List<String> - host String
- The host name of the shared file system.
- is
Public Boolean - The level of visibility for the shared file system.
- metadata Map<String>
- Metadata key and value pairs as a dictionary of strings.
- mount
Id 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.
- project
Id String - region String
- String
- The UUID of the share access rule.
- String
- The access that the back end grants or denies.
- String
- The protocol for sharing file systems.
- 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
- volume
Type 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 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud