1. Packages
  2. OVH
  3. API Docs
  4. getStorageEfs
OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud

ovh.getStorageEfs

Explore with Pulumi AI

ovh logo
OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud

    Get information about an EFS service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const efs = ovh.getStorageEfs({
        serviceName: "XXX",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    efs = ovh.get_storage_efs(service_name="XXX")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ovh.GetStorageEfs(ctx, &ovh.GetStorageEfsArgs{
    			ServiceName: "XXX",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var efs = Ovh.GetStorageEfs.Invoke(new()
        {
            ServiceName = "XXX",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.OvhFunctions;
    import com.pulumi.ovh.inputs.GetStorageEfsArgs;
    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 efs = OvhFunctions.getStorageEfs(GetStorageEfsArgs.builder()
                .serviceName("XXX")
                .build());
    
        }
    }
    
    variables:
      efs:
        fn::invoke:
          function: ovh:getStorageEfs
          arguments:
            serviceName: XXX
    

    Using getStorageEfs

    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 getStorageEfs(args: GetStorageEfsArgs, opts?: InvokeOptions): Promise<GetStorageEfsResult>
    function getStorageEfsOutput(args: GetStorageEfsOutputArgs, opts?: InvokeOptions): Output<GetStorageEfsResult>
    def get_storage_efs(service_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetStorageEfsResult
    def get_storage_efs_output(service_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetStorageEfsResult]
    func GetStorageEfs(ctx *Context, args *GetStorageEfsArgs, opts ...InvokeOption) (*GetStorageEfsResult, error)
    func GetStorageEfsOutput(ctx *Context, args *GetStorageEfsOutputArgs, opts ...InvokeOption) GetStorageEfsResultOutput

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

    public static class GetStorageEfs 
    {
        public static Task<GetStorageEfsResult> InvokeAsync(GetStorageEfsArgs args, InvokeOptions? opts = null)
        public static Output<GetStorageEfsResult> Invoke(GetStorageEfsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStorageEfsResult> getStorageEfs(GetStorageEfsArgs args, InvokeOptions options)
    public static Output<GetStorageEfsResult> getStorageEfs(GetStorageEfsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getStorageEfs:getStorageEfs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceName string
    Service name
    ServiceName string
    Service name
    serviceName String
    Service name
    serviceName string
    Service name
    service_name str
    Service name
    serviceName String
    Service name

    getStorageEfs Result

    The following output properties are available:

    CreatedAt string
    Service creation date
    Iam GetStorageEfsIam
    IAM resource metadata
    Id string
    Service ID
    Name string
    Service name
    PerformanceLevel string
    Service performance level
    Product string
    Product name
    Quota double
    Service quota
    Region string
    Service region
    ServiceName string
    Service name
    Status string
    Service status
    CreatedAt string
    Service creation date
    Iam GetStorageEfsIam
    IAM resource metadata
    Id string
    Service ID
    Name string
    Service name
    PerformanceLevel string
    Service performance level
    Product string
    Product name
    Quota float64
    Service quota
    Region string
    Service region
    ServiceName string
    Service name
    Status string
    Service status
    createdAt String
    Service creation date
    iam GetStorageEfsIam
    IAM resource metadata
    id String
    Service ID
    name String
    Service name
    performanceLevel String
    Service performance level
    product String
    Product name
    quota Double
    Service quota
    region String
    Service region
    serviceName String
    Service name
    status String
    Service status
    createdAt string
    Service creation date
    iam GetStorageEfsIam
    IAM resource metadata
    id string
    Service ID
    name string
    Service name
    performanceLevel string
    Service performance level
    product string
    Product name
    quota number
    Service quota
    region string
    Service region
    serviceName string
    Service name
    status string
    Service status
    created_at str
    Service creation date
    iam GetStorageEfsIam
    IAM resource metadata
    id str
    Service ID
    name str
    Service name
    performance_level str
    Service performance level
    product str
    Product name
    quota float
    Service quota
    region str
    Service region
    service_name str
    Service name
    status str
    Service status
    createdAt String
    Service creation date
    iam Property Map
    IAM resource metadata
    id String
    Service ID
    name String
    Service name
    performanceLevel String
    Service performance level
    product String
    Product name
    quota Number
    Service quota
    region String
    Service region
    serviceName String
    Service name
    status String
    Service status

    Supporting Types

    GetStorageEfsIam

    DisplayName string
    Resource display name
    Id string
    Unique identifier of the resource
    Tags Dictionary<string, string>
    Resource tags. Tags that were internally computed are prefixed with ovh:
    Urn string
    Unique resource name used in policies
    DisplayName string
    Resource display name
    Id string
    Unique identifier of the resource
    Tags map[string]string
    Resource tags. Tags that were internally computed are prefixed with ovh:
    Urn string
    Unique resource name used in policies
    displayName String
    Resource display name
    id String
    Unique identifier of the resource
    tags Map<String,String>
    Resource tags. Tags that were internally computed are prefixed with ovh:
    urn String
    Unique resource name used in policies
    displayName string
    Resource display name
    id string
    Unique identifier of the resource
    tags {[key: string]: string}
    Resource tags. Tags that were internally computed are prefixed with ovh:
    urn string
    Unique resource name used in policies
    display_name str
    Resource display name
    id str
    Unique identifier of the resource
    tags Mapping[str, str]
    Resource tags. Tags that were internally computed are prefixed with ovh:
    urn str
    Unique resource name used in policies
    displayName String
    Resource display name
    id String
    Unique identifier of the resource
    tags Map<String>
    Resource tags. Tags that were internally computed are prefixed with ovh:
    urn String
    Unique resource name used in policies

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud